12 #include "uniconfgen.h"
13 #include "uniconfkey.h"
27 typedef wv::function<void(const UniConf&, const UniConfKey&)> UniConfCallback;
96 {
return xroot == NULL; }
112 {
return xfullkey.
last(); }
127 {
return (*
this)[
key]; }
133 xfullkey = other.xfullkey;
141 void prefetch(
bool recursive)
const;
160 {
return (*
this)[
key].getme(defvalue); }
169 int getmeint(
int defvalue = 0)
const;
173 {
return (*
this)[
key].getmeint(defvalue); }
195 void setme(WVSTRING_FORMAT_DECL)
const
200 { (*this)[
key].setme(value); }
209 { (*this)[
key].setmeint(value); }
233 {
setme(WvString::null); }
319 void add_callback(
void *cookie,
const UniConfCallback &callback,
320 bool recurse =
true)
const;
325 void del_callback(
void *cookie,
bool recurse =
true)
const;
331 void add_setbool(
bool *flag,
bool recurse =
true)
const;
336 void del_setbool(
bool *flag,
bool recurse =
true)
const;
377 void dump(
WvStream &stream,
bool everything =
false)
const;
399 class SortedIterBase;
403 class SortedRecursiveIter;
452 current = top[it->
key()];
459 {
return it->
value(); }
483 current = top[it->
key()];
490 {
return it->
value(); }
531 void enter(
const UniConf &child);
557 Comparator xcomparator;
565 std::vector<UniConf> xkeys;
568 void populate(
Iter &i)
571 for (i.rewind(); i.next(); )
630 #endif // __UNICONF_H