DayZ Enforce
Script API
Private Member Functions | Private Attributes | List of all members
ModuleLocalProfile Class Reference

#include <ModuleLocalProfile.h>

Inheritance diagram for ModuleLocalProfile:
ModuleFileHandler ModuleLocalProfileScene ModuleLocalProfileUI ModuleLocalProfileUIFixed

Private Member Functions

void  ModuleLocalProfile ()
 
void  ~ModuleLocalProfile ()
 
void  OnInit ()
 
string  GetFileName ()
 
bool  LoadConfigFile ()
 
bool  SaveConfigToFile ()
 
bool  IsTextArray (string text)
 
TStringArray  ParseTextToParameter (string text)
 
TStringArray  ParseTextToArray (string text, out TStringArray ret)
 
array< map< string, string > >  ParseTextArrayToParameters (string text)
 
string  LoadParameter (string param_name)
 
TStringArray  LoadParameterArray (string param_name)
 
string  LoadSubParameter (string param_name, int sub_array_index, string sub_param_name)
 
void  SaveParameter (string param_name, string value, bool save_in_file=true)
 
void  SaveParameterArray (string param_name, TStringArray value, bool save_in_file=true)
 
void  SaveSubParameterInArray (string param_name, int sub_array_index, string sub_param_name, string sub_param_value, bool save_in_file=true)
 
void  RenameParameter (string old_name, string new_name, bool save_in_file=true)
 
void  RenameParameterArray (string old_name, string new_name, bool save_in_file=true)
 
void  RemoveParameter (string name, bool save_in_file=true)
 
void  RemoveParameterArray (string name, bool save_in_file=true)
 
void  SetParameterString (string name, string value, bool save_in_file=true)
 
void  SetParameterInt (string name, int value, bool save_in_file=true)
 
void  SetParameterFloat (string name, float value, bool save_in_file=true)
 
void  SetParameterBool (string name, bool value, bool save_in_file=true)
 
void  SetParameterArray (string name, TStringArray value, bool save_in_file=true)
 
void  SetSubParameterInArray (string param_name, int sub_array_index, string sub_param_name, string sub_param_value, bool save_in_file=true)
 
string  GetParameterString (string name)
 
int  GetParameterInt (string name)
 
float  GetParameterFloat (string name)
 
bool  GetParameterBool (string name)
 
TStringArray  GetParameterArray (string name)
 
string  GetSubParameterInArrayString (string param_name, int sub_array_index, string sub_param_name)
 
TStringArray  GetAllSubParametersInArrayString (string param_name, string sub_param_name)
 

Private Attributes

map< string, string >  m_ConfigParams
 
map< string, TStringArray m_ConfigParamsArray
 
map< string, array< map< string, string > > >  m_ConfigParamsArrayInArray
 

Constructor & Destructor Documentation

void ModuleLocalProfile::ModuleLocalProfile ( )
private
void ModuleLocalProfile::~ModuleLocalProfile ( )
private

Member Function Documentation

void ModuleLocalProfile::OnInit ( )
private

References LoadConfigFile().

string ModuleLocalProfile::GetFileName ( )
private

References CFG_FILE_USER_PROFILE.

Referenced by LoadConfigFile().

bool ModuleLocalProfile::LoadConfigFile ( )
private
bool ModuleLocalProfile::SaveConfigToFile ( )
private
bool ModuleLocalProfile::IsTextArray ( string  text )
private

References strlen(), and substr().

Referenced by ParseTextToArray().

TStringArray ModuleLocalProfile::ParseTextToParameter ( string  text )
private
TStringArray ModuleLocalProfile::ParseTextToArray ( string  text,
out TStringArray  ret 
)
private
array< map< string, string > > ModuleLocalProfile::ParseTextArrayToParameters ( string  text )
private
string ModuleLocalProfile::LoadParameter ( string  param_name )
private
TStringArray ModuleLocalProfile::LoadParameterArray ( string  param_name )
private

References m_ConfigParamsArray.

string ModuleLocalProfile::LoadSubParameter ( string  param_name,
int  sub_array_index,
string  sub_param_name 
)
private
void ModuleLocalProfile::SaveParameter ( string  param_name,
string  value,
bool  save_in_file = true 
)
private
void ModuleLocalProfile::SaveParameterArray ( string  param_name,
TStringArray  value,
bool  save_in_file = true 
)
private
void ModuleLocalProfile::SaveSubParameterInArray ( string  param_name,
int  sub_array_index,
string  sub_param_name,
string  sub_param_value,
bool  save_in_file = true 
)
private
void ModuleLocalProfile::RenameParameter ( string  old_name,
string  new_name,
bool  save_in_file = true 
)
private
void ModuleLocalProfile::RenameParameterArray ( string  old_name,
string  new_name,
bool  save_in_file = true 
)
private
void ModuleLocalProfile::RemoveParameter ( string  name,
bool  save_in_file = true 
)
private
void ModuleLocalProfile::RemoveParameterArray ( string  name,
bool  save_in_file = true 
)
private
void ModuleLocalProfile::SetParameterString ( string  name,
string  value,
bool  save_in_file = true 
)
private
void ModuleLocalProfile::SetParameterInt ( string  name,
int  value,
bool  save_in_file = true 
)
private
void ModuleLocalProfile::SetParameterFloat ( string  name,
float  value,
bool  save_in_file = true 
)
private
void ModuleLocalProfile::SetParameterBool ( string  name,
bool  value,
bool  save_in_file = true 
)
private
void ModuleLocalProfile::SetParameterArray ( string  name,
TStringArray  value,
bool  save_in_file = true 
)
private

References SaveParameterArray().

Referenced by GetParameterArray().

void ModuleLocalProfile::SetSubParameterInArray ( string  param_name,
int  sub_array_index,
string  sub_param_name,
string  sub_param_value,
bool  save_in_file = true 
)
private
string ModuleLocalProfile::GetParameterString ( string  name )
private
int ModuleLocalProfile::GetParameterInt ( string  name )
private
float ModuleLocalProfile::GetParameterFloat ( string  name )
private
bool ModuleLocalProfile::GetParameterBool ( string  name )
private
TStringArray ModuleLocalProfile::GetParameterArray ( string  name )
private
string ModuleLocalProfile::GetSubParameterInArrayString ( string  param_name,
int  sub_array_index,
string  sub_param_name 
)
private
TStringArray ModuleLocalProfile::GetAllSubParametersInArrayString ( string  param_name,
string  sub_param_name 
)
private

Member Data Documentation

map<string, string> ModuleLocalProfile::m_ConfigParams
private
map<string, TStringArray> ModuleLocalProfile::m_ConfigParamsArray
private
map<string, array<map<string, string> > > ModuleLocalProfile::m_ConfigParamsArrayInArray
private

The documentation for this class was generated from the following files:
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)