smsgeventtaggedrecordevent.h
来自「游戏《家园》源码」· C头文件 代码 · 共 57 行
H
57 行
#ifndef TMsgEventTaggedRecordEvent_H
#define TMsgEventTaggedRecordEvent_H
// SMsgEventTaggedRecordEvent.h
#include "SMsgEventRecordEvent.h"
namespace WONMsg {
class SMsgEventTaggedRecordEvent : public SMsgEventRecordEvent {
public:
// Default ctor
SMsgEventTaggedRecordEvent(void);
// SmallMessage ctor
explicit SMsgEventTaggedRecordEvent(const SmallMessage& theMsgR);
// Copy ctor
SMsgEventTaggedRecordEvent(const SMsgEventTaggedRecordEvent& theMsgR);
// Destructor
virtual ~SMsgEventTaggedRecordEvent(void);
// Assignment
SMsgEventTaggedRecordEvent& operator=(const SMsgEventTaggedRecordEvent& theMsgR);
// Virtual Duplicate from SmallMessage
virtual TRawMsg* Duplicate(void) const;
// Pack and Unpack the message
// Unpack will throw a BadMsgException is message is not of this type
virtual void* Pack(void);
virtual void Unpack(void);
// Dumping
virtual void Dump(std::ostream& os) const;
// Member access
void SetTag(unsigned short theTag);
unsigned short GetTag() const;
private:
unsigned short mTag;
};
// Inlines
inline TRawMsg* SMsgEventTaggedRecordEvent::Duplicate(void) const
{ return new SMsgEventTaggedRecordEvent(*this); }
inline void SMsgEventTaggedRecordEvent::SetTag(unsigned short theTag)
{ mTag = theTag; }
inline unsigned short SMsgEventTaggedRecordEvent::GetTag() const
{ return mTag; }
}; // Namespace WONMsg
#endif // TMsgEventTaggedRecordEvent_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?