CEBL
2.1
|
#include <StringTable.hpp>
Public Member Functions | |
StringTable () | |
void | loadFromFile (string filename) |
void | loadFromString (string str_table) |
const char * | getString (string string_name) |
String table implementation.
Definition at line 25 of file StringTable.hpp.
StringTable::StringTable | ( | ) |
Definition at line 18 of file StringTable.cpp.
const char * StringTable::getString | ( | string | string_name | ) |
Get a string by name from the string table.
Throws: StringTableException
Definition at line 75 of file StringTable.cpp.
Referenced by CEBLModel::getString(), and CEBLViewGTK::getString().
void StringTable::loadFromFile | ( | string | filename | ) |
Load strings from file
Throws: StringTableException, FileException
filename | file to load string table from |
Definition at line 21 of file StringTable.cpp.
References boost::serialization::load().
void StringTable::loadFromString | ( | string | str_table | ) |
Loads string from string table encoded in specified string.
str | string table |
Definition at line 32 of file StringTable.cpp.
References boost::serialization::load(), and str_table_linebreak_str.
Referenced by CEBLViewGTK::CEBLViewGTK(), and CEBLModel::InitModel().