#include <ini-file.h>
Public Member Functions | |
bool | hasKey (const String &key) const |
const KeyValue * | getKey (const String &key) const |
void | setKey (const String &key, const String &value) |
void | removeKey (const String &key) |
const SectionKeyList | getKeys () const |
Public Attributes | |
String | name |
List< KeyValue > | keys |
String | comment |
A section in an INI file.
Corresponds to the following:
Comments are also stored, for convenience of users who prefer to edit INI files manually.
bool Common::INIFile::Section::hasKey | ( | const String & | key | ) | const |
Check whether the section has a key
.
Get the value assigned to a key
.
Assign a value
to a key
.
void Common::INIFile::Section::removeKey | ( | const String & | key | ) |
Remove a key
from this section.
|
inline |
Get a list of all keys in the section.
String Common::INIFile::Section::name |
Name of the section, whitespace trimmed.
String Common::INIFile::Section::comment |
Comment within the section, including #s and newlines.