ARB
Classes | Public Member Functions | Public Attributes | Friends | List of all members
GB_MAIN_TYPE Class Reference

#include <gb_main.h>

Inheritance diagram for GB_MAIN_TYPE:
Inheritance graph
[legend]
Collaboration diagram for GB_MAIN_TYPE:
Collaboration graph
[legend]

Public Member Functions

 GB_MAIN_TYPE (const char *db_path)
 
 ~GB_MAIN_TYPE ()
 
void free_all_keys ()
 
void release_main_idx ()
 
int get_transaction_level () const
 
GBDATAgb_main () const
 
GB_ERROR login_remote (const char *db_path, const char *opent) __ATTR__USERESULT
 
GB_ERROR begin_transaction () __ATTR__USERESULT
 
GB_ERROR commit_transaction () __ATTR__USERESULT
 
GB_ERROR abort_transaction () __ATTR__USERESULT
 
GB_ERROR push_transaction () __ATTR__USERESULT
 
GB_ERROR pop_transaction () __ATTR__USERESULT
 
GB_ERROR no_transaction ()
 
__ATTR__USERESULT GB_ERROR send_update_to_server (GBDATA *gbd) __ATTR__USERESULT
 
GB_ERROR save_quick (const char *refpath)
 
GB_ERROR save_as (const char *as_path, const char *savetype)
 
GB_ERROR save_quick_as (const char *as_path)
 
GB_ERROR panic_save (const char *db_panic)
 
void mark_as_server ()
 
bool is_server () const
 
bool is_client () const
 
void call_pending_callbacks ()
 
bool has_pending_change_callback () const
 
bool has_pending_delete_callback () const
 
GB_ERROR add_hierarchy_cb (const gb_hierarchy_location &loc, const TypedDatabaseCallback &dbcb)
 
GB_ERROR remove_hierarchy_cb (const gb_hierarchy_location &loc, const TypedDatabaseCallback &dbcb)
 
void forget_hierarchy_cbs ()
 
void trigger_change_callbacks (GBDATA *gbd, GB_CB_TYPE type)
 
void trigger_delete_callbacks (GBDATA *gbd)
 

Public Attributes

gbcmc_commc_link
 
gb_server_dataserver_data
 
GBCONTAINERdummy_father
 
GBCONTAINERroot_container
 
GBCONTAINERgb_key_data
 
charpath
 
gb_open_types opentype
 
chardisabled_path
 
int allow_corrupt_file_recovery
 
gb_quick_save qs
 
gb_cache cache
 
int compression_mask
 
int keycnt
 
long sizeofkeys
 
long first_free_key
 
gb_Keykeys
 
GB_HASHkey_2_index_hash
 
long key_clock
 
bool mapped
 
unsigned int last_updated
 
long last_saved_time
 
long last_saved_transaction
 
long last_main_saved_transaction
 
GB_UNDO_TYPE requested_undo_type
 
GB_UNDO_TYPE undo_type
 
g_b_undo_mgrundo
 
chardates [ALLOWED_DATES]
 
unsigned int security_level
 
long clock
 
GB_NUMHASHremote_hash
 
gb_callback_listclose_callbacks
 
gb_userusers [GB_MAX_USERS]
 
gb_userthis_user
 

Friends

class ArbDBWriter
 

Detailed Description

Definition at line 87 of file gb_main.h.

Constructor & Destructor Documentation

GB_MAIN_TYPE::GB_MAIN_TYPE ( const char db_path)
GB_MAIN_TYPE::~GB_MAIN_TYPE ( )

Member Function Documentation

void GB_MAIN_TYPE::free_all_keys ( )
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().

int GB_MAIN_TYPE::get_transaction_level ( ) const
inline
GBDATA* GB_MAIN_TYPE::gb_main ( ) const
inline
GB_ERROR GB_MAIN_TYPE::login_remote ( const char db_path,
const char opent 
)
GB_ERROR GB_MAIN_TYPE::begin_transaction ( )
inline

Definition at line 2356 of file arbdb.cxx.

References GBS_global_string(), and NULp.

Referenced by GB_begin_transaction().

GB_ERROR GB_MAIN_TYPE::commit_transaction ( )
inline
GB_ERROR GB_MAIN_TYPE::abort_transaction ( )
inline
GB_ERROR GB_MAIN_TYPE::push_transaction ( )
inline

Definition at line 2435 of file arbdb.cxx.

References NULp.

Referenced by GB_push_transaction().

GB_ERROR GB_MAIN_TYPE::pop_transaction ( )
inline

Definition at line 2442 of file arbdb.cxx.

References commit_transaction(), and NULp.

Referenced by abort_transaction(), and GB_pop_transaction().

GB_ERROR GB_MAIN_TYPE::no_transaction ( )
inline

Definition at line 2450 of file arbdb.cxx.

References is_client(), and NULp.

Referenced by GB_no_transaction().

GB_ERROR GB_MAIN_TYPE::send_update_to_server ( GBDATA gbd)
GB_ERROR GB_MAIN_TYPE::save_quick ( const char refpath)
GB_ERROR GB_MAIN_TYPE::save_as ( const char as_path,
const char savetype 
)
GB_ERROR GB_MAIN_TYPE::save_quick_as ( const char as_path)
GB_ERROR GB_MAIN_TYPE::panic_save ( const char db_panic)

Definition at line 187 of file adcomm.cxx.

References error(), and save_as().

Referenced by gbcms_sighup().

void GB_MAIN_TYPE::mark_as_server ( )
inline

Definition at line 201 of file gb_main.h.

Referenced by GB_login().

bool GB_MAIN_TYPE::is_server ( ) const
inline
bool GB_MAIN_TYPE::is_client ( ) const
inline
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().

bool GB_MAIN_TYPE::has_pending_change_callback ( ) const
inline

Definition at line 208 of file gb_main.h.

Referenced by GB_inside_callback().

bool GB_MAIN_TYPE::has_pending_delete_callback ( ) const
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 
)
GB_ERROR GB_MAIN_TYPE::remove_hierarchy_cb ( const gb_hierarchy_location loc,
const TypedDatabaseCallback dbcb 
)
void GB_MAIN_TYPE::forget_hierarchy_cbs ( )

Definition at line 100 of file ad_cb.cxx.

Referenced by GB_close().

void GB_MAIN_TYPE::trigger_change_callbacks ( GBDATA gbd,
GB_CB_TYPE  type 
)
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)

Friends And Related Function Documentation

friend class ArbDBWriter
friend

Definition at line 113 of file gb_main.h.

Member Data Documentation

gbcmc_comm* GB_MAIN_TYPE::c_link
gb_server_data* GB_MAIN_TYPE::server_data
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
GBCONTAINER* GB_MAIN_TYPE::gb_key_data
char* GB_MAIN_TYPE::path
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
gb_cache GB_MAIN_TYPE::cache
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
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
gb_Key* GB_MAIN_TYPE::keys
GB_HASH* GB_MAIN_TYPE::key_2_index_hash
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
GB_UNDO_TYPE GB_MAIN_TYPE::undo_type
g_b_undo_mgr* GB_MAIN_TYPE::undo
char* GB_MAIN_TYPE::dates[ALLOWED_DATES]
unsigned int GB_MAIN_TYPE::security_level
long GB_MAIN_TYPE::clock
GB_NUMHASH* GB_MAIN_TYPE::remote_hash
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]
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().


The documentation for this class was generated from the following files: