For an example on how to use config change callbacks, look at the documentation for the ConfigCallback class.
|
Public Member Functions |
| Config (Console *pkConsole=0) |
virtual | ~Config () |
void | SetValue (const HashString &rstrKey, const HashString &rstrValue) |
void | SetValue (const HashString &rstrKey, float fValue) |
void | SetValue (const HashString &rstrKey, int iValue) |
void | SetValue (const HashString &rstrKey, bool bValue) |
int | GetValue (const HashString &rstrKey, std::string *pstrValue) |
int | GetValue (const HashString &rstrKey, float *pfValue) |
int | GetValue (const HashString &rstrKey, int *piValue) |
int | GetValue (const HashString &rstrKey, bool *pbValue) |
void | Print () |
void | RegisterCallback (ConfigCallback *pkCallback) |
void | UnregisterCallback (ConfigCallback *pkCallback) |
virtual void | ConsoleCmd (const HashString &rstrCmd, const HashString &rstrArgs) |
void | SetFileManager (FileManager *pkManager) |
bool | Load (const std::string &rstrFilename, unsigned int uiFlags=0, bool bForceReload=false, bool bSearchFileSystem=false) |
bool | Load (File *pkFile, unsigned int uiFlags=0, bool bForceReload=false) |
Protected Attributes |
File * | m_pkFile |
bool | m_bLoaded |
bool | m_bKeepFile |
FileManager * | m_pkFileManager |
Private Member Functions |
virtual bool | LoadNode (unsigned int uiFlags) |
Private Attributes |
HashTable< ConfigValue > * | m_pkHashTable |
std::vector< ConfigCallback * > | m_vpkCallbacks |