CEBL  2.1
Public Member Functions
StringTable Class Reference

#include <StringTable.hpp>

Public Member Functions

 StringTable ()
void loadFromFile (string filename)
void loadFromString (string str_table)
const char * getString (string string_name)

Detailed Description

Author:
Jeshua Bratman

String table implementation.

Definition at line 25 of file StringTable.hpp.


Constructor & Destructor Documentation

StringTable::StringTable ( )

Definition at line 18 of file StringTable.cpp.


Member Function Documentation

const char * StringTable::getString ( string  string_name)

Get a string by name from the string table.

Throws: StringTableException

Returns:
full string

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

Parameters:
filenamefile 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.

Parameters:
strstring 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().


The documentation for this class was generated from the following files: