#include <CATStringTable.h>
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 CATWChar * | GetString (CATResult stringId, CATLangId langId=CATLANG_EN) const |
Protected Attributes | |
std::vector< CATStringTable * > | fSubTables |