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

📄 addresseelist.h

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

// MiniMessageWithAddresseeList.h

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

namespace WONMsg {

class AddresseeList {
public:
    // Default ctor
    AddresseeList(void);

    // Copy ctor
    AddresseeList(const AddresseeList& theCopyR);

    // Destructor
    virtual ~AddresseeList(void);

    // Assignment
    AddresseeList& operator=(const AddresseeList& theCopyR);

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

    void AppendAddresseeList(RoutingServerMessage* theMsgP);
    void ReadAddresseeList(RoutingServerMessage* theMsgP);

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

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

};  // Namespace WONMsg

#endif // ADDRESSEELIST_H

⌨️ 快捷键说明

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