Changeset 10475 for code/branches/core7/src/libraries/network/packet
- Timestamp:
- May 25, 2015, 2:41:57 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/network/packet/FunctionIDs.cc
r10474 r10475 56 56 57 57 //calculate total needed size (for all strings and integers) 58 std::map<std::string, NetworkFunctionBase*>& map = NetworkFunctionManager::getInstance().getNameMap();59 std:: map<std::string, NetworkFunctionBase*>::iterator it;60 for (it = map.begin(); it != map.end(); ++it)58 const std::set<NetworkFunctionBase*>& set = NetworkFunctionManager::getInstance().getAllFunctions(); 59 std::set<NetworkFunctionBase*>::const_iterator it; 60 for (it = set.begin(); it != set.end(); ++it) 61 61 { 62 const std::string& functionname = it->second->getName();63 networkID = it->second->getNetworkID();62 const std::string& functionname = (*it)->getName(); 63 networkID = (*it)->getNetworkID(); 64 64 // now push the network id and the classname to the stack 65 65 tempQueue.push( std::pair<unsigned int, std::string>(networkID, functionname) ); … … 140 140 functionname = temp+2*sizeof(uint32_t); 141 141 orxout(internal_info, context::packets) << "processing functionid: " << networkID << " name: " << functionname << endl; 142 NetworkFunctionManager::getInstance(). setNetworkID((const char*)functionname,networkID);142 NetworkFunctionManager::getInstance().getFunctionByName((const char*)functionname)->setNetworkID(networkID); 143 143 temp += 2*sizeof(uint32_t) + stringsize; 144 144 }
Note: See TracChangeset
for help on using the changeset viewer.