Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4872 in orxonox.OLD


Ignore:
Timestamp:
Jul 15, 2005, 1:38:05 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: debug-information for EventSystem

Location:
orxonox/trunk/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/event/event_handler.cc

    r4866 r4872  
    292292}
    293293
     294
     295void EventHandler::debug() const
     296{
     297  PRINT(0)("===============================\n");
     298  PRINT(0)(" EventHandle Debug Information \n");
     299  PRINT(0)("===============================\n");
     300  for(int i = 0; i < ES_NUMBER; ++i)
     301  {
     302    for(int j = 0; j < EV_NUMBER; ++j)
     303    {
     304      if( this->listeners[i][j] != NULL)
     305      {
     306        PRINT(0)("Event %d of State %d subscribed to %s\n", j, i, this->listeners[i][j]->getName());
     307      }
     308    }
     309  }
     310  PRINT(0)("============================EH=\n");
     311}
  • orxonox/trunk/src/lib/event/event_handler.h

    r4866 r4872  
    3535  void process();
    3636
     37  void debug() const;
     38
    3739 private:
    3840  EventHandler();
  • orxonox/trunk/src/lib/lang/class_list.cc

    r4871 r4872  
    213213    void ClassList::debug(unsigned int debugLevel, long classID)
    214214{
    215   if (debugLevel > 2)
    216     debugLevel = 2;
     215  if (debugLevel > 3)
     216    debugLevel = 3;
    217217  PRINT(0)("==========================\n");
    218218  PRINT(0)("=  CLASS_LIST (level %d)  =\n", debugLevel);
     
    245245        {
    246246          PRINT(0)("|   (class %s): NAME(%s)->%p\n", enumBO->getClassName(), enumBO->getName(), enumBO);
     247          if (debugLevel == 3)
     248            enumBO->whatIs();
    247249          enumBO = iterator->nextElement();
    248250        }
  • orxonox/trunk/src/orxonox.cc

    r4866 r4872  
    9595  delete EventHandler::getInstance();
    9696
    97   ClassList::debug(0);
     97  ClassList::debug(3, CL_PARENT_NODE);
    9898
    9999  PRINT(3)
  • orxonox/trunk/src/story_entities/world.cc

    r4870 r4872  
    199199
    200200  delete NullParent::getInstance();
     201  EventHandler::getInstance()->debug();
     202
    201203  LoadClassDescription::printAll();
    202204
Note: See TracChangeset for help on using the changeset viewer.