|
|
1.1 ! root 1: /* ! 2: Copyright (c) 2008 TrueCrypt Foundation. All rights reserved. ! 3: ! 4: Governed by the TrueCrypt License 2.4 the full text of which is contained ! 5: in the file License.txt included in TrueCrypt binary and source code ! 6: distribution packages. ! 7: */ ! 8: ! 9: #ifndef TC_HEADER_Main_LanguageStrings ! 10: #define TC_HEADER_Main_LanguageStrings ! 11: ! 12: #include "System.h" ! 13: #include "Main.h" ! 14: ! 15: namespace TrueCrypt ! 16: { ! 17: class LanguageStrings ! 18: { ! 19: public: ! 20: LanguageStrings (); ! 21: virtual ~LanguageStrings (); ! 22: ! 23: wxString operator[] (const string &key) const; ! 24: ! 25: bool Exists (const string &key) const { return Map.find (key) != Map.end(); } ! 26: wstring Get (const string &key) const; ! 27: void Init (); ! 28: ! 29: protected: ! 30: map <string, wstring> Map; ! 31: ! 32: private: ! 33: LanguageStrings (const LanguageStrings &); ! 34: LanguageStrings &operator= (const LanguageStrings &); ! 35: }; ! 36: ! 37: extern LanguageStrings LangString; ! 38: } ! 39: ! 40: #endif // TC_HEADER_Main_LanguageStrings
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.