Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 25, 2015, 12:13:27 PM (9 years ago)
Author:
landauf
Message:

moved static content of NetworkFunctionBase to NetworkFunctionManager

File:
1 edited

Legend:

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

    r10465 r10468  
    7777    inline uint32_t     getNetworkID() const            { return this->networkID_; }
    7878    inline const std::string& getName() const           { return name_; }
    79     static inline bool  isStatic( uint32_t networkID )  { return isStaticMap_[networkID]; }
    80 
    81     static inline void setNetworkID(const std::string& name, uint32_t id)
    82     {
    83         std::map<std::string, NetworkFunctionBase*>& map = NetworkFunctionBase::getNameMap();
    84         assert( map.find(name)!=map.end() );
    85         map[name]->setNetworkID(id);
    86     }
    87 
    88     static void destroyAllNetworkFunctions();
    89 
    90   protected:
    91     static std::map<uint32_t, bool> isStaticMap_;
    92 
    93   private:
    94     static std::map<std::string, NetworkFunctionBase*>& getNameMap();
     79
     80  private:
    9581    uint32_t networkID_;
    9682    std::string name_;
Note: See TracChangeset for help on using the changeset viewer.