Settings

Engine/source/util/settings.h

More...

Public Types

Parent 

Public Functions

beginGroup(const UTF8 * groupName, bool fromStart)
buildGroupString(String & name, const UTF8 * settingName)
const char *
findFirstValue(const char * pattern, bool deepSearch, bool includeDefaults)
bool
read()
readLayer(SimXMLDocument * document, String groupStack)
remove(const UTF8 * settingName, bool includeDefaults)
setDefaultValue(const UTF8 * settingName, const UTF8 * settingValue, const UTF8 * settingType)

These will set and get the values, with an option default value passed in to the get.

setValue(const UTF8 * settingName, const UTF8 * settingValue)
value(const UTF8 * settingName, const UTF8 * defaultValue)
bool

Public Static Functions

Detailed Description

Public Types

typedef SimObject Parent 

Private Attributes

FileName mFile 
Vector< String > mGroupStack 
S32 mSearchPos 
Vector< String > mSearchResults 

Public Functions

Settings()

~Settings()

beginGroup(const UTF8 * groupName, bool fromStart)

buildGroupString(String & name, const UTF8 * settingName)

clearAllFields()

clearGroups()

DECLARE_CONOBJECT(Settings )

endGroup()

findFirstValue(const char * pattern, bool deepSearch, bool includeDefaults)

findNextValue()

getCurrentGroups()

read()

readLayer(SimXMLDocument * document, String groupStack)

remove(const UTF8 * settingName, bool includeDefaults)

setDefaultValue(const UTF8 * settingName, const UTF8 * settingValue, const UTF8 * settingType)

These will set and get the values, with an option default value passed in to the get.

setValue(const UTF8 * settingName, const UTF8 * settingValue)

value(const UTF8 * settingName, const UTF8 * defaultValue)

write()

Public Static Functions

initPersistFields()