Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4287 in orxonox.OLD for orxonox/trunk/src/util


Ignore:
Timestamp:
May 26, 2005, 12:22:19 AM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: implemented the objectmanager debug functon, some small fixed in the ol code

Location:
orxonox/trunk/src/util
Files:
2 edited

Legend:

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

    r4286 r4287  
    7777BaseObject* ObjectManager::getFromDeadList(const char* className, int number)
    7878{}
     79
     80
     81void ObjectManager::debug()
     82{
     83  PRINT(0)("\n==========================| ObjectManager::debug() |===\n");
     84  PRINT(0)("=  Number of registerable classes: %i\n", CL_NUMBER ); 
     85  PRINT(0)("=  Currently cached objects: \n");
     86  for(int i = 0; i < CL_NUMBER; ++i)
     87    {
     88      if(this->managedObjectList[i] != NULL)
     89        PRINT(0)("=   o Class Nr. %i has cached %i object(s)\n", i, this->managedObjectList[i]->getSize());
     90      else
     91        PRINT(0)("=   o Class Nr. %i has cached 0 object(s)\n", i);
     92    }
     93  PRINT(0)("=======================================================\n");
     94}
  • orxonox/trunk/src/util/object_manager.h

    r4286 r4287  
    4444  BaseObject* getFromDeadList(const char* className, int number = 1);
    4545
     46  void debug();
     47
    4648 private:
    4749  ObjectManager(void);
Note: See TracChangeset for help on using the changeset viewer.