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
idLangDict Class Reference

#include <LangDict.h>

Public Member Functions

 idLangDict (void)
 
 ~idLangDict (void)
 
void Clear (void)
 
bool Load (const char *fileName, bool clear=true)
 
void Save (const char *fileName)
 
const char * AddString (const char *str)
 
const char * GetString (const char *str) const
 
void AddKeyVal (const char *key, const char *val)
 
int GetNumKeyVals (void) const
 
const idLangKeyValueGetKeyVal (int i) const
 
void SetBaseID (int id)
 

Private Member Functions

bool ExcludeString (const char *str) const
 
int GetNextId (void) const
 
int GetHashKey (const char *str) const
 

Private Attributes

idList< idLangKeyValueargs
 
idHashIndex hash
 
int baseID
 

Detailed Description

Definition at line 46 of file LangDict.h.

Constructor & Destructor Documentation

idLangDict::idLangDict ( void  )

Definition at line 38 of file LangDict.cpp.

idLangDict::~idLangDict ( void  )

Definition at line 50 of file LangDict.cpp.

Member Function Documentation

void idLangDict::AddKeyVal ( const char *  key,
const char *  val 
)

Definition at line 222 of file LangDict.cpp.

const char * idLangDict::AddString ( const char *  str)

Definition at line 174 of file LangDict.cpp.

void idLangDict::Clear ( void  )

Definition at line 59 of file LangDict.cpp.

bool idLangDict::ExcludeString ( const char *  str) const
private

Definition at line 235 of file LangDict.cpp.

int idLangDict::GetHashKey ( const char *  str) const
private

Definition at line 302 of file LangDict.cpp.

const idLangKeyValue * idLangDict::GetKeyVal ( int  i) const

Definition at line 213 of file LangDict.cpp.

int idLangDict::GetNextId ( void  ) const
private

Definition at line 275 of file LangDict.cpp.

int idLangDict::GetNumKeyVals ( void  ) const

Definition at line 204 of file LangDict.cpp.

const char * idLangDict::GetString ( const char *  str) const

Definition at line 148 of file LangDict.cpp.

bool idLangDict::Load ( const char *  fileName,
bool  clear = true 
)

Definition at line 69 of file LangDict.cpp.

void idLangDict::Save ( const char *  fileName)

Definition at line 116 of file LangDict.cpp.

void idLangDict::SetBaseID ( int  id)
inline

Definition at line 64 of file LangDict.h.

Member Data Documentation

idList<idLangKeyValue> idLangDict::args
private

Definition at line 64 of file LangDict.h.

int idLangDict::baseID
private

Definition at line 74 of file LangDict.h.

idHashIndex idLangDict::hash
private

Definition at line 68 of file LangDict.h.


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