marDictionary.h

Go to the documentation of this file.
00001 
00002 #ifndef MARDICTIONARY_H
00003 #define MARDICTIONARY_H
00004 
00005 
00006 #include <vector>
00007 
00008 
00009 class marDictFrase{
00010 public:
00011         marDictFrase(int id,char*frase);
00012         ~marDictFrase();
00013         int             GetIdFrase();
00014         char*   GetFrase();
00015 private:
00016         int             _idfrase;
00017         char    *_frase;
00018 };
00019 
00020 
00021 
00022 
00023 // Define a new application type, each program should derive a class from wxApp
00024 class marDictionary {
00025 public:
00026                         marDictionary();
00027                         ~marDictionary();
00028         void    ResetDictionary();
00029         void    SetLanguage(int language);
00030         char*   GetString(int id);
00031         int             GetLanguage();
00032         bool    LoadDictionaryFile(char *dictionaryFileName);
00033         void    LoadDictionary_English();
00034         void    LoadDictionary_French();
00035         void    LoadDictionary_Japanese();
00036 
00037         void    FreeDictionary();
00038 
00039 
00040 private:
00041                         char                                             _emptyStr[30];
00042         static  int                                                      _language;     
00043         static  std::vector<marDictFrase*>  *_frases;
00044 
00045                         bool ExistFileDictionary(char *dictionaryFileName);
00046                         void SetString(int id,char *ss);
00047 };
00048 
00049 
00050 #endif // MARDICTIONARY_H

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1