Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4871 in orxonox.OLD for orxonox/trunk/src/lib/lang/class_list.cc


Ignore:
Timestamp:
Jul 15, 2005, 1:22:52 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: classList is now able to show Information on single Classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/lang/class_list.cc

    r4840 r4871  
    208208/**
    209209 * Print out some very nice debug information
    210  */
    211     void ClassList::debug(unsigned int debugLevel)
     210 * @param debugLevel the level of verbosity
     211 * @param classID the class that should be displayed (if CL_NULL (default) all classes will be displayed)
     212 */
     213    void ClassList::debug(unsigned int debugLevel, long classID)
    212214{
    213215  if (debugLevel > 2)
     
    223225  while (likely(tmp != NULL))
    224226  {
    225     if (debugLevel >= 1 || tmp->objectList->getSize() > 0)
     227    if ((debugLevel >= 1 || tmp->objectList->getSize() > 0 ) &&
     228         (classID == CL_NULL || unlikely (classID == tmp->classID)))
    226229    {
    227230      lenCount = 1;
Note: See TracChangeset for help on using the changeset viewer.