ARB
|
#include <attributes.h>
Go to the source code of this file.
Functions | |
NOT4PERL bool | GB_inside_callback (GBDATA *of_gbd, GB_CB_TYPE cbtype) |
char * | GB_get_callback_info (GBDATA *gbd) |
GB_ERROR | GB_add_callback (GBDATA *gbd, GB_CB_TYPE type, const DatabaseCallback &dbcb) |
void | GB_remove_callback (GBDATA *gbd, GB_CB_TYPE type, const DatabaseCallback &dbcb) |
void | GB_remove_all_callbacks_to (GBDATA *gbd, GB_CB_TYPE type, GB_CB func) |
GB_ERROR | GB_add_hierarchy_callback (GBDATA *gb_main, const char *db_path, GB_CB_TYPE type, const DatabaseCallback &dbcb) |
GB_ERROR | GB_remove_hierarchy_callback (GBDATA *gb_main, const char *db_path, GB_CB_TYPE type, const DatabaseCallback &dbcb) |
GB_ERROR | GB_ensure_callback (GBDATA *gbd, GB_CB_TYPE type, const DatabaseCallback &dbcb) |
void | GB_atclose_callback (GBDATA *gbd, const DatabaseCallback &atClose) |
NOT4PERL bool GB_inside_callback | ( | GBDATA * | of_gbd, |
GB_CB_TYPE | cbtype | ||
) |
Definition at line 115 of file ad_cb.cxx.
References gb_assert, GB_CB_ALL, GB_CB_DELETE, GB_CB_NONE, gb_get_main_during_cb(), gb_triggered_callback::gbd, TypedDatabaseCallback::get_type(), GB_MAIN_TYPE::has_pending_change_callback(), GB_MAIN_TYPE::has_pending_delete_callback(), and gb_triggered_callback::spec.
Referenced by flush_taxonomy_cb(), gb_add_callback(), GB_get_gb_main_during_cb(), gb_remove_callbacks_that(), and awt_linked_to_item::remove_db_callbacks().
Definition at line 226 of file ad_cb.cxx.
References CallbackList< CB >::callbacks, cb, GBDATA::ext, GBS_global_string_copy(), GBDATA::get_callbacks(), NULp, and result.
GB_ERROR GB_add_callback | ( | GBDATA * | gbd, |
GB_CB_TYPE | type, | ||
const DatabaseCallback & | dbcb | ||
) |
Definition at line 356 of file ad_cb.cxx.
References gb_add_callback().
Referenced by awt_linked_to_item::add_db_callbacks(), AW_DB_selection::AW_DB_selection(), awt_create_select_filter(), AWT_default_protein_type(), MostLikelySeq::bind_to_species(), BoundTreeAwarCallback::bind_tree_callback(), VarUpdateInfo::change_from_widget(), create_loadsave_colored_window(), create_macro_variables(), DI_create_matrix_variables(), MacroRecorder::execute(), GBP_add_callback(), GBT_install_message_handler(), GEN_create_nds_vars(), GEN_gene_container_cb_installer(), get_cached_taxonomy(), ED4_root::init_alignment(), ARB_seqtree_root::loadFromDB(), AW_awar::make_global(), AW_awar::map(), DbScanner::Map(), popup_new_main_window(), saiChanged_callback(), SEC_db_interface::SEC_db_interface(), SEC_seq_data::SEC_seq_data(), server_main_loop(), and TREE_install_update_callbacks().
void GB_remove_callback | ( | GBDATA * | gbd, |
GB_CB_TYPE | type, | ||
const DatabaseCallback & | dbcb | ||
) |
Definition at line 360 of file ad_cb.cxx.
References gb_remove_callbacks_that().
Referenced by BoundTreeAwarCallback::bind_tree_callback(), VarUpdateInfo::change_from_widget(), GBP_remove_callback(), GEN_gene_container_cb_installer(), ARB_seqtree_root::loadFromDB(), AW_awar::map(), DbScanner::Map(), awt_linked_to_item::remove_db_callbacks(), saiChanged_callback(), MostLikelySeq::unbind_from_species(), AP_tree::~AP_tree(), ARB_seqtree_root::~ARB_seqtree_root(), AW_DB_selection::~AW_DB_selection(), and SEC_seq_data::~SEC_seq_data().
void GB_remove_all_callbacks_to | ( | GBDATA * | gbd, |
GB_CB_TYPE | type, | ||
GB_CB | func | ||
) |
Definition at line 364 of file ad_cb.cxx.
References gb_remove_callbacks_that().
Referenced by flush_taxonomy_cb(), and get_cached_taxonomy().
GB_ERROR GB_add_hierarchy_callback | ( | GBDATA * | gb_main, |
const char * | db_path, | ||
GB_CB_TYPE | type, | ||
const DatabaseCallback & | dbcb | ||
) |
same as overloaded GB_add_hierarchy_callback(), but using db_path instead of GBDATA to define hierarchy location. If the path starts with '/', the full path has to match to trigger the callback. Otherwise only the given path has to match (from bottom up), e.g. "gb_group" will trigger on any "gb_group" entry (regardless of its parent-path).
Definition at line 432 of file ad_cb.cxx.
References GB_MAIN_TYPE::add_hierarchy_cb(), and GB_MAIN().
Referenced by install_config_change_callbacks().
GB_ERROR GB_remove_hierarchy_callback | ( | GBDATA * | gb_main, |
const char * | db_path, | ||
GB_CB_TYPE | type, | ||
const DatabaseCallback & | dbcb | ||
) |
same as overloaded GB_remove_hierarchy_callback(), but using db_path instead of GBDATA to define hierarchy location
Definition at line 440 of file ad_cb.cxx.
References GB_MAIN(), and GB_MAIN_TYPE::remove_hierarchy_cb().
GB_ERROR GB_ensure_callback | ( | GBDATA * | gbd, |
GB_CB_TYPE | type, | ||
const DatabaseCallback & | dbcb | ||
) |
Definition at line 445 of file ad_cb.cxx.
References CallbackList< CB >::callbacks, cb, gb_add_callback(), GBDATA::get_callbacks(), and NULp.
Referenced by gb_load_single_key_data(), and RegFieldSelection::registrate().
void GB_atclose_callback | ( | GBDATA * | gbd, |
const DatabaseCallback & | atClose | ||
) |
Add a callback, which gets called directly before GB_close destroys all data. This is the recommended way to remove all callbacks from DB elements.
Definition at line 458 of file ad_cb.cxx.
References add_to_callback_chain(), GB_MAIN_TYPE::close_callbacks, GB_CB_DELETE, and GB_MAIN().
Referenced by GroupUIdata::GroupUIdata(), keepQuery(), mark_as_macro_executor(), start_SECEDIT_plugin(), and TreeAwarRegistry::TreeAwarRegistry().