Main Page   Namespaces   Classes ( Hierarchy )   Functions & Members  

moFileLib Namespace Reference

This is the only namespace of this small sourcecode. More...


Classes

struct  moTranslationPairInformation
 Keeps the Description of translated and original strings. More...
struct  moFileInfo
 Describes the "Header" of a .mo-File. More...
class  moFileReader
 This class is a gettext-replacement. More...
class  moFileReaderSingleton
 Convience Class. More...

Functions

moFileReader::eErrorCode moReadMoFile (const char *_filename)
 Reads the .mo-File.
std::string _ (const char *id)
 Looks for the spec. string to translate.
void moFileClearTable ()
 Resets the Lookup-Table.
std::string moFileGetErrorDescription ()
 Returns the last known error as string or an empty class.
int moFileGetNumStrings ()
 Returns the number of entries loaded from the .mo-File.

Variables

const std::string g_css


Detailed Description

This is the only namespace of this small sourcecode.


Function Documentation

std::string moFileLib::_ ( const char *  id  )  [inline]

Looks for the spec. string to translate.

Parameters:
[in] id The string-id to search.
Returns:
The translation if found, otherwise it returns id.

void moFileLib::moFileClearTable (  )  [inline]

Resets the Lookup-Table.

std::string moFileLib::moFileGetErrorDescription (  )  [inline]

Returns the last known error as string or an empty class.

int moFileLib::moFileGetNumStrings (  )  [inline]

Returns the number of entries loaded from the .mo-File.

moFileReader::eErrorCode moFileLib::moReadMoFile ( const char *  _filename  )  [inline]

Reads the .mo-File.

Parameters:
[in] _filename The path to the file to use.
See also:
moFileReader::ReadFile() for details.


Variable Documentation

const std::string moFileLib::g_css

Initial value:

 
"\
body {\
    background-color: black;\
    color: silver;\
}\
table {\
width: 80%;}\
th {\
background-color: orange;\
color: black;\
}\
hr { color: red;width: 80%; size: 5px; }\
a:link{color: gold;}\
a:visited{color: grey;}\
a:hover{color:blue;}\
.copyleft{\
    font-size: 12px; \
    text-align: center;\
}\
"


Generated on 17 Jan 2009 for moFileReader by Doxygen1.5.7.1