Public Types | |
| typedef StringMap::const_iterator | const_iterator |
Public Member Functions | |
| const_iterator | begin () const |
| const_iterator | end () const |
| bool | empty () const |
| bool | contains (const String &key) const |
| const String & | operator[] (const String &key) const |
| void | setVal (const String &key, const String &value) |
| String & | getOrCreateVal (const String &key) |
| String & | getVal (const String &key) |
| const String & | getVal (const String &key) const |
| bool | tryGetVal (const String &key, String &out) const |
| const String & | getValOrDefault (const String &key) const |
| void | clear () |
| void | erase (const String &key) |
| void | setDomainComment (const String &comment) |
| const String & | getDomainComment () const |
| void | setKVComment (const String &key, const String &comment) |
| const String & | getKVComment (const String &key) const |
| bool | hasKVComment (const String &key) const |
|
inline |
Return the beginning position of configuration entries.
|
inline |
Return the ending position of configuration entries.
|
inline |
Return true if the configuration is empty, i.e. has no [key, value] pairs, and false otherwise.
|
inline |
Check whether the domain contains a key.
Return the configuration value for the given key.
Assign a value to a key.
Return the configuration value for the given key. If no entry exists for the given key in the configuration, it is created.
Retrieve the value of a key.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Retrieve the value of key if it exists and leave the referenced variable unchanged if the key does not exist.
|
inline |
Clear all configuration entries in the domain.
|
inline |
Remove a key from the domain.
| void Common::ConfigManager::Domain::setDomainComment | ( | const String & | comment | ) |
Add a comment for this configuration domain.
| const String& Common::ConfigManager::Domain::getDomainComment | ( | ) | const |
Retrieve the comment of this configuration domain.
Add a key-value comment to a key.
Retrieve the key-value comment of a key.
| bool Common::ConfigManager::Domain::hasKVComment | ( | const String & | key | ) | const |
Check whether a key has a key-value comment.