Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATStringTable Class Reference

CATStringTable Class Reference
[Common Accessibility Technology [CAT] library]

#include <CATStringTable.h>

Inheritance diagram for CATStringTable:

CATStringTableCore

List of all members.


Detailed Description

Base class for string tables for internationalization.

Right now this is just a place holder, really.

We need to move the result declarations and associated strings to a seperate process where they are autogenerated. In the meantime, though, having at least this much abstractions will allow us to do the conversion to an external string table later much more easily.

Note on usage: GetString() should be safe to call across threads by itself. HOWEVER, it would not be safe while another thread was mucking with the AddSubTable() / RemoveSubTable() functions. My suggestion would be to load up the string tables in main() prior to starting threads.

Failing that, the add/remove procedures will need to be synchronized against GetString(). This is not currently done.

Definition at line 42 of file CATStringTable.h.


Public Member Functions

 CATStringTable ()
virtual ~CATStringTable ()
CATResult AddSubTable (CATStringTable *childTable)
CATResult RemoveSubTable (CATStringTable *childTable)
virtual const CATWCharGetString (CATResult stringId, CATLangId langId=CATLANG_EN) const

Protected Attributes

std::vector< CATStringTable * > fSubTables

The documentation for this class was generated from the following files:
Generated on Mon Feb 11 04:11:06 2008 for Game Accessibility Suite by doxygen 1.5.4