Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4872 in orxonox.OLD for orxonox/trunk/src/lib/event


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/lib/event
Files:
2 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();
Note: See TracChangeset for help on using the changeset viewer.