13 WvConfigSection::WvConfigSection(WvStringParm _name)
19 WvConfigSection::~WvConfigSection()
26 WvConfigEntry *WvConfigSection::operator[] (WvStringParm ename)
30 for (i.rewind(); i.next();)
32 if (strcasecmp(i().name, ename) == 0)
40 const char *WvConfigSection::get(WvStringParm entry,
const char *def_val)
43 return e ? (
const char *)e->value : def_val;
47 void WvConfigSection::set(WvStringParm entry, WvStringParm value)
54 if (!value || !value[0])
68 void WvConfigSection::quick_set(WvStringParm entry, WvStringParm value)
76 void WvConfigSection::dump(
WvStream &fp)
80 for (i.rewind(); i.next(); )
83 if (e.value && e.value[0])
84 fp.print(
"%s = %s\n", e.name, e.value);
86 fp.print(
"%s =\n", e.name);