#include <config.H>
Inheritance diagram for Config:
Public Member Functions | |
Config (Cstr_ptr &j) | |
virtual | ~Config () |
Static Public Member Functions | |
static bool | get_var_bool (Cstr_ptr &var, bool def=false, bool store=false) |
static int | get_var_int (Cstr_ptr &var, int def=0, bool store=false) |
static str_ptr | get_var_str (Cstr_ptr &var, Cstr_ptr &def=NULL_STR, bool store=false) |
static double | get_var_dbl (Cstr_ptr &var, double def=0.0, bool store=false) |
static void | set_var_bool (Cstr_ptr &var, bool val) |
static void | set_var_int (Cstr_ptr &var, int val) |
static void | set_var_str (Cstr_ptr &var, Cstr_ptr &val) |
static void | set_var_dbl (Cstr_ptr &var, double val) |
static bool | save_config (Cstr_ptr &f) |
static bool | load_config (Cstr_ptr &f, bool rep=true) |
static Cstr_ptr & | JOT_ROOT () |
static void | no_warn (Cstr_ptr &s) |
Protected Member Functions | |
virtual bool | load (Cstr_ptr &) |
virtual bool | save (Cstr_ptr &) |
Static Protected Member Functions | |
static bool | get_var_is_set (Cstr_ptr &var) |
Protected Attributes | |
str_ptr | _jot_root |
Static Protected Attributes | |
static Config * | _instance = NULL |
static bool | _replace = true |
static bool | _loaded = false |
static str_list * | _no_warn = NULL |
Definition at line 21 of file config.H.
|
Definition at line 26 of file config.C. References _instance, ERR_LEV_SPAM, and err_mesg(). |
|
Definition at line 36 of file config.C. References _instance, ERR_LEV_SPAM, and err_mesg(). |
|
|
|
Definition at line 133 of file config.C. References _instance, _loaded, _no_warn, ARRAY< T >::contains(), ERR_LEV_WARN, err_mesg_cond(), get_var_is_set(), and set_var_int(). Referenced by GESTURE::complete(), distrib_client(), GLUT_MANAGER::do_idle(), err_(), BMESH::get_sil_strips(), BMESH::get_zcross_strips(), BaseJOTapp::init_top(), GESTURE::is_corner(), GL_VIEW::paint(), BaseJOTappConfig::put_integer_var(), and TTYfd::TTYfd(). |
|
Definition at line 59 of file config.C. Referenced by get_var_bool(), get_var_dbl(), get_var_int(), get_var_str(), BaseJOTappConfig::put_bool_var(), BaseJOTappConfig::put_double_var(), BaseJOTappConfig::put_integer_var(), BaseJOTappConfig::put_string_var(), set_var_bool(), set_var_dbl(), set_var_int(), and set_var_str(). |
|
|
|
Reimplemented in BaseJOTappConfig. Definition at line 71 of file config.H. Referenced by load_config(). |
|
Definition at line 44 of file config.C. References _instance, _loaded, _replace, and load(). Referenced by main_config(). |
|
Definition at line 53 of file config.H. References _no_warn. Referenced by main_config(). |
|
Reimplemented in BaseJOTappConfig. Definition at line 72 of file config.H. Referenced by save_config(). |
|
Definition at line 45 of file config.H. References _instance, and save(). Referenced by save_config(). |
|
Definition at line 116 of file config.C. References _replace, ERR_LEV_WARN, err_mesg(), and get_var_is_set(). Referenced by BaseJOTappConfig::get_bool_var(), and get_var_bool(). |
|
Definition at line 84 of file config.C. References _replace, ERR_LEV_WARN, err_mesg(), and get_var_is_set(). Referenced by BaseJOTappConfig::get_double_var(), and get_var_dbl(). |
|
Definition at line 68 of file config.C. References _replace, ERR_LEV_WARN, err_mesg(), and get_var_is_set(). Referenced by BaseJOTappConfig::get_integer_var(), and get_var_int(). |
|
Definition at line 100 of file config.C. References _replace, ERR_LEV_WARN, err_mesg(), and get_var_is_set(). Referenced by BaseJOTappConfig::get_string_var(), get_var_str(), and main(). |
|
Definition at line 25 of file config.H. Referenced by BaseJOTappConfig::BaseJOTappConfig(), Config(), get_var_bool(), get_var_dbl(), get_var_int(), get_var_str(), JOT_ROOT(), JOTappConfig::JOTappConfig(), BaseJOTappConfig::load(), load_config(), BaseJOTappConfig::save(), save_config(), and ~Config(). |
|
Definition at line 60 of file config.H. Referenced by JOT_ROOT(). |
|
Definition at line 28 of file config.H. Referenced by get_var_bool(), get_var_dbl(), get_var_int(), get_var_str(), and load_config(). |
|
Definition at line 30 of file config.H. Referenced by get_var_bool(), get_var_dbl(), get_var_int(), get_var_str(), and no_warn(). |
|
Definition at line 27 of file config.H. Referenced by load_config(), set_var_bool(), set_var_dbl(), set_var_int(), and set_var_str(). |