Changeset 9513 in orxonox.OLD for branches/proxy/src/util
- Timestamp:
- Jul 27, 2006, 5:38:53 PM (19 years ago)
- Location:
- branches/proxy/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/util/object_manager.cc
r9406 r9513 134 134 if (omList != OM_INIT || omList == OM_SIZE) 135 135 { 136 PRINT(0)(" +ObjectManager-LIST: '%s'==size='%d'==---\n", ObjectManager::OMListToString((OM_LIST)omList) , this->objectLists[omList].size());136 PRINT(0)(" +ObjectManager-LIST: '%s'==size='%d'==---\n", ObjectManager::OMListToString((OM_LIST)omList).c_str(), this->objectLists[omList].size()); 137 137 // if (level >= 1) 138 138 { … … 174 174 * @returns the String transformed from omList. 175 175 */ 176 const char*ObjectManager::OMListToString(OM_LIST omList)176 const std::string& ObjectManager::OMListToString(OM_LIST omList) 177 177 { 178 178 if (omList == OM_INIT || omList == OM_SIZE) 179 return "===invalid===";179 return ObjectManager::objectManagerListNames[0]; 180 180 181 181 printf("%d\n", omList); … … 199 199 } 200 200 } 201 return OM_ DEFAULT_LIST;202 } 203 204 205 206 const char*ObjectManager::objectManagerListNames[] = {201 return OM_NULL; 202 } 203 204 205 206 const std::string ObjectManager::objectManagerListNames[] = { 207 207 "null", 208 208 "dead", -
branches/proxy/src/util/object_manager.h
r8068 r9513 96 96 97 97 static OM_LIST StringToOMList(const std::string& listName); 98 static const char*OMListToString(OM_LIST omList);98 static const std::string& OMListToString(OM_LIST omList); 99 99 100 100 … … 113 113 EntityList objectLists[OM_SIZE]; //!< The ObjectLists. 114 114 115 static const char*objectManagerListNames[]; //!< Names of all the lists115 static const std::string objectManagerListNames[]; //!< Names of all the lists 116 116 117 117 EntityList reflectionList; //!< A list of all reflected objects in the world
Note: See TracChangeset
for help on using the changeset viewer.