PageRenderTime 25ms CodeModel.GetById 18ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/TGame/TCommon/Message/MsgBuilderIf.h

http://awoe.googlecode.com/
C++ Header | 26 lines | 11 code | 6 blank | 9 comment | 0 complexity | 7368bf3b66d6be9a446ac561fab31c05 MD5 | raw file
 1#ifndef		__MSG_BUILDER__IF__
 2#define		__MSG_BUILDER__IF__
 3
 4#include "MsgIf.h"
 5//
 6//	Message Builder Interface
 7//
 8class TCOM_API  IMsgBuilder
 9{
10public:
11	virtual ~IMsgBuilder(){;}
12
13	//
14	//	serialize a message into a stream
15	//
16	virtual bool onEncodeMsg(IMsg*	pMsg, MsgOStream& stream)	=	0;
17
18	//	
19	//	de-serialize a message from stream
20	//
21	virtual bool onDecodeMsg(IMsg*&	pMsg, MsgIStream& stream)	=	0;
22
23};
24
25#endif
26