7 #ifndef _STRING_TABLE_CLASS_HEADER_
8 #define _STRING_TABLE_CLASS_HEADER_
char tChar
The tChar defines the type for platform character set (platform and compiler dependent type).
int32_t tInt32
type definition for signed integer values (32bit) (platform and compiler independent type).
tVoid * tHandle
type definition for a handle value (platform and compiler dependent type).
int tInt
type definition for signed integer value (platform and compiler dependent type).
bool tBool
The tBool defines the type for the Values tTrue and tFalse (platform and compiler dependent).
A common result class usable as return value throughout.
static cStringTable * m_pGlobalInstance
Pointer to global string table.
cString & Get(const tChar *strId)
Returns the value assigned to a string.
cString Format(const tChar *strId,...)
Printf-style formating.
tResult Free()
Frees all allocated resources.
cStringTable()
Default constructor.
cString & operator[](tInt32 nIdx)
Use this function to access single elements of the table.
cString & operator[](const cString &strKey)
This function retrieves a string value from the list.
virtual ~cStringTable()
Destructor.
tResult LoadFromString(const tChar *strTable)
Initializes the string table from a string.
static cStringTable * GetGlobal()
Returns the global table if available.
cStringMap m_mapStrings
Internally used string map.
tBool IsEmpty() const
This function checks if the string table object is empty.
tResult Load(const tChar *strFilename)
Loads a string table from a file.
tInt32 GetItemCount() const
This function returns the number of items the table contains.
#define A_UTILS_D(__pclassname_)
Helper macro for d-pattern definitions.
ADTF A_UTIL Namespace - Within adtf this is used as adtf::util or adtf_util.
cString __strfmt(const tChar *strId,...)
Use this function to access single elements of the global string table.
cString & __strget(const tChar *strId)
Use this function to access single elements of the global string table.