#include <Config.h>
Definition at line 404 of file Config.h.
Public Member Functions | |
bool | ContainsParameter (const char *name) |
Returns whether a given parameter is existing. | |
bool | ContainsSection (const char *name) |
Returns whether a given sub-section is existing. | |
void | DeleteAllParameters () |
Removes all parameters from the section. | |
void | DeleteAllSections () |
Removes all sub-sections from the section. | |
void | DeleteParameter (const char *name) |
Removes a parameter from the section. | |
void | DeleteSection (const char *name) |
Removes a sub-section from the section. | |
bool | GetBoolValue (const char *name, bool defaultBoolValue) |
Returns a boolean value of a parameter. | |
bool | GetBoolValue (const char *name) |
Returns a boolean value for a given name. | |
double | GetDoubleValue (const char *name, double defaultDoubleValue) |
Returns a double float value of a parameter. | |
double | GetDoubleValue (const char *name) |
Returns a double float value of a parameter. | |
int | GetIntValue (const char *name, int defaultIntValue) |
Returns a integer value of a parameter. | |
int | GetIntValue (const char *name) |
Returns a integer value of a parameter. | |
long | GetLongValue (const char *name, long defaultLongValue) |
Returns a long integer value of a parameter. | |
long | GetLongValue (const char *name) |
Returns a long integer value of a parameter. | |
const char * | GetName () |
Returns the name of the section. | |
ConfigParameter * | GetParameter (const char *name) |
Returns the ConfigParameter object for a given name or creates it, if it doesn't exist yet. | |
PointeredList * | GetParameterNames () |
Returns a PointeredList of all parameter names in this section. | |
ConfigSection * | GetSection (const char *name) |
Returns a sub-section of the section. | |
PointeredList * | GetSectionNames () |
Returns a PointeredList of all section names in this section. | |
PointeredList * | GetSections () |
Returns a PointeredList of all sections in this section. | |
const char * | GetStringValue (const char *name, const char *defaultStringValue) |
Returns a string value of a parameter. | |
const char * | GetStringValue (const char *name) |
Returns a string value of a parameter. | |
int | GetType (const char *name) |
Returns the type of a given parameter. | |
bool | HasParameter (const char *name) |
Returns whether the config section has a parameter with a given name. | |
bool | HasSection (const char *name) |
Returns whether the config section has a sub section with a given name. | |
void | SetBoolValue (const char *name, bool boolValue) |
Sets a boolean parameter for a given name. | |
void | SetDoubleValue (const char *name, double doubleValue) |
Sets a double float parameter for a given name. | |
void | SetIntValue (const char *name, int intValue) |
Sets a integer parameter for a given name. | |
void | SetLongValue (const char *name, long longValue) |
Sets a long integer parameter for a given name. | |
void | SetStringValue (const char *name, const char *stringValue) |
Sets a string parameter for a given name. | |
Private Member Functions | |
ConfigSection (const char *name) | |
Creates a new config section. | |
bool | WriteTo (class Config::Writer *Writer, int depth, bool indent) |
Writes this section to a file. | |
~ConfigSection () | |
Destroys the config section. | |
Static Private Member Functions | |
bool | WriteIndentation (class Config::Writer *Writer, int depth) |
Writes the indentation (tabs) according to the given depth into a file. | |
Private Attributes | |
friend | Config |
friend | HashMap<ConfigSection> |
char * | Name |
The name of the section. | |
StringKeyHashMap< ConfigParameter > * | Parameters |
The parameters in this section. | |
StringKeyHashMap< ConfigSection > * | Sections |
The sub-sections in this section. |
|
Creates a new config section.
|
|
Destroys the config section.
|
|
Returns whether a given parameter is existing.
|
|
Returns whether a given sub-section is existing.
|
|
Removes all parameters from the section.
|
|
Removes all sub-sections from the section.
|
|
Removes a parameter from the section.
|
|
Removes a sub-section from the section.
|
|
Returns a boolean value of a parameter. If the parameter is not of boolean type, it is converted in prior. The type is not changed when doing this.
|
|
Returns a boolean value for a given name. If the parameter is not of boolean type, it is converted in prior. The type is not changed when doing this.
|
|
Returns a double float value of a parameter. If the parameter is not of double float type, it is converted in prior. The type is not changed when doing this.
|
|
Returns a double float value of a parameter. If the parameter is not of double float type, it is converted in prior. The type is not changed when doing this.
|
|
Returns a integer value of a parameter. If the parameter is not of integer type, it is converted in prior. The type is not changed when doing this.
|
|
Returns a integer value of a parameter. If the parameter is not of integer type, it is converted in prior. The type is not changed when doing this.
|
|
Returns a long integer value of a parameter. If the parameter is not of long integer type, it is converted in prior. The type is not changed when doing this.
|
|
Returns a long integer value of a 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 name of the section.
|
|
Returns the ConfigParameter object for a given name or creates it, if it doesn't exist yet.
|
|
Returns a PointeredList of all parameter names in this section.
|
|
Returns a sub-section of the section. If the section does not exist, a new ConfigSection is returned. So use this method to create sections as well.
|
|
Returns a PointeredList of all section names in this section.
|
|
Returns a PointeredList of all sections in this section.
|
|
Returns a string value of a 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 a string value of a 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 a given parameter.
|
|
Returns whether the config section has a parameter with a given name.
|
|
Returns whether the config section has a sub section with a given name.
|
|
Sets a boolean parameter for a given name.
|
|
Sets a double float parameter for a given name.
|
|
Sets a integer parameter for a given name.
|
|
Sets a long integer parameter for a given name.
|
|
Sets a string parameter for a given name.
|
|
Writes the indentation (tabs) according to the given depth into a file.
|
|
Writes this section to a file.
|
|
|
|
|
|
The name of the section.
|
|
The parameters in this section.
|
|
The sub-sections in this section.
|