CSCommon: MMessenger.h 소스 파일

MAIET

MMessenger.h

00001 #pragma once
00002 
00003 #include <map>
00004 #include <string>
00005 using std::map;
00006 using std::string;
00007 using std::pair;
00008 
00009 class MZFileSystem;
00010 
00012 class MMessenger
00013 {
00014 public :
00015     MMessenger( const char* pszTOK_MESSAGE = "MESSAGE", const char* pszTOK_CID = "cid" );
00016     virtual ~MMessenger();
00017 
00018     typedef map< int, string >  MsgMap;
00019     typedef MsgMap::iterator    MsgIter;
00020     typedef pair< int, string > MsgPair;
00021 
00022     bool    InitializeMessage( const char* pszFileName, MZFileSystem *pfs = 0 );
00023 
00024     //bool      ZTranslateMessage( char* poutStr, const int nStringCode, const int argnum=0, const char* arg1=NULL, ... );
00025     //const char*   ZGetStr( const int nStringCode );       // ZTranslateMessage의 편의함수. 쓰레드에 안전하지 않음.
00026 
00027     bool TranslateMessage( char* poutStr, const int nStringCode, const int argnum = 0, const char* arg1 = NULL, ... );
00028     const char* GetStr( const int nStringCode );
00029 
00030     void Release();
00031 
00032 private :
00033     string m_strTOK_MESSAGE;
00034     string m_strTOK_CID;
00035     MsgMap m_MessageMap;
00036 };


MAIET entertainment