Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 25, 2015, 2:41:57 PM (9 years ago)
Author:
landauf
Message:

refactored the interface of NetworkFunctionManager: maps are better encapsulated now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/libraries/network/NetworkFunction.h

    r10472 r10475  
    6969class _NetworkExport NetworkFunctionBase {
    7070  public:
    71     NetworkFunctionBase(const std::string& name, const NetworkFunctionPointer& p);
     71    NetworkFunctionBase(const std::string& name, const NetworkFunctionPointer& pointer);
    7272    virtual ~NetworkFunctionBase() {}
    7373
    7474    void setNetworkID(uint32_t id);
    75     inline uint32_t     getNetworkID() const            { return this->networkID_; }
    76     inline const std::string& getName() const           { return name_; }
     75    inline uint32_t     getNetworkID() const                { return this->networkID_; }
     76    inline const std::string& getName() const               { return this->name_; }
     77    inline const NetworkFunctionPointer& getPointer() const { return this->pointer_; }
    7778
    7879    virtual bool call(uint32_t objectID)=0;
     
    8687    uint32_t networkID_;
    8788    std::string name_;
     89    NetworkFunctionPointer pointer_;
    8890
    8991};
Note: See TracChangeset for help on using the changeset viewer.