ARB
|
#include <gb_main.h>
Friends | |
class | ArbDBWriter |
GB_MAIN_TYPE::GB_MAIN_TYPE | ( | const char * | db_path | ) |
Definition at line 262 of file ad_core.cxx.
References ALLOWED_DATES, gb_local_data::announce_db_open(), dates, gb_init_undo_stack(), gb_local, GB_MAX_USERS, NULp, and users.
GB_MAIN_TYPE::~GB_MAIN_TYPE | ( | ) |
Definition at line 303 of file ad_core.cxx.
References ALLOWED_DATES, gb_local_data::announce_db_close(), dates, disabled_path, dummy_father, free_all_keys(), gb_assert, gb_free_undo_stack(), gb_local, GBS_free_hash(), GBS_free_numhash(), key_2_index_hash, keys, path, qs, gb_quick_save::quick_save_disabled, release_main_idx(), remote_hash, and root_container.
void GB_MAIN_TYPE::free_all_keys | ( | ) |
Definition at line 752 of file ad_core.cxx.
References first_free_key, GBS_write_hash(), key_2_index_hash, keycnt, keys, gb_Key::next_free_key, and gb_Key::nref.
Referenced by gb_read_bin(), and ~GB_MAIN_TYPE().
void GB_MAIN_TYPE::release_main_idx | ( | ) |
Definition at line 947 of file ad_load.cxx.
References dummy_father, gb_assert, gb_main_array, GBCONTAINER::main_idx, and NULp.
Referenced by gb_save_mapfile(), and ~GB_MAIN_TYPE().
|
inline |
Definition at line 177 of file gb_main.h.
Referenced by gb_abort_and_close_all_DBs(), GB_close(), GB_delete(), GB_get_transaction_level(), GB_test_transaction(), GBCMS_accept_calls(), GBT_compress_sequence_tree2(), and save_quick().
|
inline |
Definition at line 179 of file gb_main.h.
References root_container.
Referenced by abort_transaction(), commit_transaction(), createGbdByKey(), g_b_opti_createGbdByKey(), GB_close(), gb_create_dictionaries(), gb_create_key(), gb_get_compression_mask(), gb_get_dictionary(), GB_get_gb_main_during_cb(), GB_get_root(), gb_load_dictionary_data(), gb_load_single_key_data(), gb_remembered_db(), gb_save_dictionary_data(), gb_save_mapfile(), gb_uncompress_by_sequence(), run_close_callbacks(), and send_update_to_server().
Definition at line 955 of file ad_load.cxx.
References c_link, error(), GBDATA::flags2, gb_flag_types2::folded_container, GB_REMOTE_HASH_SIZE, gb_unfold(), gbcmc_open(), GBS_create_numhash(), GBS_global_string(), NULp, remote_hash, root_container, and GBDATA::server_id.
Referenced by GB_login().
|
inline |
Definition at line 2359 of file arbdb.cxx.
References GBS_global_string(), and NULp.
Referenced by GB_begin_transaction().
|
inline |
Definition at line 2387 of file arbdb.cxx.
References abort_transaction(), call_pending_callbacks(), error(), GB_ARRAY_FLAGS(), gb_assert, gb_commit_transaction_local_rek(), gb_disable_undo(), gb_main(), gb_set_undo_sync(), gb_untouch_children_and_me(), gbcmc_begin_sendupdate(), gbcmc_commit_transaction(), gbcmc_end_sendupdate(), GBS_global_string(), is_server(), NULp, and root_container.
Referenced by GB_commit_transaction(), and pop_transaction().
|
inline |
Definition at line 2365 of file arbdb.cxx.
References call_pending_callbacks(), clock, error(), gb_abort_transaction_local_rek(), gb_main(), gb_untouch_children_and_me(), gbcmc_abort_transaction(), is_client(), NULp, pop_transaction(), and root_container.
Referenced by commit_transaction(), gb_abort_and_close_all_DBs(), and GB_abort_transaction().
|
inline |
|
inline |
Definition at line 2454 of file arbdb.cxx.
References commit_transaction(), and NULp.
Referenced by abort_transaction(), and GB_pop_transaction().
|
inline |
Definition at line 2462 of file arbdb.cxx.
References is_client(), and NULp.
Referenced by GB_no_transaction().
Definition at line 2468 of file arbdb.cxx.
References error(), gb_commit_transaction_local_rek(), gb_main(), gbcmc_begin_sendupdate(), gbcmc_end_sendupdate(), is_server(), and NULp.
Referenced by find_sub_sub_by_quark(), gb_create_key(), and GB_release().
Definition at line 1515 of file ad_save_load.cxx.
References deleteSuperfluousQuicksaves(), gb_assert, GB_begin_transaction(), GB_commit_transaction(), GB_MAX_QUICK_SAVE_INDEX, GB_move_file(), gb_overwriteName(), gb_quicksaveName(), GB_read_clock(), GB_time_of_day(), GB_unlink_or_warn(), gb_write_bin(), GBS_global_string(), get_transaction_level(), is_client(), gb_quick_save::last_index, last_saved_time, last_saved_transaction, NULp, path, protect_corruption_error(), qs, renameQuicksaves(), RETURN_ERROR, root_container, security_level, and seen_corrupt_data.
Referenced by GB_save_quick(), and save_quick_as().
Definition at line 1308 of file ad_save_load.cxx.
References error(), ArbDBWriter::finishSave(), root_container, ArbDBWriter::saveFromTill(), and ArbDBWriter::startSaveAs().
Referenced by GB_save_as(), and panic_save().
Definition at line 1427 of file ad_save_load.cxx.
References ARB_strdup(), gb_add_reference(), GB_await_error(), GB_follow_unix_link(), gb_full_path(), GB_getuid_of_file(), GB_mode_of_file(), GB_mode_of_link(), gb_remove_all_but_main(), GB_set_mode_of_file(), GB_symlink(), GB_unlink(), GB_warning(), GB_warningf(), GBS_global_string(), gb_quick_save::last_index, NULp, path, qs, RETURN_ERROR, save_quick(), and warning().
Referenced by GB_save_quick_as().
Definition at line 187 of file adcomm.cxx.
References error(), and save_as().
Referenced by gbcms_sighup().
|
inline |
Definition at line 201 of file gb_main.h.
Referenced by GB_login().
|
inline |
Definition at line 203 of file gb_main.h.
Referenced by commit_transaction(), GB_inside_remote_action(), GB_is_server(), gb_load_key_data_and_dictionaries(), GB_login(), gb_make_container(), gb_make_entry(), gb_make_pre_defined_container(), gb_make_pre_defined_entry(), GB_read_clients(), GB_release(), GB_set_remote_action(), GB_tell_server_dont_wait(), gb_write_index_key(), GBCMC_find(), gbcmc_key_alloc(), gbcmc_send_undo_commands(), gbcmc_send_undo_info_commands(), is_client(), and send_update_to_server().
|
inline |
Definition at line 204 of file gb_main.h.
References is_server().
Referenced by abort_transaction(), find_sub_sub_by_quark(), GB_close(), gb_create_key(), gb_pre_delete_entry(), GB_request_undo_type(), GB_set_undo_mem(), GB_undo(), GB_undo_info(), no_transaction(), and save_quick().
void GB_MAIN_TYPE::call_pending_callbacks | ( | ) |
Definition at line 86 of file ad_cb.cxx.
References GB_CB_ALL_BUT_DELETE, GB_CB_DELETE, and NULp.
Referenced by abort_transaction(), commit_transaction(), GB_close(), GB_delete(), and GB_release().
|
inline |
Definition at line 208 of file gb_main.h.
Referenced by GB_inside_callback().
|
inline |
Definition at line 209 of file gb_main.h.
Referenced by GB_inside_callback().
GB_ERROR GB_MAIN_TYPE::add_hierarchy_cb | ( | const gb_hierarchy_location & | loc, |
const TypedDatabaseCallback & | dbcb | ||
) |
Definition at line 382 of file ad_cb.cxx.
References CHECK_HIER_CB_CONDITION, GB_CB_ALL_BUT_DELETE, GB_CB_DELETE, TypedDatabaseCallback::get_type(), NULp, type, and TypedDatabaseCallback::with_type_changed_to().
Referenced by GB_add_hierarchy_callback().
GB_ERROR GB_MAIN_TYPE::remove_hierarchy_cb | ( | const gb_hierarchy_location & | loc, |
const TypedDatabaseCallback & | dbcb | ||
) |
Definition at line 395 of file ad_cb.cxx.
References CHECK_HIER_CB_CONDITION, GB_CB_ALL_BUT_DELETE, GB_CB_DELETE, TypedDatabaseCallback::get_type(), NULp, type, and TypedDatabaseCallback::with_type_changed_to().
Referenced by GB_remove_hierarchy_callback().
void GB_MAIN_TYPE::forget_hierarchy_cbs | ( | ) |
Definition at line 100 of file ad_cb.cxx.
Referenced by GB_close().
|
inline |
Definition at line 52 of file ad_core.cxx.
References GBDATA::get_callbacks().
Referenced by gb_commit_transaction_local_rek().
void GB_MAIN_TYPE::trigger_delete_callbacks | ( | GBDATA * | gbd | ) |
Definition at line 56 of file ad_core.cxx.
References GBDATA::as_entry(), gb_db_extended::callback, GBDATA::create_extended(), GBDATA::ext, gb_assert, GB_CB_DELETE, GB_DB, gb_save_extern_data_in_ts(), GBDATA::get_callbacks(), implicated, GBDATA::is_container(), NULp, gb_db_extended::old, and GBDATA::type().
Referenced by gb_pre_delete_entry().
|
friend |
gbcmc_comm* GB_MAIN_TYPE::c_link |
Definition at line 117 of file gb_main.h.
Referenced by GB_close(), GB_tell_server_dont_wait(), gbcm_unfold_client(), gbcmc_abort_transaction(), gbcmc_begin_transaction(), gbcmc_commit_transaction(), gbcmc_end_sendupdate(), GBCMC_find(), gbcmc_init_transaction(), gbcmc_key_alloc(), gbcmc_send_undo_commands(), gbcmc_send_undo_info_commands(), gbcmc_sendupdate_create(), gbcmc_sendupdate_update(), and login_remote().
gb_server_data* GB_MAIN_TYPE::server_data |
Definition at line 118 of file gb_main.h.
Referenced by GB_inside_remote_action(), GB_read_clients(), GB_set_remote_action(), GBCMS_accept_calls(), gbcms_add_to_delete_list(), GBCMS_open(), and GBCMS_shutdown().
GBCONTAINER* GB_MAIN_TYPE::dummy_father |
Definition at line 119 of file gb_main.h.
Referenced by GB_close(), gb_info(), GB_login(), gb_save_mapfile(), release_main_idx(), and ~GB_MAIN_TYPE().
GBCONTAINER* GB_MAIN_TYPE::root_container |
Definition at line 120 of file gb_main.h.
Referenced by abort_transaction(), commit_transaction(), ArbDBWriter::finishSave(), GB_close(), gb_delete_dummy_father(), gb_get_root(), gb_load_key_data_and_dictionaries(), GB_login(), gb_main(), gb_read_bin(), gb_save_mapfile(), GBT_compress_sequence_tree2(), login_remote(), save_as(), save_quick(), ArbDBWriter::saveFromTill(), and ~GB_MAIN_TYPE().
GBCONTAINER* GB_MAIN_TYPE::gb_key_data |
Definition at line 121 of file gb_main.h.
Referenced by gb_create_key(), gb_get_dictionary(), gb_load_dictionary_data(), gb_load_key_data_and_dictionaries(), gb_load_single_key_data(), and gb_save_dictionary_data().
char* GB_MAIN_TYPE::path |
Definition at line 122 of file gb_main.h.
Referenced by deleteSuperfluousQuicksaves(), GB_mapfile(), gb_read_bin(), renameQuicksaves(), save_quick(), save_quick_as(), ArbDBWriter::startSaveAs(), and ~GB_MAIN_TYPE().
gb_open_types GB_MAIN_TYPE::opentype |
Definition at line 123 of file gb_main.h.
Referenced by GB_login().
char* GB_MAIN_TYPE::disabled_path |
Definition at line 124 of file gb_main.h.
Referenced by ~GB_MAIN_TYPE().
int GB_MAIN_TYPE::allow_corrupt_file_recovery |
Definition at line 125 of file gb_main.h.
Referenced by GB_login(), and gb_read_bin_rek_V2().
gb_quick_save GB_MAIN_TYPE::qs |
Definition at line 127 of file gb_main.h.
Referenced by ArbDBWriter::finishSave(), GB_login(), gb_remove_quick_saved(), renameQuicksaves(), save_quick(), save_quick_as(), and ~GB_MAIN_TYPE().
gb_cache GB_MAIN_TYPE::cache |
Definition at line 128 of file gb_main.h.
Referenced by gb_alloc_cache_index(), GB_close(), gb_free_cache(), gb_read_cache(), and GB_set_cache_size().
int GB_MAIN_TYPE::compression_mask |
Definition at line 129 of file gb_main.h.
Referenced by GB_allow_compression().
int GB_MAIN_TYPE::keycnt |
Definition at line 131 of file gb_main.h.
Referenced by calcGbdOffsets(), createGbdByKey(), free_all_keys(), freeGbdByKey(), g_b_opti_createGbdByKey(), gb_create_key(), gb_create_key_array(), GB_print_debug_information(), gb_read_bin(), gb_read_bin_rek_V2(), gb_write_bin(), gbcmc_read_keys(), gbcms_write_keys(), and writeGbdByKey().
long GB_MAIN_TYPE::sizeofkeys |
Definition at line 132 of file gb_main.h.
Referenced by gb_create_key_array(), and gb_load_key_data_and_dictionaries().
long GB_MAIN_TYPE::first_free_key |
Definition at line 133 of file gb_main.h.
Referenced by free_all_keys(), gb_create_key(), gb_read_bin(), gbcmc_read_keys(), and gbcms_write_keys().
gb_Key* GB_MAIN_TYPE::keys |
Definition at line 134 of file gb_main.h.
Referenced by compress_sequence_tree(), createGbdByKey(), free_all_keys(), g_b_opti_createGbdByKey(), gb_create_dictionaries(), gb_create_key(), gb_create_key_array(), gb_get_compression_mask(), gb_get_dictionary(), gb_load_single_key_data(), GB_print_debug_information(), gb_read_bin(), gb_read_bin_rek_V2(), gb_system_key_changed_cb(), gb_system_master_changed_cb(), gb_uncompress_by_sequence(), gb_write_bin(), gb_write_index_key(), gbcmc_read_keys(), gbcms_write_keys(), quark2gbmindex(), quark2key(), and ~GB_MAIN_TYPE().
GB_HASH* GB_MAIN_TYPE::key_2_index_hash |
Definition at line 135 of file gb_main.h.
Referenced by free_all_keys(), gb_create_key(), gb_read_bin(), gb_write_key(), gbcmc_read_keys(), key2quark(), and ~GB_MAIN_TYPE().
long GB_MAIN_TYPE::key_clock |
Definition at line 136 of file gb_main.h.
Referenced by gb_create_key(), and gbcms_talking_begin_transaction().
bool GB_MAIN_TYPE::mapped |
Definition at line 137 of file gb_main.h.
Referenced by GB_close(), and gb_read_bin().
unsigned int GB_MAIN_TYPE::last_updated |
Definition at line 139 of file gb_main.h.
Referenced by gb_read_bin(), gb_write_bin(), and set_protection_level().
long GB_MAIN_TYPE::last_saved_time |
Definition at line 140 of file gb_main.h.
Referenced by ArbDBWriter::finishSave(), GB_last_saved_time(), and save_quick().
long GB_MAIN_TYPE::last_saved_transaction |
Definition at line 141 of file gb_main.h.
Referenced by ArbDBWriter::finishSave(), GB_last_saved_clock(), and save_quick().
long GB_MAIN_TYPE::last_main_saved_transaction |
Definition at line 142 of file gb_main.h.
Referenced by ArbDBWriter::finishSave(), and gb_write_bin().
GB_UNDO_TYPE GB_MAIN_TYPE::requested_undo_type |
Definition at line 144 of file gb_main.h.
Referenced by gb_disable_undo(), GB_get_requested_undo_type(), GB_request_undo_type(), and gb_set_undo_sync().
GB_UNDO_TYPE GB_MAIN_TYPE::undo_type |
Definition at line 145 of file gb_main.h.
Referenced by _GB_CHECK_IN_UNDO_CREATE(), _GB_CHECK_IN_UNDO_DELETE(), _GB_CHECK_IN_UNDO_MODIFY(), and gb_set_undo_type().
g_b_undo_mgr* GB_MAIN_TYPE::undo |
Definition at line 147 of file gb_main.h.
Referenced by g_b_check_undo_size(), gb_check_in_undo_create(), gb_check_in_undo_delete(), gb_check_in_undo_modify(), gb_disable_undo(), gb_free_all_undos(), gb_free_undo_stack(), gb_init_undo_stack(), GB_set_undo_mem(), gb_set_undo_sync(), GB_undo(), and GB_undo_info().
char* GB_MAIN_TYPE::dates[ALLOWED_DATES] |
Definition at line 149 of file gb_main.h.
Referenced by GB_MAIN_TYPE(), gb_read_bin(), gb_write_bin(), set_protection_level(), and ~GB_MAIN_TYPE().
unsigned int GB_MAIN_TYPE::security_level |
Definition at line 150 of file gb_main.h.
Referenced by GB_change_my_security(), GB_login(), gb_security_error(), GB_test_delete_possible(), GB_write_security_delete(), GB_write_security_levels(), GB_write_security_read(), GB_write_security_write(), and save_quick().
long GB_MAIN_TYPE::clock |
Definition at line 151 of file gb_main.h.
Referenced by abort_transaction(), gb_commit_transaction_local_rek(), gb_create_key(), GB_login(), gb_make_container(), gb_make_entry(), gb_make_pre_defined_container(), gb_make_pre_defined_entry(), gb_read_bin(), gb_read_bin_rek_V2(), GB_read_clock(), gbcm_read_bin(), gbcmc_begin_transaction(), gbcmc_init_transaction(), and gbcms_talking_init_transaction().
GB_NUMHASH* GB_MAIN_TYPE::remote_hash |
Definition at line 152 of file gb_main.h.
Referenced by gb_pre_delete_entry(), gbcmc_begin_transaction(), gbcmc_end_sendupdate(), GBCMC_find(), gbcmc_init_transaction(), gbcmc_unfold_list(), login_remote(), and ~GB_MAIN_TYPE().
gb_callback_list* GB_MAIN_TYPE::close_callbacks |
Definition at line 154 of file gb_main.h.
Referenced by GB_atclose_callback(), GB_close(), and run_close_callbacks().
gb_user* GB_MAIN_TYPE::users[GB_MAX_USERS] |
Definition at line 156 of file gb_main.h.
Referenced by GB_MAIN_TYPE(), GB_number_of_marked_subentries(), gb_search_marked(), GB_write_flag(), gbcm_login(), and gbcm_logout().
gb_user* GB_MAIN_TYPE::this_user |
Definition at line 157 of file gb_main.h.
Referenced by gbcm_login(), gbcmc_init_transaction(), and gbcms_talking_init_transaction().