9 #ifndef ClassStMessTypeList
10 #define ClassStMessTypeList
14 #if !defined(ST_NO_NAMESPACES)
18 #ifdef ST_NO_TEMPLATE_DEF_ARGS
20 #define StVector(T) vector<T, allocator<T> >
21 typedef vector<int, allocator<int> > intVector;
23 #define StVector(T) vector<T>
24 typedef vector<int> intVector;
34 const char* Type()
const {
return type;}
35 const char* Text()
const {
return text;}
44 static StMessTypeList* mInstance;
47 StMessTypeVec messList;
49 StMessTypeList(
const StMessTypeList&);
52 virtual ~StMessTypeList();
53 static StMessTypeList* Instance();
54 int AddType(
const char* type,
const char* text);
55 int FindTypeNum(
const char* type);
57 const char* FindNumType(
size_t typeNum);
58 const char* FindNumText(
size_t typeNum);
59 const char* Text(
const char* type) {
61 return ( (temp) ? temp->Text() : 0 );