Logo Search packages:      
Sourcecode: einstein version File versions  Download package

Messages Class Reference

#include <messages.h>

List of all members.

Detailed Description

Localized messages formatter.

Definition at line 16 of file messages.h.

Public Member Functions

void add (const std::wstring &key, const std::wstring &msg)
std::wstring format (const wchar_t *key,...) const
std::wstring getMessage (const std::wstring &key) const
void load ()
 Load message tables from resources.
void loadFromResource (Resource *res, Buffer *buffer)
 Messages ()
 Create empty messages table.
std::wstring operator() (const wchar_t *key,...) const
std::wstring operator[] (const std::wstring &key) const
void save (Buffer &buffer)

Private Types

typedef std::map< std::wstring,
MsgEntry > 
typedef std::map< std::wstring,
ScoredStr > 

Private Member Functions

std::wstring format (const wchar_t *key, va_list ap) const
void loadBundle (int score, unsigned char *data, size_t size)
int writeDirectory (Buffer &buffer)
int writeHeader (Buffer &buffer)
int writeMessages (Buffer &buffer, int offset)

Private Attributes

MsgMap messages
StrMap messages


struct  MsgEntry
struct  ScoredStr

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

Generated by  Doxygen 1.6.0   Back to index