|
| ConfigFile () |
|
virtual | ~ConfigFile () |
|
void | clear (void) |
| Clear the settings.
|
|
StringVector | getMultiSetting (const String &key, const String §ion=BLANKSTRING) const |
| Gets all settings from the file with the named key.
|
|
SectionIterator | getSectionIterator (void) |
| Get an iterator over all the available sections in the config file.
|
|
String | getSetting (const String &key, const String §ion=BLANKSTRING, const String &defaultValue=BLANKSTRING) const |
| Gets the first setting from the file with the named key.
|
|
SettingsIterator | getSettingsIterator (const String §ion=BLANKSTRING) |
| Get an iterator over all the available settings in a section.
|
|
void | load (const DataStreamPtr &stream, const String &separators="\t:=", bool trimWhitespace=true) |
| load from a data stream
|
|
void | load (const String &filename, const String &resourceGroup, const String &separators="\t:=", bool trimWhitespace=true) |
| load from a filename (using resource group locations)
|
|
void | load (const String &filename, const String &separators="\t:=", bool trimWhitespace=true) |
| load from a filename (not using resource group locations)
|
|
void | loadDirect (const String &filename, const String &separators="\t:=", bool trimWhitespace=true) |
| load from a filename (not using resource group locations)
|
|
void | loadFromResourceSystem (const String &filename, const String &resourceGroup, const String &separators="\t:=", bool trimWhitespace=true) |
| load from a filename (using resource group locations)
|
|
void | operator delete (void *ptr) |
|
void | operator delete (void *ptr, const char *, int, const char *) |
|
void | operator delete (void *ptr, void *) |
|
void | operator delete[] (void *ptr) |
|
void | operator delete[] (void *ptr, const char *, int, const char *) |
|
void * | operator new (size_t sz) |
|
void * | operator new (size_t sz, const char *file, int line, const char *func) |
| operator new, with debug line info
|
|
void * | operator new (size_t sz, void *ptr) |
| placement operator new
|
|
void * | operator new[] (size_t sz) |
|
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
| array operator new, with debug line info
|
|
Class for quickly loading settings from a text file.
- This is a very simplified approach, no multiple values per key are allowed, no grouping or context is being kept etc.
- By default the key/values pairs are tokenised based on a separator of Tab, the colon (:) or equals (=) character. Each key - value pair must end in a carriage return.
- Settings can be optionally grouped in sections, using a header beforehand of the form [SectionName].