#include <wvhconf.h>
Public Methods | |
WvHConf () | |
WvHConf (WvHConf *_parent, const WvString &_name) | |
~WvHConf () | |
void | init () |
WvHConf * | top () |
WvHConfKey | full_key () const |
WvHConf * | gen_top () |
WvHConfKey | gen_full_key () const |
WvHConf * | find (const WvHConfKey &key) |
WvHConf * | find_make (const WvHConfKey &key) |
WvHConf & | operator[] (const WvHConfKey &key) |
WvHConf * | find_default (WvHConfKey *_k=NULL) const |
WvHConf & | get (const WvHConfKey &key) |
void | set (const WvHConfKey &key, const WvString &v) |
void | set_without_notify (const WvString &s) |
void | set (const WvString &s) |
void | do_notify () |
const WvHConf & | operator= (const WvString &s) |
const WvHConf & | operator= (const WvHConf &s) |
const WvString & | printable () const |
operator const WvString & () const | |
bool | operator! () const |
int | num () const |
void | load () |
void | save () |
void | dump (WvStream &s) |
Public Attributes | |
WvHConf * | parent |
WvString | name |
WvHConfDict * | children |
WvHConf * | defaults |
WvHConfGen * | generator |
bool | child_dirty:1 |
bool | dirty:1 |
bool | child_notify:1 |
bool | notify:1 |
bool | child_obsolete:1 |
bool | obsolete:1 |
Private Attributes | |
WvString | value |
The nice thing about this is you can write classes that use a WvHConf configuration tree, and then instead hand them a subtree if you want.
Definition at line 72 of file wvhconf.h.
|
Definition at line 15 of file wvhconf.cc. |
|
Definition at line 23 of file wvhconf.cc. |
|
Definition at line 44 of file wvhconf.cc. |
|
Definition at line 229 of file wvhconf.cc. References child_dirty, child_notify, dirty, notify, and parent. |
|
Definition at line 289 of file wvhconf.cc. References child_dirty, child_notify, child_obsolete, children, dirty, full_key(), notify, obsolete, WvStream::print(), and value. |
|
Definition at line 115 of file wvhconf.cc. References children, WvList< WvString >::first(), WvListBase::isempty(), and WvHConfKey::skip(). Referenced by find_default(). |
|
Definition at line 157 of file wvhconf.cc. References defaults, find(), name, parent, WvList< WvString >::prepend(), and WvList< WvString >::unlink_first(). Referenced by printable(). |
|
Definition at line 131 of file wvhconf.cc. References WvList< WvString >::first(), gen_top(), generator, WvListBase::isempty(), WvHConfGen::make_tree(), and WvHConfKey::skip(). Referenced by get(), and operator[](). |
|
Definition at line 67 of file wvhconf.cc. References name, parent, and WvList< WvString >::prepend(). Referenced by dump(). |
|
Definition at line 99 of file wvhconf.cc. References generator, name, parent, and WvList< WvString >::prepend(). |
|
Definition at line 84 of file wvhconf.cc. References generator, and parent. Referenced by find_make(). |
|
Definition at line 121 of file wvhconf.h. References find_make(). Referenced by set(). |
|
Definition at line 31 of file wvhconf.cc. References child_dirty, child_notify, child_obsolete, children, defaults, dirty, generator, notify, and obsolete. Referenced by WvHConf(). |
|
Definition at line 260 of file wvhconf.cc. References children, generator, and WvHConfGen::load(). |
|
Definition at line 141 of file wvhconf.h. References WvString::num(), and printable(). |
|
Definition at line 139 of file wvhconf.h. References printable(). |
|
Definition at line 140 of file wvhconf.h. References printable(). |
|
Definition at line 134 of file wvhconf.h. References set(). |
|
Definition at line 133 of file wvhconf.h. References set(). |
|
Definition at line 115 of file wvhconf.h. References find_make(). |
|
Definition at line 244 of file wvhconf.cc. References find_default(), and value. Referenced by num(), operator const WvString &(), and operator!(). |
|
Definition at line 273 of file wvhconf.cc. References child_dirty, children, dirty, generator, and WvHConfGen::save(). |
|
Definition at line 203 of file wvhconf.cc. References child_dirty, child_notify, dirty, notify, parent, set_without_notify(), and value. |
|
Definition at line 126 of file wvhconf.h. References get(). Referenced by operator=(). |
|
Definition at line 196 of file wvhconf.cc. References WvString::unique(), and value. Referenced by set(). |
|
Definition at line 56 of file wvhconf.cc. References parent. |
|
Definition at line 88 of file wvhconf.h. Referenced by do_notify(), dump(), init(), save(), and set(). |
|
|
|
|
|
Definition at line 80 of file wvhconf.h. Referenced by dump(), find(), init(), load(), WvHConfGen::make_obj(), WvHConfGen::make_tree(), save(), and ~WvHConf(). |
|
Definition at line 81 of file wvhconf.h. Referenced by find_default(), and init(). |
|
Definition at line 88 of file wvhconf.h. Referenced by do_notify(), dump(), init(), save(), set(), and WvHConfGen::update(). |
|
Definition at line 82 of file wvhconf.h. Referenced by find_make(), gen_full_key(), gen_top(), init(), load(), save(), and ~WvHConf(). |
|
Definition at line 76 of file wvhconf.h. Referenced by find_default(), full_key(), and gen_full_key(). |
|
|
|
|
|
Definition at line 75 of file wvhconf.h. Referenced by do_notify(), find_default(), full_key(), gen_full_key(), gen_top(), set(), top(), and WvHConf(). |
|
Definition at line 78 of file wvhconf.h. Referenced by dump(), printable(), set(), and set_without_notify(). |