/TGame/TCommon/Message/MsgFactoryIf.h
http://awoe.googlecode.com/ · C Header · 22 lines · 10 code · 6 blank · 6 comment · 0 complexity · e1f5298aca94840971ad64c67df2c977 MD5 · raw file
- #ifndef __MSG_FACTORY__IF__
- #define __MSG_FACTORY__IF__
-
- #include "MsgIf.h"
-
- //
- // Message Factory
- //
-
- class TCOM_API IMsgFactory
- {
- public:
- virtual ~IMsgFactory(){;}
-
- //
- // create a message base on message category and message id
- //
- virtual IMsg* createMsg(int nMsgCate, int nMsgID) = 0;
- };
-
- #endif