Hasty Badger
Small UI library (a branch of Turbo Badger)
 All Classes Namespaces Functions Variables Enumerations Enumerator Friends Groups Pages
tb_language.h
1 // ================================================================================
2 // == This file is a part of Turbo Badger. (C) 2011-2014, Emil SegerÃ¥s ==
3 // == See tb_core.h for more information. ==
4 // ================================================================================
5 
6 #ifndef TB_LANGUAGE_H
7 #define TB_LANGUAGE_H
8 
9 #include "tb_core.h"
10 #include "tb_hashtable.h"
11 #include "tb_id.h"
12 
13 namespace tb {
14 
28 {
29 public:
30  ~TBLanguage();
31 
35  bool Load(const TBStr & filename);
36 
38  void Clear();
39 
44  TBStr GetString(const TBID &id);
45 private:
46  TBHashTableOf<TBStr> strings;
47 };
48 
49 };
50 
51 #endif // TB_LANGUAGE_H
void Clear()
Clear the list of strings.
Definition: tb_language.cpp:39
TBStr GetString(const TBID &id)
Return the string with the given id.
Definition: tb_language.cpp:44
bool Load(const TBStr &filename)
Load a file into this language manager.
Definition: tb_language.cpp:17
TBID is a wrapper for a uint32_t to be used as ID.
Definition: tb_id.h:18
TBHashTableOf is a TBHashTable with the given class type as content.
Definition: tb_hashtable.h:99
TBStr is a simple string class.
Definition: tb_str.h:62
TBLanguage is a basic language string manager.
Definition: tb_language.h:27