26 #ifndef __EVE_MARSHAL_STRING_TABLE_H__INCL__
27 #define __EVE_MARSHAL_STRING_TABLE_H__INCL__
32 #define STRING_TABLE_ERROR 0
93 while( ( c = *str++ ) )
94 hash = ( ( hash << 5 ) + hash ) + c;
112 #define sMarshalStringTable \
113 ( MarshalStringTable::get() )
static const size_t s_mStringTableSize
StringTableMap::const_iterator StringTableMapConstItr
a singleton data container for communication string lookup.
StringTableMap mStringTableMap
static const char *const s_mStringTable[]
StringTableMap::iterator StringTableMapItr
const char * LookupString(uint8 index)
lookup a string using a index
std::unordered_map< uint32, uint8 > StringTableMap
Template used for singleton classes.
uint32 hash(const char *str)
djb2 algorithm taken from http://www.cse.yorku.ca/~oz/hash.html slightly modified ...
uint8 LookupIndex(const std::string &str)
lookup a index nr using a string