Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::StringsMessageLoader Class Reference

#include <vcf/FoundationKit/StringsMessageLoader.h>

Inheritance diagram for VCF::StringsMessageLoader:

VCF::MessageLoader List of all members.

Public Member Functions

 StringsMessageLoader ()
virtual ~StringsMessageLoader ()
virtual void loadMessageFile (const UnicodeString &fileName)
 Loads the contents of the message file specified by the file named fileName into the memory of this MessageLoader instance.
virtual UnicodeString getMessageFromID (const UnicodeString &id)
 returns the translated string for the given string id.

Protected Types

typedef std::pair< UnicodeString,
UnicodeString
KeyValPair
typedef std::map< UnicodeString,
UnicodeString
KeyValMap
typedef std::map< UnicodeString,
KeyValMap * > 
TranslationMap
enum  ParseState {
  psToken, psComment, psKey, psAssignment,
  psValue, psEscapeSequence
}

Protected Member Functions

void processEscapeSequence (UnicodeString &escapeSeqString, UnicodeString &tokenString)

Protected Attributes

TranslationMap translationTable_
ParseState parseState_
UnicodeString currentTableName_

Classes

class  Exception

Member Typedef Documentation

typedef std::map<UnicodeString,UnicodeString> VCF::StringsMessageLoader::KeyValMap [protected]
 

typedef std::pair<UnicodeString,UnicodeString> VCF::StringsMessageLoader::KeyValPair [protected]
 

typedef std::map<UnicodeString,KeyValMap*> VCF::StringsMessageLoader::TranslationMap [protected]
 


Member Enumeration Documentation

enum VCF::StringsMessageLoader::ParseState [protected]
 

Enumerator:
psToken 
psComment 
psKey 
psAssignment 
psValue 
psEscapeSequence 


Constructor & Destructor Documentation

VCF::StringsMessageLoader::StringsMessageLoader  ) 
 

virtual VCF::StringsMessageLoader::~StringsMessageLoader  )  [virtual]
 


Member Function Documentation

virtual UnicodeString VCF::StringsMessageLoader::getMessageFromID const UnicodeString id  )  [virtual]
 

returns the translated string for the given string id.

Implements VCF::MessageLoader.

virtual void VCF::StringsMessageLoader::loadMessageFile const UnicodeString fileName  )  [virtual]
 

Loads the contents of the message file specified by the file named fileName into the memory of this MessageLoader instance.

Implements VCF::MessageLoader.

void VCF::StringsMessageLoader::processEscapeSequence UnicodeString escapeSeqString,
UnicodeString tokenString
[protected]
 


Member Data Documentation

UnicodeString VCF::StringsMessageLoader::currentTableName_ [protected]
 

ParseState VCF::StringsMessageLoader::parseState_ [protected]
 

TranslationMap VCF::StringsMessageLoader::translationTable_ [protected]
 


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information