⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 smsgeventtaggedrecordevent.h

📁 游戏《家园》源码
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -