C12Adapter Opensource C++ Interface
MMessageFile Class Reference

Message file, internal implementation of file with international strings. More...

Public Member Functions

 MMessageFile (const MStdString &fileName, const MStdString &domain)
 Constructor that builds message file.
 
 ~MMessageFile ()
 Destructor that destroys message file.
 
const MStdStringGetDomain () const
 Access domain of this message source.
 
void SetDomain (const MStdString &domain)
 Assign domain of this message source.
 
const MStdStringGetFileName () const
 Access file name where this object is stored.
 
const char * Translate (MConstLocalChars str, unsigned &strSize) const
 Translate the given English string using this message file. More...
 

Detailed Description

Message file, internal implementation of file with international strings.

Member Function Documentation

const char* MMessageFile::Translate ( MConstLocalChars  str,
unsigned &  strSize 
) const

Translate the given English string using this message file.

The string size given shall be correct.