#include <Config.h>
It can be stored in the main section or a sub-section.
Definition at line 758 of file Config.h.
Public Member Functions | |
bool | GetBoolValue () |
Returns the boolean value of the parameter. | |
double | GetDoubleValue () |
Returns the double float value of the parameter. | |
long | GetLongValue () |
Returns the long integer value of the parameter. | |
char * | GetStringValue () |
Returns the string value of the parameter. | |
int | GetType () |
Returns the type of the parameter. | |
void | SetBoolValue (bool boolValue) |
Sets the type of the parameter to boolean and sets its value. | |
void | SetDoubleValue (double doubleValue) |
Sets the type of the parameter to double float and sets its value. | |
void | SetLongValue (long longValue) |
Sets the type of the parameter to long integer and sets its value. | |
void | SetStringValue (const char *stringValue) |
Sets the type of the parameter to string and sets its value. | |
Private Member Functions | |
ConfigParameter (const char *stringValue) | |
Creates a string (char *) config parameter. | |
ConfigParameter (long longValue) | |
Creates a long integer config parameter. | |
ConfigParameter (double doubleValue) | |
Creates a double float config parameter. | |
ConfigParameter (bool boolValue) | |
Creates a boolean config parameter. | |
ConfigParameter () | |
Creates a config parameter. | |
bool | WriteCorrectedForCfgFile (class Config::Writer *Writer) |
Writes the parameter to a file, after having it modified so that all illegal characters are escaped with a back slash. | |
~ConfigParameter () | |
Destroys the config parameter. | |
Private Attributes | |
friend | ConfigSection |
friend | HashMap<ConfigParameter> |
int | Type |
The current type of the parameter. |
|
Creates a config parameter.
|
|
Creates a boolean config parameter.
|
|
Creates a double float config parameter.
|
|
Creates a long integer config parameter.
|
|
Creates a string (char *) config parameter.
|
|
Destroys the config parameter.
|
|
Returns the boolean value of the parameter. If the parameter is not of boolean type, it is converted in prior. The type is not changed when doing this.
|
|
Returns the double float value of the parameter. If the parameter is not of double float type, it is converted in prior. The type is not changed when doing this.
|
|
Returns the long integer value of the parameter. If the parameter is not of long integer type, it is converted in prior. The type is not changed when doing this.
|
|
Returns the string value of the parameter. If the parameter is not of string type, it is converted in prior, as far as this does not mean any memory allocation. If the conversion isn't possible without allocating memory (for example for the integer type), the method returns an empty string.
|
|
Returns the type of the parameter.
|
|
Sets the type of the parameter to boolean and sets its value.
|
|
Sets the type of the parameter to double float and sets its value.
|
|
Sets the type of the parameter to long integer and sets its value.
|
|
Sets the type of the parameter to string and sets its value.
|
|
Writes the parameter to a file, after having it modified so that all illegal characters are escaped with a back slash.
|
|
The boolean value of the parameter, if the parameter's type is boolean.
|
|
|
|
The double float value of the parameter, if the parameter's type is double float.
|
|
|
|
The long integer value of the parameter, if the parameter's type is long integer.
|
|
The string (char *) value of the parameter, if the parameter's type is string.
|
|
The current type of the parameter.
|