ARB
|
#include <ad_config.h>
Public Member Functions | |
GBT_config (GBDATA *gb_main, const char *name, GB_ERROR &error) | |
GBT_config () | |
~GBT_config () | |
bool | exists () const |
const char * | get_definition (int area) const |
void | set_definition (int area, char *new_def) |
const char * | get_comment () const |
void | set_comment (const char *newComment) |
GB_ERROR | saveAsOver (GBDATA *gb_main, const char *name, const char *oldName, bool warnIfSavingDefault) const |
GB_ERROR | save (GBDATA *gb_main, const char *name, bool warnIfSavingDefault) const |
Static Public Attributes | |
static const int | TOP_AREA = 0 |
static const int | MIDDLE_AREA = 1 |
Definition at line 35 of file ad_config.h.
Definition at line 78 of file ad_config.cxx.
References GB_await_error(), GBS_global_string(), GBT_find_configuration(), GBT_read_string(), NULp, and ta.
|
inline |
Definition at line 41 of file ad_config.h.
|
inline |
Definition at line 42 of file ad_config.h.
|
inline |
Definition at line 51 of file ad_config.h.
Referenced by ARB_main(), and nt_create_configuration().
Definition at line 57 of file ad_config.h.
References arb_assert.
Referenced by GBT_commit_rename_session(), nt_create_configuration(), and EDB_root_bact::save_current_config().
|
inline |
Definition at line 63 of file ad_config.h.
Referenced by AWT_configuration_selection::getConfigInfo(), nt_create_configuration(), and EDB_root_bact::save_current_config().
|
inline |
Definition at line 64 of file ad_config.h.
Referenced by nt_create_configuration(), and EDB_root_bact::save_current_config().
GB_ERROR GBT_config::saveAsOver | ( | GBDATA * | gb_main, |
const char * | name, | ||
const char * | oldName, | ||
bool | warnIfSavingDefault | ||
) | const |
save config as 'name' (overwriting config 'oldName') if 'warnIfSavingDefault' is true, saving DEFAULT_CONFIGURATION raises a warning
Definition at line 101 of file ad_config.cxx.
References DEFAULT_CONFIGURATION, error(), findOrCreate_configuration(), GB_await_error(), GB_delete(), GB_end_transaction(), GB_entry(), GB_push_transaction(), GBS_global_string(), GBT_message(), GBT_write_string(), and NULp.
Referenced by save(), and swap_configs().
|
inline |
Definition at line 67 of file ad_config.h.
References saveAsOver().
Referenced by GBT_commit_rename_session(), nt_create_configuration(), and EDB_root_bact::save_current_config().
|
static |
Definition at line 48 of file ad_config.h.
Referenced by ARB_main(), ED4_load_new_config(), GBT_commit_rename_session(), and nt_create_configuration().
|
static |
Definition at line 49 of file ad_config.h.
Referenced by ARB_main(), ED4_load_new_config(), GBT_commit_rename_session(), and nt_create_configuration().