Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

made NetworkFunctionManager a singleton, no static functions anymore (except for getInstance)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/libraries/network/packet/FunctionIDs.cc

    r10470 r10474  
    5656
    5757  //calculate total needed size (for all strings and integers)
    58   std::map<std::string, NetworkFunctionBase*>& map = NetworkFunctionManager::getNameMap();
     58  std::map<std::string, NetworkFunctionBase*>& map = NetworkFunctionManager::getInstance().getNameMap();
    5959  std::map<std::string, NetworkFunctionBase*>::iterator it;
    6060  for (it = map.begin(); it != map.end(); ++it)
     
    140140    functionname = temp+2*sizeof(uint32_t);
    141141    orxout(internal_info, context::packets) << "processing functionid: " << networkID << " name: " << functionname << endl;
    142     NetworkFunctionManager::setNetworkID((const char*)functionname, networkID);
     142    NetworkFunctionManager::getInstance().setNetworkID((const char*)functionname, networkID);
    143143    temp += 2*sizeof(uint32_t) + stringsize;
    144144  }
Note: See TracChangeset for help on using the changeset viewer.