#include <OgreConfigFile.h>
Public Types | |
typedef MapIterator< std::multimap< String, String > > | SettingsIterator |
Public Methods | |
ConfigFile () | |
void | load (const String &filename, const String &separators="\t:=") |
String | getSetting (const String &key) |
Gets the first setting from the file with the named key. More... | |
StringVector | getMultiSetting (const String &key) |
Gets all settings from the file with the named key. More... | |
SettingsIterator | getSettingsIterator (void) |
Gets an iterator for stepping through all the keys / values in the file. More... | |
Protected Attributes | |
std::multimap< String, String > | mSettings |
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.
|
|
|
|
|
Gets all settings from the file with the named key.
|
|
Gets the first setting from the file with the named key.
|
|
Gets an iterator for stepping through all the keys / values in the file.
|
|
|
|
|
Copyright © 2002 by The OGRE Team