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

#include <TypeInfoGen.h>

Public Member Functions

 idTypeInfoGen (void)
 
 ~idTypeInfoGen (void)
 
void AddDefine (const char *define)
 
void CreateTypeInfo (const char *path)
 
void WriteTypeInfo (const char *fileName) const
 

Private Member Functions

int GetInheritance (const char *typeName) const
 
int EvaluateIntegerString (const idStr &string)
 
float EvaluateFloatString (const idStr &string)
 
idConstantInfoFindConstant (const char *name)
 
int GetIntegerConstant (const char *scope, const char *name, idParser &src)
 
float GetFloatConstant (const char *scope, const char *name, idParser &src)
 
int ParseArraySize (const char *scope, idParser &src)
 
void ParseConstantValue (const char *scope, idParser &src, idStr &value)
 
idEnumTypeInfoParseEnumType (const char *scope, bool isTemplate, bool typeDef, idParser &src)
 
idClassTypeInfoParseClassType (const char *scope, const char *templateArgs, bool isTemplate, bool typeDef, idParser &src)
 
void ParseScope (const char *scope, bool isTemplate, idParser &src, idClassTypeInfo *typeInfo)
 

Private Attributes

idStrList defines
 
idList< idConstantInfo * > constants
 
idList< idEnumTypeInfo * > enums
 
idList< idClassTypeInfo * > classes
 
int numTemplates
 
int maxInheritance
 
idStr maxInheritanceClass
 

Detailed Description

Definition at line 83 of file TypeInfoGen.h.

Constructor & Destructor Documentation

idTypeInfoGen::idTypeInfoGen ( void  )

Definition at line 40 of file TypeInfoGen.cpp.

idTypeInfoGen::~idTypeInfoGen ( void  )

Definition at line 48 of file TypeInfoGen.cpp.

Member Function Documentation

void idTypeInfoGen::AddDefine ( const char *  define)

Definition at line 790 of file TypeInfoGen.cpp.

void idTypeInfoGen::CreateTypeInfo ( const char *  path)

Definition at line 799 of file TypeInfoGen.cpp.

float idTypeInfoGen::EvaluateFloatString ( const idStr string)
private

Definition at line 95 of file TypeInfoGen.cpp.

int idTypeInfoGen::EvaluateIntegerString ( const idStr string)
private

Definition at line 78 of file TypeInfoGen.cpp.

idConstantInfo * idTypeInfoGen::FindConstant ( const char *  name)
private

Definition at line 112 of file TypeInfoGen.cpp.

float idTypeInfoGen::GetFloatConstant ( const char *  scope,
const char *  name,
idParser src 
)
private

Definition at line 145 of file TypeInfoGen.cpp.

int idTypeInfoGen::GetInheritance ( const char *  typeName) const
private

Definition at line 59 of file TypeInfoGen.cpp.

int idTypeInfoGen::GetIntegerConstant ( const char *  scope,
const char *  name,
idParser src 
)
private

Definition at line 128 of file TypeInfoGen.cpp.

int idTypeInfoGen::ParseArraySize ( const char *  scope,
idParser src 
)
private

Definition at line 162 of file TypeInfoGen.cpp.

idClassTypeInfo * idTypeInfoGen::ParseClassType ( const char *  scope,
const char *  templateArgs,
bool  isTemplate,
bool  typeDef,
idParser src 
)
private

Definition at line 311 of file TypeInfoGen.cpp.

void idTypeInfoGen::ParseConstantValue ( const char *  scope,
idParser src,
idStr value 
)
private

Definition at line 205 of file TypeInfoGen.cpp.

idEnumTypeInfo * idTypeInfoGen::ParseEnumType ( const char *  scope,
bool  isTemplate,
bool  typeDef,
idParser src 
)
private

Definition at line 236 of file TypeInfoGen.cpp.

void idTypeInfoGen::ParseScope ( const char *  scope,
bool  isTemplate,
idParser src,
idClassTypeInfo typeInfo 
)
private

Definition at line 402 of file TypeInfoGen.cpp.

void idTypeInfoGen::WriteTypeInfo ( const char *  fileName) const

Definition at line 880 of file TypeInfoGen.cpp.

Member Data Documentation

idList<idClassTypeInfo *> idTypeInfoGen::classes
private

Definition at line 97 of file TypeInfoGen.h.

idList<idConstantInfo *> idTypeInfoGen::constants
private

Definition at line 95 of file TypeInfoGen.h.

idStrList idTypeInfoGen::defines
private

Definition at line 93 of file TypeInfoGen.h.

idList<idEnumTypeInfo *> idTypeInfoGen::enums
private

Definition at line 96 of file TypeInfoGen.h.

int idTypeInfoGen::maxInheritance
private

Definition at line 100 of file TypeInfoGen.h.

idStr idTypeInfoGen::maxInheritanceClass
private

Definition at line 101 of file TypeInfoGen.h.

int idTypeInfoGen::numTemplates
private

Definition at line 99 of file TypeInfoGen.h.


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