|
bool | readConfigFile (const Common::Path &fname, const Std::string &category) |
|
void | clear () |
| clear everything
|
|
void | clearRoot (const Std::string &category) |
| clear everything in a root
|
|
bool | get (const Std::string &category, const Std::string §ion, const Std::string &key, Std::string &ret) const |
| get value
|
|
bool | get (const Std::string &category, const Std::string §ion, const Std::string &key, int &ret) const |
| get value
|
|
bool | get (const Std::string &category, const Std::string §ion, const Std::string &key, bool &ret) const |
| get value
|
|
Std::vector< Std::string > | listSections (const Std::string &category) const |
|
KeyMap | listKeyValues (const Std::string &category, const Std::string §ion) const |
|
◆ readConfigFile()
bool Ultima::Ultima8::ConfigFileManager::readConfigFile |
( |
const Common::Path & |
fname, |
|
|
const Std::string & |
category |
|
) |
| |
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: