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

📄 tmsgdirstatusreply.h

📁 游戏《家园》源码
💻 H
字号:
#ifndef _TMsgDirStatusReply_H
#define _TMsgDirStatusReply_H

// TMsgDirStatusReply.h

// Directory Generic Reply class.  Returns the status of a request made
// to the Directory Server.


#include "STRING"
#include "msg/TMessage.h"
#include "msg/ServerStatus.h"

// Forwards from WONSocket
namespace WONMsg {

class TMsgDirStatusReply : public TMessage
{
public:
    // Default ctor
    TMsgDirStatusReply(void);

    // TMessage ctor - will throw if TMessage type is not of this type
    explicit TMsgDirStatusReply(const TMessage& theMsgR);

    // Copy ctor
    TMsgDirStatusReply(const TMsgDirStatusReply& theMsgR);

    // Destructor
    ~TMsgDirStatusReply(void);

    // Assignment
    TMsgDirStatusReply& operator=(const TMsgDirStatusReply& theMsgR);

    // Virtual Duplicate from TMessage
    TRawMsg* Duplicate(void) const;

    // Pack and Unpack the message
    // Unpack will throw a BadMsgException is message is not of this type
    void* Pack(void);
    void  Unpack(void);

    // Status access
    ServerStatus GetStatus(void) const;
    void         SetStatus(ServerStatus theStatus);

private:
    ServerStatus mStatus;  // Request status
};


// Inlines
inline TRawMsg*
TMsgDirStatusReply::Duplicate(void) const
{ return new TMsgDirStatusReply(*this); }

inline ServerStatus
TMsgDirStatusReply::GetStatus(void) const
{ return mStatus; }

inline void
TMsgDirStatusReply::SetStatus(ServerStatus theStatus)
{ mStatus = theStatus; }


};  // Namespace WONMsg

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -