/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

  1. #ifndef __MSG_FACTORY__IF__
  2. #define __MSG_FACTORY__IF__
  3. #include "MsgIf.h"
  4. //
  5. // Message Factory
  6. //
  7. class TCOM_API IMsgFactory
  8. {
  9. public:
  10. virtual ~IMsgFactory(){;}
  11. //
  12. // create a message base on message category and message id
  13. //
  14. virtual IMsg* createMsg(int nMsgCate, int nMsgID) = 0;
  15. };
  16. #endif