WvStreams
|
WvConf configuration file management class: used to read/write config files that are formatted in the style of Windows .ini files. More...
#include <wvconf.h>
Public Member Functions | |
WvConf (WvStringParm _filename, int _create_mode=0666) | |
bool | isok () const |
bool | isclean () const |
void | save (WvStringParm filename) |
void | save () |
void | flush () |
WvConfigSection * | operator[] (WvStringParm s) |
int | parse_wvconf_request (char *request, char *§ion, char *&entry, char *&value) |
int | getint (WvStringParm section, WvStringParm entry, int def_val) |
const char * | get (WvStringParm section, WvStringParm entry, const char *def_val=NULL) |
WvString | getraw (WvString wvconfstr, int &parse_error) |
int | fuzzy_getint (WvStringList §, WvStringParm entry, int def_val) |
const char * | fuzzy_get (WvStringList §, WvStringParm 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 (WvStringParm section, WvStringParm entry, int value) |
void | set (WvStringParm section, WvStringParm entry, const char *value) |
void | setraw (WvString wvconfstr, const char *&value, int &parse_error) |
void | maybesetint (WvStringParm section, WvStringParm entry, int value) |
void | maybeset (WvStringParm section, WvStringParm entry, const char *value) |
void | delete_section (WvStringParm section) |
void | add_callback (WvConfCallback callback, void *userdata, WvStringParm section, WvStringParm entry, void *cookie) |
void | del_callback (WvStringParm section, WvStringParm entry, void *cookie) |
void | run_callbacks (WvStringParm section, WvStringParm entry, WvStringParm oldvalue, WvStringParm newvalue) |
void | run_all_callbacks () |
void | setbool (void *userdata, WvStringParm section, WvStringParm entry, WvStringParm oldval, WvStringParm newval) |
void | addname (void *userdata, WvStringParm section, WvStringParm entry, WvStringParm oldval, WvStringParm newval) |
void | addfile (void *userdata, WvStringParm section, WvStringParm entry, WvStringParm oldval, WvStringParm newval) |
void | add_addfile (WvString *filename, WvStringParm sect, WvStringParm ent) |
void | add_addname (WvStringList *list, WvStringParm sect, WvStringParm ent) |
void | del_addname (WvStringList *list, WvStringParm sect, WvStringParm ent) |
void | add_setbool (bool *b, WvStringParm section, WvStringParm entry) |
void | del_setbool (bool *b, WvStringParm section, WvStringParm entry) |
void | load_file () |
void | load_file (WvStringParm filename) |
WvString | get_passwd (WvStringParm sect, WvStringParm user) |
WvString | get_passwd (WvStringParm user) |
WvString | get_passwd2 (WvString pwenc) |
bool | check_passwd (WvStringParm sect, WvStringParm user, WvStringParm passwd) |
bool | check_passwd (WvStringParm user, WvStringParm passwd) |
bool | user_exists (WvStringParm sect, WvStringParm user) |
bool | user_exists (WvStringParm user) |
void | set_passwd (WvStringParm sect, WvStringParm user, WvStringParm passwd) |
void | set_passwd (WvStringParm user, WvStringParm passwd) |
WvString | set_passwd2 (WvStringParm passwd) |
void | convert_to_old_pw () |
void | setdirty () |
Static Public Member Functions | |
static int | check_for_bool_string (const char *s) |
Friends | |
class | WvAuthDaemonSvc |
WvConf configuration file management class: used to read/write config files that are formatted in the style of Windows .ini files.