Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00024
00025
00026
00027
00028
00108 #ifndef CS_TOKEN_LIST_TOKEN_PREFIX
00109 #define CS_TOKEN_LIST_TOKEN_PREFIX_DEFAULT
00110
00114 #define CS_TOKEN_LIST_TOKEN_PREFIX XMLTOKEN_
00115 #endif
00116
00117 #ifndef CS_TOKEN_LIST_TOKEN_LAST
00118 #define CS_TOKEN_LIST_TOKEN_LAST_DEFAULT
00119
00123 #define CS_TOKEN_LIST_TOKEN_LAST TOKEN_COUNT
00124 #endif
00125
00126 #undef CS_TOKEN_LIST_PASTE
00127 #undef CS_TOKEN_LIST_PASTE1
00128 #undef CS_TOKEN_LIST_TOKEN
00129 #undef CS_TOKEN_LIST_TOKEN_FINAL
00130 #define CS_TOKEN_LIST_PASTE(X,Y) CS_TOKEN_LIST_PASTE1(X,Y)
00131 #define CS_TOKEN_LIST_PASTE1(X,Y) X ## Y
00132 #define CS_TOKEN_LIST_TOKEN(X) \
00133 CS_TOKEN_LIST_PASTE(CS_TOKEN_LIST_TOKEN_PREFIX,X),
00134 #define CS_TOKEN_LIST_TOKEN_FINAL(X) \
00135 CS_TOKEN_LIST_PASTE(CS_TOKEN_LIST_TOKEN_PREFIX,X)
00136
00137 enum {
00138 #include CS_TOKEN_ITEM_FILE
00139 CS_TOKEN_LIST_TOKEN_FINAL(CS_TOKEN_LIST_TOKEN_LAST)
00140 };
00141
00142 #ifdef CS_TOKEN_LIST_TOKEN_LAST_DEFAULT
00143 #undef CS_TOKEN_LIST_TOKEN_LAST_DEFAULT
00144 #undef CS_TOKEN_LIST_TOKEN_LAST
00145 #endif
00146
00147 #undef CS_TOKEN_LIST_TOKEN
00148
00151 #define CS_TOKEN_LIST_TOKEN(X) s = #X; s.Downcase(); \
00152 t.Register(s, CS_TOKEN_LIST_PASTE(CS_TOKEN_LIST_TOKEN_PREFIX,X));
00153
00154 #ifndef CS_INIT_TOKEN_TABLE_NAME
00155 #define CS_INIT_TOKEN_TABLE_NAME_DEFAULT
00156
00160 #define CS_INIT_TOKEN_TABLE_NAME InitTokenTable
00161 #endif
00162
00163 static void CS_INIT_TOKEN_TABLE_NAME(csStringHash& t)
00164 {
00165 csString s;
00166 #include CS_TOKEN_ITEM_FILE
00167 }
00168 #undef CS_TOKEN_LIST_TOKEN
00169
00170 #ifdef CS_INIT_TOKEN_TABLE_NAME_DEFAULT
00171 #undef CS_INIT_TOKEN_TABLE_NAME
00172 #undef CS_INIT_TOKEN_TABLE_NAME_DEFAULT
00173 #endif
00174
00175 #ifdef CS_TOKEN_LIST_TOKEN_PREFIX_DEFAULT
00176 #undef CS_TOKEN_LIST_TOKEN_PREFIX_DEFAULT
00177 #undef CS_TOKEN_LIST_TOKEN_PREFIX
00178 #endif
00179