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

📄 minimessagewithaddresseelist.h

📁 游戏《家园》源码
💻 H
字号:
#if !defined(RoutingServerMessageWithAddresseeList_H)
#define RoutingServerMessageWithAddresseeList_H

// MiniMessageWithAddresseeList.h

#include "LIST"
#include "RoutingServerMessage.h"

namespace WONMsg {

class MiniMessageWithAddresseeList : public RoutingServerMessage {
public:
    // Default ctor
    MiniMessageWithAddresseeList(void);

    // RoutingServerMessage ctor
    explicit MiniMessageWithAddresseeList(const RoutingServerMessage& theMsgR);

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

    // Destructor
    virtual ~MiniMessageWithAddresseeList(void);

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

    // Virtual Duplicate from RoutingServerMessage
    virtual TRawMsg* Duplicate(void) const;

    // Debug output
    virtual void Dump(std::ostream& os) const;

    void AppendAddresseeList();
    void ReadAddresseeList();

    typedef std::list<ClientOrGroupId> AddresseeList;
    // Member access
    bool GetIncludeExcludeFlag() const                            { return mIncludeExcludeFlag; }
    const AddresseeList& GetAddresseeList() const                 { return mAddresseeList; }

    void SetIncludeExcludeFlag(bool theIncludeExcludeFlag)        { mIncludeExcludeFlag = theIncludeExcludeFlag; }
    void SetAddresseeList(const AddresseeList& theAddresseeListR) { mAddresseeList = theAddresseeListR; }
    void AddAddressee(ClientOrGroupId theAddressee)               { mAddresseeList.push_back(theAddressee); }
protected:
    bool          mIncludeExcludeFlag;
    AddresseeList mAddresseeList;
};


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

};  // Namespace WONMsg

#endif // RoutingServerMessageWithAddresseeList_H

⌨️ 快捷键说明

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