smsgdirg2getentity.h

来自「游戏《家园》源码」· C头文件 代码 · 共 52 行

H
52
字号
#ifndef _SMsgDirG2GetEntity_H
#define _SMsgDirG2GetEntity_H

// SMsgDirG2GetEntity.h

// DirectoryServer get entity message.  Requests a directory/service and or its contents.
// Fields in reply are configurable.

#include "STRING"
#include "SMsgDirG2QueryGetBase.h"


namespace WONMsg {

class SMsgDirG2GetEntity : public SMsgDirG2QueryGetBase
{
public:
    // Default ctor
    explicit SMsgDirG2GetEntity(KeyType theType=KT_SERVICE, bool isExtended=false);

    // SmallMessage ctor
    explicit SMsgDirG2GetEntity(const SmallMessage& theMsgR);

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

    // Destructor
    ~SMsgDirG2GetEntity(void);

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

    // Virtual Duplicate
    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);

private:
};


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

};  // Namespace WONMsg

#endif

⌨️ 快捷键说明

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