Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
PluginFileHandler Class Reference

Protected Member Functions

int GetTextType (string text)
bool IsArray (string text)
bool IsBool (string text)
bool IsFloat (string text)
bool IsInt (string text)
bool IsParam (string text)
bool IsString (string text)
array< ref CfgParamParseToValueArray (string param_value)
bool ParseToValueBool (string param_value)
float ParseToValueFloat (string param_value)
int ParseToValueInt (string param_value)
string ParseToValueString (string param_value)

Private Member Functions

void ~PluginLocalHistoryBase ()
void AddNewLine (string text)
void ClearParams ()
TStringArray GetAllLines ()
array< ref CfgParamGetAllParams ()
TStringArray GetAllSubParametersInArrayString (string param_name, string sub_param_name)
override string GetFileName ()
override string GetFileName ()
override string GetFileName ()
TStringArray GetLastLine ()
CfgParam GetParamByName (string name, int cfg_type)
TStringArray GetParameterArray (string name)
bool GetParameterBool (string name)
float GetParameterFloat (string name)
int GetParameterInt (string name)
string GetParameterString (string name)
string GetSubParameterInArrayString (string param_name, int sub_array_index, string sub_param_name)
bool IsTextArray (string text)
void LoadConfigFile ()
bool LoadConfigFile ()
string LoadParameter (string param_name)
TStringArray LoadParameterArray (string param_name)
string LoadSubParameter (string param_name, int sub_array_index, string sub_param_name)
override void OnInit ()
override void OnInit ()
override void OnInit ()
bool ParamExist (string name)
string ParseParam (CfgParam param)
CfgParam ParseText (string text)
array< ref map< string, string > > ParseTextArrayToParameters (string text)
TStringArray ParseTextToArray (string text, out TStringArray ret)
TStringArray ParseTextToParameter (string text)
void PluginConfigHandler ()
void PluginLocalHistoryBase ()
void PluginLocalProfile ()
void RemoveParamByName (string name)
void RemoveParameter (string name, bool save_in_file=true)
void RemoveParameterArray (string name, bool save_in_file=true)
void RenameParam (string name, string new_name)
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 SaveConfigToFile ()
void SaveConfigToFile ()
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 SetParameterArray (string name, TStringArray value, bool save_in_file=true)
void SetParameterBool (string name, bool value, bool save_in_file=true)
void SetParameterFloat (string name, float value, bool save_in_file=true)
void SetParameterInt (string name, int value, bool save_in_file=true)
void SetParameterString (string name, string 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)

Private Attributes

ref array< ref CfgParamm_CfgParams
ref map< string, stringm_ConfigParams
ref map< string, ref TStringArraym_ConfigParamsArray
ref map< string, ref array< ref map< string, string > > > m_ConfigParamsArrayInArray
ref map< string, ref map< string, string > > m_ConfigParamsInArray

Detailed Description

Definition at line 1 of file pluginconfighandler.c.

Constructor & Destructor Documentation

◆ ~PluginLocalHistoryBase()

void ~PluginLocalHistoryBase ( )
inlineprivate

Definition at line 8 of file pluginlocalhistorybase.c.

Member Function Documentation

◆ AddNewLine()

void AddNewLine ( string text)
inlineprivate

Definition at line 23 of file pluginlocalhistorybase.c.

References string::Replace().

◆ ClearParams()

void ClearParams ( )
inlineprivate

Definition at line 73 of file pluginconfighandler.c.

References m_CfgParams.

◆ GetAllLines()

TStringArray GetAllLines ( )
inlineprivate

Definition at line 31 of file pluginlocalhistorybase.c.

References string::Replace().

◆ GetAllParams()

array< ref CfgParam > GetAllParams ( )
inlineprivate

Definition at line 68 of file pluginconfighandler.c.

References m_CfgParams.

◆ GetAllSubParametersInArrayString()

TStringArray GetAllSubParametersInArrayString ( string param_name,
string sub_param_name )
inlineprivate

Definition at line 578 of file pluginlocalprofile.c.

References m_ConfigParamsArrayInArray, and STRING_EMPTY.

◆ GetFileName() [1/3]

override string GetFileName ( )
inlineprivate

Definition at line 17 of file pluginconfighandler.c.

References CFG_FILE_USER_PROFILE.

Referenced by PluginBase::LoadFile(), and PluginBase::SaveFile().

◆ GetFileName() [2/3]

override string GetFileName ( )
inlineprivate

Definition at line 17 of file pluginlocalhistorybase.c.

References Error(), and STRING_EMPTY.

◆ GetFileName() [3/3]

override string GetFileName ( )
inlineprivate

Definition at line 16 of file pluginlocalprofile.c.

References CFG_FILE_USER_PROFILE.

◆ GetLastLine()

TStringArray GetLastLine ( )
inlineprivate

Definition at line 44 of file pluginlocalhistorybase.c.

References string::Get().

◆ GetParamByName()

CfgParam GetParamByName ( string name,
int cfg_type )
inlineprivate

Definition at line 48 of file pluginconfighandler.c.

References CfgParam::CreateParam(), CfgParam::GetName(), m_CfgParams, and name.

◆ GetParameterArray()

TStringArray GetParameterArray ( string name)
inlineprivate

Definition at line 544 of file pluginlocalprofile.c.

References m_ConfigParamsArray, name, and SetParameterArray().

◆ GetParameterBool()

bool GetParameterBool ( string name)
inlineprivate

Definition at line 523 of file pluginlocalprofile.c.

References LoadParameter(), name, SetParameterBool(), and string::ToInt().

◆ GetParameterFloat()

float GetParameterFloat ( string name)
inlineprivate

Definition at line 506 of file pluginlocalprofile.c.

References LoadParameter(), name, SetParameterFloat(), and string::ToFloat().

◆ GetParameterInt()

int GetParameterInt ( string name)
inlineprivate

Definition at line 489 of file pluginlocalprofile.c.

References LoadParameter(), name, SetParameterInt(), and string::ToInt().

◆ GetParameterString()

string GetParameterString ( string name)
inlineprivate

◆ GetSubParameterInArrayString()

string GetSubParameterInArrayString ( string param_name,
int sub_array_index,
string sub_param_name )
inlineprivate

Definition at line 561 of file pluginlocalprofile.c.

References LoadSubParameter(), string::Split(), and STRING_EMPTY.

◆ GetTextType()

◆ IsArray()

bool IsArray ( string text)
inlineprotected

Definition at line 356 of file pluginconfighandler.c.

References CFG_TYPE_ARRAY, and GetTextType().

◆ IsBool()

bool IsBool ( string text)
inlineprotected

Definition at line 386 of file pluginconfighandler.c.

References CFG_TYPE_BOOL, and GetTextType().

◆ IsFloat()

bool IsFloat ( string text)
inlineprotected

Definition at line 366 of file pluginconfighandler.c.

References CFG_TYPE_FLOAT, and GetTextType().

◆ IsInt()

bool IsInt ( string text)
inlineprotected

Definition at line 376 of file pluginconfighandler.c.

References CFG_TYPE_INT, and GetTextType().

◆ IsParam()

bool IsParam ( string text)
inlineprotected

Definition at line 346 of file pluginconfighandler.c.

References CFG_TYPE_PARAM, and GetTextType().

◆ IsString()

bool IsString ( string text)
inlineprotected

Definition at line 336 of file pluginconfighandler.c.

References CFG_TYPE_STRING, and GetTextType().

◆ IsTextArray()

bool IsTextArray ( string text)
inlineprivate

Definition at line 205 of file pluginlocalprofile.c.

References string::Length(), and string::Substring().

Referenced by ParseTextToArray().

◆ LoadConfigFile() [1/2]

void LoadConfigFile ( )
inlineprivate

Definition at line 22 of file pluginconfighandler.c.

References m_CfgParams, and ParseText().

Referenced by OnInit(), and PluginConfigHandler().

◆ LoadConfigFile() [2/2]

◆ LoadParameter()

string LoadParameter ( string param_name)
inlineprivate

◆ LoadParameterArray()

TStringArray LoadParameterArray ( string param_name)
inlineprivate

Definition at line 316 of file pluginlocalprofile.c.

References m_ConfigParamsArray.

◆ LoadSubParameter()

string LoadSubParameter ( string param_name,
int sub_array_index,
string sub_param_name )
inlineprivate

Definition at line 326 of file pluginlocalprofile.c.

References m_ConfigParamsArrayInArray, and STRING_EMPTY.

Referenced by GetSubParameterInArrayString().

◆ OnInit() [1/3]

override void OnInit ( )
inlineprivate

Definition at line 12 of file pluginconfighandler.c.

◆ OnInit() [2/3]

override void OnInit ( )
inlineprivate

Definition at line 12 of file pluginlocalhistorybase.c.

◆ OnInit() [3/3]

override void OnInit ( )
inlineprivate

Definition at line 21 of file pluginlocalprofile.c.

References LoadConfigFile().

◆ ParamExist()

bool ParamExist ( string name)
inlineprivate

Definition at line 106 of file pluginconfighandler.c.

References CfgParam::GetName(), m_CfgParams, and name.

◆ ParseParam()

◆ ParseText()

◆ ParseTextArrayToParameters()

array< ref map< string, string > > ParseTextArrayToParameters ( string text)
inlineprivate

Definition at line 279 of file pluginlocalprofile.c.

References ParseTextToArray(), and ParseTextToParameter().

◆ ParseTextToArray()

◆ ParseTextToParameter()

TStringArray ParseTextToParameter ( string text)
inlineprivate

◆ ParseToValueArray()

array< ref CfgParam > ParseToValueArray ( string param_value)
inlineprotected

◆ ParseToValueBool()

bool ParseToValueBool ( string param_value)
inlineprotected

Definition at line 411 of file pluginconfighandler.c.

References string::Contains().

Referenced by ParseText().

◆ ParseToValueFloat()

float ParseToValueFloat ( string param_value)
inlineprotected

Definition at line 401 of file pluginconfighandler.c.

References string::ToFloat().

Referenced by ParseText().

◆ ParseToValueInt()

int ParseToValueInt ( string param_value)
inlineprotected

Definition at line 406 of file pluginconfighandler.c.

References string::ToInt().

Referenced by ParseText().

◆ ParseToValueString()

string ParseToValueString ( string param_value)
inlineprotected

Definition at line 396 of file pluginconfighandler.c.

References string::Length(), and string::Substring().

Referenced by ParseText().

◆ PluginConfigHandler()

void PluginConfigHandler ( )
inlineprivate

Definition at line 5 of file pluginconfighandler.c.

References LoadConfigFile(), and m_CfgParams.

◆ PluginLocalHistoryBase()

void PluginLocalHistoryBase ( )
inlineprivate

Definition at line 3 of file pluginlocalhistorybase.c.

◆ PluginLocalProfile()

◆ RemoveParamByName()

void RemoveParamByName ( string name)
inlineprivate

Definition at line 78 of file pluginconfighandler.c.

References CfgParam::GetName(), m_CfgParams, and name.

◆ RemoveParameter()

void RemoveParameter ( string name,
bool save_in_file = true )
inlineprivate

Definition at line 416 of file pluginlocalprofile.c.

References m_ConfigParams, name, and SaveConfigToFile().

◆ RemoveParameterArray()

void RemoveParameterArray ( string name,
bool save_in_file = true )
inlineprivate

Definition at line 426 of file pluginlocalprofile.c.

References m_ConfigParamsArray, name, and SaveConfigToFile().

◆ RenameParam()

void RenameParam ( string name,
string new_name )
inlineprivate

Definition at line 92 of file pluginconfighandler.c.

References CfgParam::GetName(), m_CfgParams, name, and CfgParam::SetName().

◆ RenameParameter()

void RenameParameter ( string old_name,
string new_name,
bool save_in_file = true )
inlineprivate

Definition at line 390 of file pluginlocalprofile.c.

References m_ConfigParams, and SaveConfigToFile().

◆ RenameParameterArray()

void RenameParameterArray ( string old_name,
string new_name,
bool save_in_file = true )
inlineprivate

Definition at line 403 of file pluginlocalprofile.c.

References m_ConfigParamsArray, and SaveConfigToFile().

◆ SaveConfigToFile() [1/2]

◆ SaveConfigToFile() [2/2]

void SaveConfigToFile ( )
inlineprivate

◆ SaveParameter()

void SaveParameter ( string param_name,
string value,
bool save_in_file = true )
inlineprivate

◆ SaveParameterArray()

void SaveParameterArray ( string param_name,
TStringArray value,
bool save_in_file = true )
inlineprivate

Definition at line 368 of file pluginlocalprofile.c.

References m_ConfigParamsArray, and SaveConfigToFile().

Referenced by SetParameterArray().

◆ SaveSubParameterInArray()

void SaveSubParameterInArray ( string param_name,
int sub_array_index,
string sub_param_name,
string sub_param_value,
bool save_in_file = true )
inlineprivate

Definition at line 378 of file pluginlocalprofile.c.

References m_ConfigParamsArrayInArray, and SaveConfigToFile().

Referenced by SetSubParameterInArray().

◆ SetParameterArray()

void SetParameterArray ( string name,
TStringArray value,
bool save_in_file = true )
inlineprivate

Definition at line 457 of file pluginlocalprofile.c.

References name, and SaveParameterArray().

Referenced by GetParameterArray().

◆ SetParameterBool()

void SetParameterBool ( string name,
bool value,
bool save_in_file = true )
inlineprivate

Definition at line 452 of file pluginlocalprofile.c.

References name, SaveParameter(), and bool::ToString().

Referenced by GetParameterBool().

◆ SetParameterFloat()

void SetParameterFloat ( string name,
float value,
bool save_in_file = true )
inlineprivate

Definition at line 447 of file pluginlocalprofile.c.

References name, SaveParameter(), and float::ToString().

Referenced by GetParameterFloat().

◆ SetParameterInt()

void SetParameterInt ( string name,
int value,
bool save_in_file = true )
inlineprivate

Definition at line 442 of file pluginlocalprofile.c.

References name, and SaveParameter().

Referenced by GetParameterInt().

◆ SetParameterString()

void SetParameterString ( string name,
string value,
bool save_in_file = true )
inlineprivate

Definition at line 436 of file pluginlocalprofile.c.

References name, and SaveParameter().

Referenced by GetParameterString().

◆ SetSubParameterInArray()

void SetSubParameterInArray ( string param_name,
int sub_array_index,
string sub_param_name,
string sub_param_value,
bool save_in_file = true )
inlineprivate

Definition at line 462 of file pluginlocalprofile.c.

References SaveSubParameterInArray().

Field Documentation

◆ m_CfgParams

◆ m_ConfigParams

◆ m_ConfigParamsArray

◆ m_ConfigParamsArrayInArray

ref map<string, ref array<ref map<string, string> > > m_ConfigParamsArrayInArray
private

◆ m_ConfigParamsInArray

ref map<string, ref map<string, string> > m_ConfigParamsInArray
private

Definition at line 5 of file pluginlocalprofile.c.

Referenced by PluginLocalProfile().


The documentation for this class was generated from the following files: