28#ifndef __ConfigFile_H__
29#define __ConfigFile_H__
69 void load(
const String& filename,
const String& separators =
"\t:=",
bool trimWhitespace =
true);
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
Class for quickly loading settings from a text file.
SettingsIterator getSettingsIterator(const String §ion=StringUtil::BLANK)
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
multimap< String, String >::type SettingsMultiMap
void clear(void)
Clear the settings.
void load(const String &filename, const String &separators="\t:=", bool trimWhitespace=true)
load from a filename (not using resource group locations)
SettingsBySection mSettings
map< String, SettingsMultiMap * >::type SettingsBySection
Gets an iterator for stepping through all the keys / values in the file.
String getSetting(const String &key, const String §ion=StringUtil::BLANK, const String &defaultValue=StringUtil::BLANK) const
Gets the first setting from the file with the named key.
void loadDirect(const String &filename, const String &separators="\t:=", bool trimWhitespace=true)
load from a filename (not using resource group locations)
MapIterator< SettingsBySection > SectionIterator
SectionIterator getSectionIterator(void)
Get an iterator over all the available sections in the config file.
void loadFromResourceSystem(const String &filename, const String &resourceGroup, const String &separators="\t:=", bool trimWhitespace=true)
load from a filename (using resource group locations)
StringVector getMultiSetting(const String &key, const String §ion=StringUtil::BLANK) const
Gets all settings from the file with the named key.
MapIterator< SettingsMultiMap > SettingsIterator
Concrete IteratorWrapper for nonconst access to the underlying key-value container.
vector< String >::type StringVector
std::map< K, V, P, A > type
std::multimap< K, V, P, A > type