#include <OgreConfigFile.h>
Public Types | |
typedef std::multimap< String, String > | SettingsMultiMap |
typedef MapIterator< SettingsMultiMap > | SettingsIterator |
typedef std::map< String, SettingsMultiMap * > | SettingsBySection |
Gets an iterator for stepping through all the keys / values in the file. | |
typedef MapIterator< SettingsBySection > | SectionIterator |
Public Member Functions | |
ConfigFile () | |
virtual | ~ConfigFile () |
void | load (const String &filename, const String &separators="\t:=", bool trimWhitespace=true) |
load from a filename (not using resource group locations) | |
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 DataStreamPtr &stream, const String &separators="\t:=", bool trimWhitespace=true) |
load from a data stream | |
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) | |
String | getSetting (const String &key, const String §ion=StringUtil::BLANK) const |
Gets the first setting from the file with the named key. | |
StringVector | getMultiSetting (const String &key, const String §ion=StringUtil::BLANK) 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. | |
SettingsIterator | getSettingsIterator (const String §ion=StringUtil::BLANK) |
Get an iterator over all the available settings in a section. | |
void | clear (void) |
Clear the settings. | |
Protected Attributes | |
SettingsBySection | mSettings |
Definition at line 52 of file OgreConfigFile.h.
|
Definition at line 81 of file OgreConfigFile.h. |
|
Gets an iterator for stepping through all the keys / values in the file.
Definition at line 80 of file OgreConfigFile.h. |
|
Definition at line 78 of file OgreConfigFile.h. |
|
Definition at line 77 of file OgreConfigFile.h. |
|
|
|
|
|
Clear the settings.
|
|
Gets all settings from the file with the named key.
|
|
Get an iterator over all the available sections in the config file.
|
|
Gets the first setting from the file with the named key.
|
|
Get an iterator over all the available settings in a section.
|
|
load from a data stream
|
|
load from a filename (using resource group locations)
|
|
load from a filename (not using resource group locations)
|
|
load from a filename (not using resource group locations)
|
|
load from a filename (using resource group locations)
|
|
Definition at line 92 of file OgreConfigFile.h. |
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Feb 12 13:00:17 2006