|
| bool | readConfigFile (const Common::Path &fname, const Common::String &category) |
| |
|
void | clear () |
| | clear everything
|
| |
|
void | clearRoot (const Common::String &category) |
| | clear everything in a root
|
| |
|
bool | get (const Common::String &category, const Common::String §ion, const Common::String &key, Common::String &ret) const |
| | get value
|
| |
|
bool | get (const Common::String &category, const Common::String §ion, const Common::String &key, int &ret) const |
| | get value
|
| |
|
bool | get (const Common::String &category, const Common::String §ion, const Common::String &key, bool &ret) const |
| | get value
|
| |
| Common::Array< Common::String > | listSections (const Common::String &category) const |
| |
| KeyMap | listKeyValues (const Common::String &category, const Common::String §ion) const |
| |
◆ readConfigFile()
read a config file. Multiple files may be read. Order is important.
- Parameters
-
| fname | The file to read |
| root | The name of the root node in the file |
| readonly | If true, don't write to this file's tree (or the file) |
- Returns
- true if successful
◆ listSections()
list all sections
- Parameters
-
| category | The config category to list all sections in |
- Returns
- the sections. They have no guaranteed order.
◆ listKeyValues()
list all key-value pairs in the given section.
- Parameters
-
| category | The config category for the section to list |
| section | The section to list |
- Returns
- the key-value pairs. They have no guaranteed order.
The documentation for this class was generated from the following file: