#ifndef _TRANSLATE_H_ #define _TRANSLATE_H_ #include #include #if defined _DEBUG #define DEBUG_TRANSLATE #endif using namespace std; class Translator{ protected: static Translator * mInstance; bool initDone; void load(string filename, map * dictionary); public: map values; map tempValues; #if defined DEBUG_TRANSLATE map missingValues; map dontCareValues; int checkMisses; #endif string translate(string toTranslate); Translator(); ~Translator(); int Add(string from, string to); void initCards(); void init(); static Translator * GetInstance(); static void EndInstance(); }; string _(string toTranslate); #endif