Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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
Files:
3 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        }
Note: See TracChangeset for help on using the changeset viewer.