Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9656 in orxonox.OLD for trunk/src/util/object_manager.cc


Ignore:
Timestamp:
Aug 4, 2006, 11:01:28 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the proxy bache back with no conflicts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/object_manager.cc

    r9406 r9656  
    134134  if (omList != OM_INIT || omList == OM_SIZE)
    135135  {
    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());
    137137  //  if (level >= 1)
    138138    {
     
    174174 * @returns the String transformed from omList.
    175175 */
    176 const char* ObjectManager::OMListToString(OM_LIST omList)
     176const std::string& ObjectManager::OMListToString(OM_LIST omList)
    177177{
    178178  if (omList == OM_INIT || omList == OM_SIZE)
    179     return "===invalid===";
     179    return ObjectManager::objectManagerListNames[OM_NULL];
    180180
    181181  printf("%d\n", omList);
     
    199199    }
    200200  }
    201   return OM_DEFAULT_LIST;
    202 }
    203 
    204 
    205 
    206 const char* ObjectManager::objectManagerListNames[] = {
     201  return OM_NULL;
     202}
     203
     204
     205
     206const std::string ObjectManager::objectManagerListNames[] = {
    207207    "null",
    208208    "dead",
Note: See TracChangeset for help on using the changeset viewer.