/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
- #ifndef ___MSG_IMP_RAW_STREAM___
- #define ___MSG_IMP_RAW_STREAM___
-
- #include "Message/MsgIf.h"
-
- class MsgInRawStream : public IMsg
- {
- public:
- MsgInRawStream();
-
- virtual void setMsgID(int nID);
- virtual int getMsgID();
-
- virtual void setMsgCate(int nCate);
- virtual int getMsgCate();
-
- //
- // decode a message from a stream
- //
- virtual bool decode(MsgIStream& stream);
- //
- // encode a message into a stream
- //
- virtual bool encode(MsgOStream& stream);
-
- //
- // dump the message information to log
- //
- virtual void dump();
-
- //
- // check validation of message
- //
- virtual bool validate();
- private:
-
- MsgBufferPtr m_theRawBuffer;
- };
-
- #endif