#include <wvconf.h>
Inheritance diagram for WvConf:
Public Methods | |
WvConf (const WvString &_filename, int _create_mode=0666) | |
~WvConf () | |
bool | isok () const |
bool | isclean () const |
void | save (const WvString &filename) |
void | save () |
void | flush () |
WvConfigSection * | operator[] (const WvString &s) |
int | getint (const WvString §ion, const WvString &entry, int def_val) |
const char * | get (const WvString §ion, const WvString &entry, const char *def_val=NULL) |
int | fuzzy_getint (WvStringList §, const WvString &entry, int def_val) |
const char * | fuzzy_get (WvStringList §, const WvString &entry, const char *def_val=NULL) |
int | fuzzy_getint (WvStringList §, WvStringList &entry, int def_val) |
const char * | fuzzy_get (WvStringList §, WvStringList &ent, const char *def_val=NULL) |
void | setint (const WvString §ion, const WvString &entry, int value) |
void | set (const WvString §ion, const WvString &entry, const char *value) |
void | maybesetint (const WvString §ion, const WvString &entry, int value) |
void | maybeset (const WvString §ion, const WvString &entry, const char *value) |
void | delete_section (const WvString §ion) |
void | add_callback (WvConfCallback callback, void *userdata, const WvString §ion, const WvString &entry) |
void | del_callback (WvConfCallback callback, void *userdata, const WvString §ion, const WvString &entry) |
void | run_callbacks (const WvString §ion, const WvString &entry, const WvString &oldvalue, const WvString &newvalue) |
void | run_all_callbacks () |
void | setbool (void *userdata, const WvString §ion, const WvString &entry, const WvString &oldval, const WvString &newval) |
void | add_setbool (bool *b, const WvString §ion, const WvString &entry) |
void | del_setbool (bool *b, const WvString §ion, const WvString &entry) |
void | load_file () |
void | load_file (const WvString &filename) |
WvConf (const WvString &_filename, int _create_mode=0666) | |
~WvConf () | |
bool | isok () const |
bool | isclean () const |
void | save (const WvString &filename) |
void | save () |
void | flush () |
WvConfigSection * | operator[] (const WvString &s) |
int | getint (const WvString §ion, const WvString &entry, int def_val) |
const char * | get (const WvString §ion, const WvString &entry, const char *def_val=NULL) |
int | fuzzy_getint (WvStringList §, const WvString &entry, int def_val) |
const char * | fuzzy_get (WvStringList §, const WvString &entry, const char *def_val=NULL) |
int | fuzzy_getint (WvStringList §, WvStringList &entry, int def_val) |
const char * | fuzzy_get (WvStringList §, WvStringList &ent, const char *def_val=NULL) |
void | setint (const WvString §ion, const WvString &entry, int value) |
void | set (const WvString §ion, const WvString &entry, const char *value) |
void | maybesetint (const WvString §ion, const WvString &entry, int value) |
void | maybeset (const WvString §ion, const WvString &entry, const char *value) |
void | delete_section (const WvString §ion) |
void | add_callback (WvConfCallback callback, void *userdata, const WvString §ion, const WvString &entry) |
void | del_callback (WvConfCallback callback, void *userdata, const WvString §ion, const WvString &entry) |
void | run_callbacks (const WvString §ion, const WvString &entry, const WvString &oldvalue, const WvString &newvalue) |
void | run_all_callbacks () |
void | setbool (void *userdata, const WvString §ion, const WvString &entry, const WvString &oldval, const WvString &newval) |
void | add_setbool (bool *b, const WvString §ion, const WvString &entry) |
void | del_setbool (bool *b, const WvString §ion, const WvString &entry) |
void | load_file () |
void | load_file (const WvString &filename) |
Private Methods | |
char * | parse_section (char *s) |
char * | parse_value (char *s) |
char * | parse_section (char *s) |
char * | parse_value (char *s) |
Private Attributes | |
bool | dirty |
bool | error |
bool | loaded_once |
int | create_mode |
WvString | filename |
WvLog | log |
WvConfigSection | globalsection |
WvConfCallbackInfoList | callbacks |
Definition at line 89 of file configfile/wvconf.h.
|
Definition at line 26 of file wvconf.cc. References create_mode, dirty, error, filename, load_file, loaded_once, and WvString::unique. |
|
Definition at line 162 of file wvconf.cc. References flush. |
|
|
|
|
|
|
|
Definition at line 455 of file wvconf.cc. References WvList< WvConfCallbackInfo >::append, and callbacks. Referenced by add_setbool. |
|
Definition at line 145 of file include/wvconf.h. References add_callback, setbool, and wvcallback. |
|
Definition at line 145 of file configfile/wvconf.h. References add_callback, setbool, and wvcallback. |
|
|
|
Definition at line 463 of file wvconf.cc. References WvConfCallbackInfo::callback, callbacks, WvConfCallbackInfo::entry, WvConfCallbackInfo::section, and WvConfCallbackInfo::userdata. Referenced by del_setbool. |
|
Definition at line 148 of file include/wvconf.h. References del_callback, setbool, and wvcallback. |
|
Definition at line 148 of file configfile/wvconf.h. References del_callback, setbool, and wvcallback. |
|
|
|
Definition at line 294 of file wvconf.cc. References dirty, and WvList< WvConfigSection >::unlink. Referenced by main. |
|
|
|
Definition at line 443 of file wvconf.cc. References dirty, error, filename, and save. Referenced by ~WvConf. |
|
|
|
|
|
Definition at line 190 of file wvconf.cc. References WvStringTable::add, WvConfigSection::get, and WvConfigSection::name. |
|
Definition at line 216 of file wvconf.cc. References WvStringTable::add, WvConfigSection::get, and WvConfigSection::name. Referenced by fuzzy_getint. |
|
|
|
|
|
Definition at line 64 of file wvconf.cc. References check_for_bool_string, and fuzzy_get. |
|
Definition at line 74 of file wvconf.cc. References check_for_bool_string, and fuzzy_get. |
|
|
|
Definition at line 171 of file wvconf.cc. References WvStringTable::add, WvConfigSection::get, globalsection, and WvConfigSection::name. Referenced by getint, maybeset, and maybesetint. |
|
|
|
Definition at line 55 of file wvconf.cc. References check_for_bool_string, and get. |
|
Definition at line 97 of file include/wvconf.h. |
|
Definition at line 97 of file configfile/wvconf.h. |
|
Definition at line 95 of file include/wvconf.h. References error. |
|
Definition at line 95 of file configfile/wvconf.h. References error. Referenced by isclean. |
|
|
|
Definition at line 152 of file include/wvconf.h. |
|
Definition at line 98 of file wvconf.cc. References WvList< WvConfigSection >::append, WvLog::Debug1, error, WvStream::errstr, WvStream::geterr, WvStream::getline, globalsection, WvStream::isok, loaded_once, log, WvFile::open, parse_section, parse_value, WvConfigSection::quick_set, run_all_callbacks, WvConfigSection::set, trim_string, and WvLog::Warning. |
|
Definition at line 152 of file configfile/wvconf.h. References filename. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 303 of file wvconf.cc. References trim_string. Referenced by load_file. |
|
|
|
Definition at line 319 of file wvconf.cc. References trim_string. Referenced by load_file. |
|
|
|
Definition at line 499 of file wvconf.cc. References callbacks. Referenced by load_file. |
|
|
|
Definition at line 482 of file wvconf.cc. References callbacks. Referenced by set. |
|
|
|
|
|
Definition at line 436 of file wvconf.cc. References filename. Referenced by flush. |
|
Definition at line 390 of file wvconf.cc. References create_mode, WvLog::Debug1, WvConfigSection::dump, WvString::edit, WvLog::Error, error, filename, follow_links, globalsection, WvStream::isok, log, WvConfigSection::name, and WvStream::print. |
|
|
|
Definition at line 239 of file wvconf.cc. References WvList< WvConfigSection >::append, dirty, WvConfigSection::get, run_callbacks, and WvConfigSection::set. |
|
|
|
Definition at line 17 of file wvconf.cc. Referenced by add_setbool, and del_setbool. |
|
|
|
Definition at line 82 of file wvconf.cc. References set. Referenced by maybesetint. |
|
Definition at line 166 of file include/wvconf.h. Referenced by add_callback, del_callback, run_all_callbacks, and run_callbacks. |
|
Definition at line 160 of file include/wvconf.h. |
|
Definition at line 157 of file include/wvconf.h. Referenced by delete_section, flush, isclean, set, and WvConf. |
|
Definition at line 158 of file include/wvconf.h. |
|
Definition at line 162 of file include/wvconf.h. |
|
Definition at line 165 of file include/wvconf.h. |
|
Definition at line 159 of file include/wvconf.h. |
|
Definition at line 163 of file include/wvconf.h. |