DDraceNetwork Docs
CConfigManager Class Reference

#include <config.h>

Inheritance diagram for CConfigManager:
[legend]
Collaboration diagram for CConfigManager:
[legend]

Classes

struct  SCallback
 

Public Member Functions

 CConfigManager ()
 
void Init () override
 
void Reset (const char *pScriptName) override
 
void ResetGameSettings () override
 
void SetReadOnly (const char *pScriptName, bool ReadOnly) override
 
bool Save () override
 
CConfigValues () override
 
void RegisterCallback (SAVECALLBACKFUNC pfnFunc, void *pUserData) override
 
void WriteLine (const char *pLine) override
 
void StoreUnknownCommand (const char *pCommand) override
 
void PossibleConfigVariables (const char *pStr, int FlagMask, POSSIBLECFGFUNC pfnCallback, void *pUserData) override
 
virtual void Init ()=0
 
virtual void Reset (const char *pScriptName)=0
 
virtual void ResetGameSettings ()=0
 
virtual void SetReadOnly (const char *pScriptName, bool ReadOnly)=0
 
virtual bool Save ()=0
 
virtual class CConfigValues ()=0
 
virtual void RegisterCallback (SAVECALLBACKFUNC pfnFunc, void *pUserData)=0
 
virtual void WriteLine (const char *pLine)=0
 
virtual void StoreUnknownCommand (const char *pCommand)=0
 
virtual void PossibleConfigVariables (const char *pStr, int FlagMask, POSSIBLECFGFUNC pfnCallback, void *pUserData)=0
 
- Public Member Functions inherited from IInterface
 IInterface ()
 
virtual void Shutdown ()
 
virtual ~IInterface ()
 

Static Private Member Functions

static void Con_Reset (IConsole::IResult *pResult, void *pUserData)
 
static void Con_Toggle (IConsole::IResult *pResult, void *pUserData)
 
static void Con_ToggleStroke (IConsole::IResult *pResult, void *pUserData)
 

Private Attributes

IConsolem_pConsole
 
class IStoragem_pStorage
 
IOHANDLE m_ConfigFile
 
bool m_Failed
 
std::vector< SCallbackm_vCallbacks
 
std::vector< SConfigVariable * > m_vpAllVariables
 
std::vector< SConfigVariable * > m_vpGameVariables
 
std::vector< const char * > m_vpUnknownCommands
 
CHeap m_ConfigHeap
 

Additional Inherited Members

- Public Types inherited from IConfigManager
typedef void(* SAVECALLBACKFUNC) (IConfigManager *pConfig, void *pUserData)
 
typedef void(* POSSIBLECFGFUNC) (const struct SConfigVariable *, void *pUserData)
 
- Static Public Member Functions inherited from IConfigManager
static const char * InterfaceName ()
 
- Protected Member Functions inherited from IInterface
IKernelKernel ()
 

Constructor & Destructor Documentation

◆ CConfigManager()

CConfigManager::CConfigManager ( )

Member Function Documentation

◆ Con_Reset()

void CConfigManager::Con_Reset ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ Con_Toggle()

void CConfigManager::Con_Toggle ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ Con_ToggleStroke()

void CConfigManager::Con_ToggleStroke ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ Init()

void CConfigManager::Init ( )
overridevirtual

Implements IConfigManager.

◆ PossibleConfigVariables()

void CConfigManager::PossibleConfigVariables ( const char *  pStr,
int  FlagMask,
POSSIBLECFGFUNC  pfnCallback,
void *  pUserData 
)
overridevirtual

Implements IConfigManager.

◆ RegisterCallback()

void CConfigManager::RegisterCallback ( SAVECALLBACKFUNC  pfnFunc,
void *  pUserData 
)
overridevirtual

Implements IConfigManager.

◆ Reset()

void CConfigManager::Reset ( const char *  pScriptName)
overridevirtual

Implements IConfigManager.

◆ ResetGameSettings()

void CConfigManager::ResetGameSettings ( )
overridevirtual

Implements IConfigManager.

◆ Save()

bool CConfigManager::Save ( )
overridevirtual

Implements IConfigManager.

◆ SetReadOnly()

void CConfigManager::SetReadOnly ( const char *  pScriptName,
bool  ReadOnly 
)
overridevirtual

Implements IConfigManager.

◆ StoreUnknownCommand()

void CConfigManager::StoreUnknownCommand ( const char *  pCommand)
overridevirtual

Implements IConfigManager.

◆ Values()

CConfig * CConfigManager::Values ( )
inlineoverridevirtual

Implements IConfigManager.

◆ WriteLine()

void CConfigManager::WriteLine ( const char *  pLine)
overridevirtual

Implements IConfigManager.

Member Data Documentation

◆ m_ConfigFile

IOHANDLE CConfigManager::m_ConfigFile
private

◆ m_ConfigHeap

CHeap CConfigManager::m_ConfigHeap
private

◆ m_Failed

bool CConfigManager::m_Failed
private

◆ m_pConsole

IConsole* CConfigManager::m_pConsole
private

◆ m_pStorage

class IStorage* CConfigManager::m_pStorage
private

◆ m_vCallbacks

std::vector<SCallback> CConfigManager::m_vCallbacks
private

◆ m_vpAllVariables

std::vector<SConfigVariable *> CConfigManager::m_vpAllVariables
private

◆ m_vpGameVariables

std::vector<SConfigVariable *> CConfigManager::m_vpGameVariables
private

◆ m_vpUnknownCommands

std::vector<const char *> CConfigManager::m_vpUnknownCommands
private

The documentation for this class was generated from the following files: