doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions | Static Private Attributes | List of all members
idCVar Class Reference

#include <CVarSystem.h>

Inheritance diagram for idCVar:
idInternalCVar

Public Member Functions

 idCVar (void)
 
 idCVar (const char *name, const char *value, int flags, const char *description, argCompletion_t valueCompletion=NULL)
 
 idCVar (const char *name, const char *value, int flags, const char *description, float valueMin, float valueMax, argCompletion_t valueCompletion=NULL)
 
 idCVar (const char *name, const char *value, int flags, const char *description, const char **valueStrings, argCompletion_t valueCompletion=NULL)
 
virtual ~idCVar (void)
 
const char * GetName (void) const
 
int GetFlags (void) const
 
const char * GetDescription (void) const
 
float GetMinValue (void) const
 
float GetMaxValue (void) const
 
const char ** GetValueStrings (void) const
 
argCompletion_t GetValueCompletion (void) const
 
bool IsModified (void) const
 
void SetModified (void)
 
void ClearModified (void)
 
const char * GetString (void) const
 
bool GetBool (void) const
 
int GetInteger (void) const
 
float GetFloat (void) const
 
void SetString (const char *value)
 
void SetBool (const bool value)
 
void SetInteger (const int value)
 
void SetFloat (const float value)
 
void SetInternalVar (idCVar *cvar)
 

Static Public Member Functions

static void RegisterStaticVars (void)
 

Protected Attributes

const char * name
 
const char * value
 
const char * description
 
int flags
 
float valueMin
 
float valueMax
 
const char ** valueStrings
 
argCompletion_t valueCompletion
 
int integerValue
 
float floatValue
 
idCVarinternalVar
 
idCVarnext
 

Private Member Functions

void Init (const char *name, const char *value, int flags, const char *description, float valueMin, float valueMax, const char **valueStrings, argCompletion_t valueCompletion)
 
virtual void InternalSetString (const char *newValue)
 
virtual void InternalSetBool (const bool newValue)
 
virtual void InternalSetInteger (const int newValue)
 
virtual void InternalSetFloat (const float newValue)
 

Static Private Attributes

static idCVarstaticVars = NULL
 

Detailed Description

Definition at line 114 of file CVarSystem.h.

Constructor & Destructor Documentation

idCVar::idCVar ( void  )
inline

Definition at line 117 of file CVarSystem.h.

ID_INLINE idCVar::idCVar ( const char *  name,
const char *  value,
int  flags,
const char *  description,
argCompletion_t  valueCompletion = NULL 
)

Definition at line 181 of file CVarSystem.h.

ID_INLINE idCVar::idCVar ( const char *  name,
const char *  value,
int  flags,
const char *  description,
float  valueMin,
float  valueMax,
argCompletion_t  valueCompletion = NULL 
)

Definition at line 189 of file CVarSystem.h.

ID_INLINE idCVar::idCVar ( const char *  name,
const char *  value,
int  flags,
const char *  description,
const char **  valueStrings,
argCompletion_t  valueCompletion = NULL 
)

Definition at line 194 of file CVarSystem.h.

virtual idCVar::~idCVar ( void  )
inlinevirtual

Definition at line 127 of file CVarSystem.h.

Member Function Documentation

void idCVar::ClearModified ( void  )
inline

Definition at line 139 of file CVarSystem.h.

bool idCVar::GetBool ( void  ) const
inline

Definition at line 142 of file CVarSystem.h.

const char* idCVar::GetDescription ( void  ) const
inline

Definition at line 131 of file CVarSystem.h.

int idCVar::GetFlags ( void  ) const
inline

Definition at line 130 of file CVarSystem.h.

float idCVar::GetFloat ( void  ) const
inline

Definition at line 144 of file CVarSystem.h.

int idCVar::GetInteger ( void  ) const
inline

Definition at line 143 of file CVarSystem.h.

float idCVar::GetMaxValue ( void  ) const
inline

Definition at line 133 of file CVarSystem.h.

float idCVar::GetMinValue ( void  ) const
inline

Definition at line 132 of file CVarSystem.h.

const char* idCVar::GetName ( void  ) const
inline

Definition at line 129 of file CVarSystem.h.

const char* idCVar::GetString ( void  ) const
inline

Definition at line 141 of file CVarSystem.h.

argCompletion_t idCVar::GetValueCompletion ( void  ) const
inline

Definition at line 135 of file CVarSystem.h.

const char** idCVar::GetValueStrings ( void  ) const
inline

Definition at line 134 of file CVarSystem.h.

ID_INLINE void idCVar::Init ( const char *  name,
const char *  value,
int  flags,
const char *  description,
float  valueMin,
float  valueMax,
const char **  valueStrings,
argCompletion_t  valueCompletion 
)
private

Definition at line 278 of file CVarSystem.h.

virtual void idCVar::InternalSetBool ( const bool  newValue)
inlineprivatevirtual

Reimplemented in idInternalCVar.

Definition at line 174 of file CVarSystem.h.

virtual void idCVar::InternalSetFloat ( const float  newValue)
inlineprivatevirtual

Reimplemented in idInternalCVar.

Definition at line 176 of file CVarSystem.h.

virtual void idCVar::InternalSetInteger ( const int  newValue)
inlineprivatevirtual

Reimplemented in idInternalCVar.

Definition at line 175 of file CVarSystem.h.

virtual void idCVar::InternalSetString ( const char *  newValue)
inlineprivatevirtual

Reimplemented in idInternalCVar.

Definition at line 173 of file CVarSystem.h.

bool idCVar::IsModified ( void  ) const
inline

Definition at line 137 of file CVarSystem.h.

ID_INLINE void idCVar::RegisterStaticVars ( void  )
static

Definition at line 300 of file CVarSystem.h.

void idCVar::SetBool ( const bool  value)
inline

Definition at line 147 of file CVarSystem.h.

void idCVar::SetFloat ( const float  value)
inline

Definition at line 149 of file CVarSystem.h.

void idCVar::SetInteger ( const int  value)
inline

Definition at line 148 of file CVarSystem.h.

void idCVar::SetInternalVar ( idCVar cvar)
inline

Definition at line 151 of file CVarSystem.h.

void idCVar::SetModified ( void  )
inline

Definition at line 138 of file CVarSystem.h.

void idCVar::SetString ( const char *  value)
inline

Definition at line 146 of file CVarSystem.h.

Member Data Documentation

const char* idCVar::description
protected

Definition at line 158 of file CVarSystem.h.

int idCVar::flags
protected

Definition at line 159 of file CVarSystem.h.

float idCVar::floatValue
protected

Definition at line 165 of file CVarSystem.h.

int idCVar::integerValue
protected

Definition at line 164 of file CVarSystem.h.

idCVar* idCVar::internalVar
protected

Definition at line 166 of file CVarSystem.h.

const char* idCVar::name
protected

Definition at line 156 of file CVarSystem.h.

idCVar* idCVar::next
protected

Definition at line 167 of file CVarSystem.h.

idCVar * idCVar::staticVars = NULL
staticprivate

Definition at line 178 of file CVarSystem.h.

const char* idCVar::value
protected

Definition at line 157 of file CVarSystem.h.

argCompletion_t idCVar::valueCompletion
protected

Definition at line 163 of file CVarSystem.h.

float idCVar::valueMax
protected

Definition at line 161 of file CVarSystem.h.

float idCVar::valueMin
protected

Definition at line 160 of file CVarSystem.h.

const char** idCVar::valueStrings
protected

Definition at line 162 of file CVarSystem.h.


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