My Project
|
Option class to read and write property files (z.B. xyz.ini) More...
#include <Option.h>
Public Member Functions | |
COption (const std::string &iniFile="") | |
Constructor. | |
~COption () | |
Destructor. | |
int | GetPropertyInt (const std::string &component, const std::string &id, int defaultValue=-1) |
Gets a property int. | |
std::string | GetPropertyString (const std::string &component, const std::string &id, const std::string &defaultValue="") |
Gets a property string. | |
bool | GetPropertyBool (const std::string &component, const std::string &id, bool defaultValue=false) |
Gets a property bool. | |
void | SetPropertyInt (const std::string &component, const std::string &id, int value) |
Sets a property int. | |
void | SetPropertyString (const std::string &component, const std::string &id, const std::string &value) |
Sets a property string. | |
void | SetPropertyBool (const std::string &component, const std::string &id, bool value) |
Sets a property bool. | |
Static Public Member Functions | |
static int | GetPropertyIntStatic (const std::string &component, const std::string &id, int defaultValue=-1, const std::string &iniFile="") |
Gets a property int static. | |
static std::string | GetPropertyStringStatic (const std::string &component, const std::string &id, const std::string &defaultValue="", const std::string &iniFile="") |
Gets a property string static. | |
static bool | GetPropertyBoolStatic (const std::string &component, const std::string &id, bool defaultValue=false, const std::string &iniFile="") |
Gets a property bool static. | |
static void | SetPropertyIntStatic (const std::string &component, const std::string &id, int value, const std::string &iniFile) |
static void | SetPropertyStringStatic (const std::string &component, const std::string &id, const std::string &value, const std::string &iniFile) |
static void | SetPropertyBoolStatic (const std::string &component, const std::string &id, bool value, const std::string &iniFile) |
static void | SetDefaultFile (const std::string &defaultFile) |
Sets a default file. |
Option class to read and write property files (z.B. xyz.ini)
COption::COption | ( | const std::string & | iniFile = "" | ) |
Constructor.
iniFile | The initialise file. |
Destructor.
bool COption::GetPropertyBool | ( | const std::string & | component, |
const std::string & | id, | ||
bool | defaultValue = false |
||
) |
Gets a property bool.
component | The component. |
id | The identifier. |
defaultValue | Default value. |
bool COption::GetPropertyBoolStatic | ( | const std::string & | component, |
const std::string & | id, | ||
bool | defaultValue = false , |
||
const std::string & | iniFile = "" |
||
) | [static] |
Gets a property bool static.
component | The component. |
id | The identifier. |
defaultValue | Default value. |
iniFile | The initialise file. |
int COption::GetPropertyInt | ( | const std::string & | component, |
const std::string & | id, | ||
int | defaultValue = -1 |
||
) |
Gets a property int.
component | The component. |
id | The identifier. |
defaultValue | Default value. |
int COption::GetPropertyIntStatic | ( | const std::string & | component, |
const std::string & | id, | ||
int | defaultValue = -1 , |
||
const std::string & | iniFile = "" |
||
) | [static] |
Gets a property int static.
component | The component. |
id | The identifier. |
defaultValue | Default value. |
iniFile | The initialise file. |
std::string COption::GetPropertyString | ( | const std::string & | component, |
const std::string & | id, | ||
const std::string & | defaultValue = "" |
||
) |
Gets a property string.
component | The component. |
id | The identifier. |
defaultValue | Default value. |
std::string COption::GetPropertyStringStatic | ( | const std::string & | component, |
const std::string & | id, | ||
const std::string & | defaultValue = "" , |
||
const std::string & | iniFile = "" |
||
) | [static] |
Gets a property string static.
component | The component. |
id | The identifier. |
defaultValue | Default value. |
iniFile | The initialise file. |
void COption::SetDefaultFile | ( | const std::string & | defaultFile | ) | [static] |
Sets a default file.
defaultFile | Default file. |
void COption::SetPropertyBool | ( | const std::string & | component, |
const std::string & | id, | ||
bool | value | ||
) |
Sets a property bool.
component | The component. |
id | The identifier. |
value | true to value. |
void SallyAPI::System::COption::SetPropertyBoolStatic | ( | const std::string & | component, |
const std::string & | id, | ||
bool | value, | ||
const std::string & | iniFile | ||
) | [static] |
void COption::SetPropertyInt | ( | const std::string & | component, |
const std::string & | id, | ||
int | value | ||
) |
Sets a property int.
component | The component. |
id | The identifier. |
value | The value. |
void SallyAPI::System::COption::SetPropertyIntStatic | ( | const std::string & | component, |
const std::string & | id, | ||
int | value, | ||
const std::string & | iniFile | ||
) | [static] |
void COption::SetPropertyString | ( | const std::string & | component, |
const std::string & | id, | ||
const std::string & | value | ||
) |
Sets a property string.
component | The component. |
id | The identifier. |
value | The value. |
void SallyAPI::System::COption::SetPropertyStringStatic | ( | const std::string & | component, |
const std::string & | id, | ||
const std::string & | value, | ||
const std::string & | iniFile | ||
) | [static] |