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

/TGame/TServerGate/Message/MsgInRawStream.h

http://awoe.googlecode.com/
C++ Header | 40 lines | 19 code | 9 blank | 12 comment | 0 complexity | 18f3b6efa65b1076e859d065df95089c MD5 | raw file
 1#ifndef ___MSG_IMP_RAW_STREAM___
 2#define ___MSG_IMP_RAW_STREAM___
 3
 4#include "Message/MsgIf.h"
 5
 6class MsgInRawStream : public IMsg
 7{
 8public:
 9	MsgInRawStream();
10
11	virtual void	setMsgID(int nID);
12	virtual int		getMsgID();
13
14	virtual void	setMsgCate(int nCate);
15	virtual int		getMsgCate();	
16
17	//
18	//	decode a message from a stream
19	//
20	virtual bool decode(MsgIStream& stream);
21	//
22	//	encode a message into a stream
23	//
24	virtual bool encode(MsgOStream& stream);
25
26	//
27	//	dump the message information to log
28	//
29	virtual void dump();
30
31	//
32	//	check validation of message
33	//
34	virtual bool validate();
35private:
36
37	MsgBufferPtr	m_theRawBuffer;
38};
39
40#endif