Changeset 2749 for code/branches/network/src/core
- Timestamp:
- Mar 5, 2009, 1:54:27 PM (16 years ago)
- Location:
- code/branches/network/src/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/core/Factory.cc
r2662 r2749 87 87 void Factory::changeNetworkID(Identifier* identifier, const uint32_t oldID, const uint32_t newID) 88 88 { 89 getFactoryPointer()->identifierNetworkIDMap_.erase(oldID);89 // getFactoryPointer()->identifierNetworkIDMap_.erase(oldID); 90 90 getFactoryPointer()->identifierNetworkIDMap_[newID] = identifier; 91 91 //std::cout << identifier->getName() << ": " << oldID << " -> " << newID << std::endl; 92 } 93 94 /** 95 @brief Cleans the NetworkID map (needed on clients for correct initialization) 96 */ 97 void Factory::cleanNetworkIDs() 98 { 99 getFactoryPointer()->identifierNetworkIDMap_.clear(); 92 100 } 93 101 -
code/branches/network/src/core/Factory.h
r2710 r2749 63 63 static void add(const std::string& name, Identifier* identifier); 64 64 static void changeNetworkID(Identifier* identifier, const uint32_t oldID, const uint32_t newID); 65 static void cleanNetworkIDs(); 65 66 static void createClassHierarchy(); 66 67
Note: See TracChangeset
for help on using the changeset viewer.