#include <Config.h>
This configuration is structured into sections, containing sections and/or parameters. The sections may be nested as deep as required.
Definition at line 69 of file Config.h.
Public Member Functions | |
void | Clear () |
Clears the whole configuration object, removing all sections and parameters. | |
Config () | |
Creates a new configuration. | |
bool | ExportIni (const char *fileName) |
Exports the configuration into an INI file. | |
bool | ExportIni () |
Exports the configuration into an INI file. | |
ConfigSection * | GetContent () |
Returns the main configuration section, the root entry. | |
bool | ImportIni (const char *fileName) |
Imports an INI file as configuration. | |
bool | ImportIni () |
Imports an INI file as configuration. | |
bool | Parse (char *text) |
Deserializes (reads) the configuration from a string. | |
bool | Read (const char *fileName) |
Reads the configuration from a config file. | |
bool | Read () |
Reads the configuration from a config file. | |
bool | Write (class Config::Writer *Writer, bool indent=true) |
Writes the configuration into a given writer, for example a string writer. | |
bool | Write (const char *fileName, bool withBacking=false, bool indent=true) |
Writes the configuration into a config file. | |
bool | Write (bool withBacking=false, bool indent=true) |
Writes the configuration into a config file. | |
~Config () | |
Destroys the configuration. | |
Static Private Member Functions | |
bool | WriteCorrectedForCfgFile (class Config::Writer *Writer, const char *str) |
Writes a given string to a file, after having it modified so that all illegal characters are escaped with a back slash. | |
Private Attributes | |
friend | ConfigParameter |
friend | ConfigSection |
ConfigSection * | Content |
The main section, the root entry for all further sections and parameters. |
|
Creates a new configuration.
|
|
Destroys the configuration.
|
|
Clears the whole configuration object, removing all sections and parameters.
|
|
Exports the configuration into an INI file.
|
|
Exports the configuration into an INI file. The method uses the application's name with the suffix INI. Use the parametered overload to choose the file name.
|
|
Returns the main configuration section, the root entry.
|
|
Imports an INI file as configuration. Any configuration in the object is deleted in prior.
|
|
Imports an INI file as configuration. Any configuration in the object is deleted in prior. The method uses the application's name with the suffix INI. Use the parametered overload to choose the file name.
|
|
Deserializes (reads) the configuration from a string.
|
|
Reads the configuration from a config file. Any configuration in the object is deleted in prior.
|
|
Reads the configuration from a config file. Any configuration in the object is deleted in prior. The method uses the application's name with the suffix CFG. Use the parametered overload to choose the file name.
|
|
Writes the configuration into a given writer, for example a string writer.
|
|
Writes the configuration into a config file.
|
|
Writes the configuration into a config file. The method uses the application's name with the suffix CFG. Use the parametered overload to choose the file name.
|
|
Writes a given string to a file, after having it modified so that all illegal characters are escaped with a back slash.
|
|
|
|
|
|
The main section, the root entry for all further sections and parameters.
|