00001 #include <cstring>
00002 #include <iostream>
00003 #include "Keyword.h"
00004 #include "msg_key.h"
00005
00006 int main()
00007 {
00008 std::cout << "#ifndef KEYS_H\n#define KEYS_H\n\n#undef VERSION\n\nnamespace keys {\n";
00009 for (int i = 0; i < sizeof(wordlist) / sizeof(Keyword); ++i)
00010 {
00011 if (wordlist[i].value)
00012 std::cout << " static int const " << wordlist[i].name << " = " << wordlist[i].value << ";\n";
00013 }
00014 std::cout << "} // namespace keys\n\n#endif // KEYS_H" << std::endl;
00015 }