Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

preferences: added debug function

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