- Timestamp:
- May 25, 2015, 12:13:27 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/network/NetworkFunction.h
r10465 r10468 77 77 inline uint32_t getNetworkID() const { return this->networkID_; } 78 78 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: 95 81 uint32_t networkID_; 96 82 std::string name_;
Note: See TracChangeset
for help on using the changeset viewer.