Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6381 in orxonox.OLD for branches/preferences/src/lib/util


Ignore:
Timestamp:
Jan 1, 2006, 2:49:31 PM (19 years ago)
Author:
rennerc
Message:

preferences: added debug function

Location:
branches/preferences/src/lib/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/preferences/src/lib/util/preferences.cc

    r6380 r6381  
    217217  return defaultValue;
    218218}
     219
     220/**
     221 * prints out all section with its items and values
     222 */
     223void Preferences::debug()
     224{
     225  std::list<prefSection>::iterator it = data.begin();
     226
     227  for ( ; it!=data.end(); it++)
     228  {
     229    PRINTF(0)("%s\n", it->sectionName);
     230    std::list<prefItem>::iterator it2 = it->items.begin();
     231
     232    for ( ; it2!=it->items.begin(); it2++)
     233    {
     234      PRINTF(0)("--> %s = '%s'\n", it2->name, it2->value.getString());
     235    }
     236  }
     237}
     238
     239
  • branches/preferences/src/lib/util/preferences.h

    r6380 r6381  
    4646
    4747
     48   void debug();
     49
     50
    4851 private:
    4952   Preferences(void);
Note: See TracChangeset for help on using the changeset viewer.