torque Torque Game Engine Documentation
TGE Version 1.5.2

LangTable Class Reference

#include <lang.h>

Inheritance diagram for LangTable:

Inheritance graph
[legend]

Detailed Description

Language file table.


Public Member Functions

 DECLARE_CONOBJECT (LangTable)
 LangTable ()
virtual ~LangTable ()
S32 addLanguage (LangFile *lang, const UTF8 *name=NULL)
S32 addLanguage (const UTF8 *filename, const UTF8 *name=NULL)
void setDefaultLanguage (S32 langid)
void setCurrentLanguage (S32 langid)
S32 getCurrentLanguage (void)
const UTF8getLangName (const S32 langid) const
const S32 getNumLang (void) const
const UTF8getString (const U32 id) const
const U32 getStringLength (const U32 id) const

Protected Attributes

Vector< LangFile * > mLangTable
S32 mDefaultLang
S32 mCurrentLang

Private Types

typedef SimObject Parent


Member Typedef Documentation

typedef SimObject LangTable::Parent [private]

Reimplemented from SimObject.


Constructor & Destructor Documentation

LangTable::LangTable (  ) 

virtual LangTable::~LangTable (  )  [virtual]


Member Function Documentation

LangTable::DECLARE_CONOBJECT ( LangTable   ) 

S32 LangTable::addLanguage ( LangFile lang,
const UTF8 name = NULL 
)

S32 LangTable::addLanguage ( const UTF8 filename,
const UTF8 name = NULL 
)

void LangTable::setDefaultLanguage ( S32  langid  ) 

void LangTable::setCurrentLanguage ( S32  langid  ) 

S32 LangTable::getCurrentLanguage ( void   )  [inline]

const UTF8* LangTable::getLangName ( const S32  langid  )  const [inline]

const S32 LangTable::getNumLang ( void   )  const [inline]

const UTF8* LangTable::getString ( const U32  id  )  const

const U32 LangTable::getStringLength ( const U32  id  )  const


Field Documentation




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen