ARB
Classes | Typedefs | Enumerations | Functions
QUERY Namespace Reference

Classes

class  DbQuery
 
class  query_spec
 

Typedefs

typedef const charAwarName
 
typedef void(* popup_info_window_cb )(AW_root *aw_root, GBDATA *gb_main)
 

Enumerations

enum  QUERY_MODES { QUERY_GENERATE, QUERY_ENLARGE, QUERY_REDUCE }
 
enum  QUERY_TYPES { QUERY_MARKED, QUERY_MATCH, QUERY_DONT_MATCH }
 
enum  QUERY_RESULT_ORDER {
  QUERY_SORT_NONE = 0, QUERY_SORT_BY_1STFIELD_CONTENT = 1, QUERY_SORT_BY_ID = 2, QUERY_SORT_BY_NESTED_PID = 4,
  QUERY_SORT_BY_MARKED = 8, QUERY_SORT_BY_HIT_DESCRIPTION = 16, QUERY_SORT_REVERSE = 32, QUERY_SORT_NUM_BY_1STFIELD_CONTENT = 64
}
 

Functions

void copy_selection_list_2_query_box (DbQuery *query, AW_selection_list *srclist, const char *hit_description)
 
DbQuerycreate_query_box (AW_window *aws, query_spec *awtqs, const char *query_id)
 
void search_duplicated_field_content (AW_window *dummy, DbQuery *query, bool tokenize)
 
long count_queried_items (DbQuery *query, QUERY_RANGE range)
 
void unquery_all (void *dummy, DbQuery *query)
 
ItemSelectorget_queried_itemtype (DbQuery *query)
 
bool IS_QUERIED (GBDATA *gb_item, const query_spec *aqs)
 
bool IS_QUERIED (GBDATA *gb_item, const DbQuery *query)
 
void DbQuery_update_list (DbQuery *query)
 
AW_windowcreate_colorize_items_window (AW_root *aw_root, GBDATA *gb_main, ItemSelector &sel)
 
GBDATAquery_get_gb_main (DbQuery *query)
 

Typedef Documentation

typedef const char* QUERY::AwarName

Definition at line 26 of file db_query.h.

typedef void(* QUERY::popup_info_window_cb)(AW_root *aw_root, GBDATA *gb_main)

Definition at line 27 of file db_query.h.

Enumeration Type Documentation

Enumerator
QUERY_GENERATE 
QUERY_ENLARGE 
QUERY_REDUCE 

Definition at line 28 of file db_query_local.h.

Enumerator
QUERY_MARKED 
QUERY_MATCH 
QUERY_DONT_MATCH 

Definition at line 34 of file db_query_local.h.

Enumerator
QUERY_SORT_NONE 
QUERY_SORT_BY_1STFIELD_CONTENT 
QUERY_SORT_BY_ID 
QUERY_SORT_BY_NESTED_PID 
QUERY_SORT_BY_MARKED 
QUERY_SORT_BY_HIT_DESCRIPTION 
QUERY_SORT_REVERSE 
QUERY_SORT_NUM_BY_1STFIELD_CONTENT 

Definition at line 45 of file db_query_local.h.

Function Documentation

void QUERY::copy_selection_list_2_query_box ( DbQuery query,
AW_selection_list srclist,
const char hit_description 
)
DbQuery * QUERY::create_query_box ( AW_window aws,
query_spec awtqs,
const char query_id 
)

Definition at line 2354 of file db_query.cxx.

References AW_awar::add_callback(), ARB_keep_string(), AW_window::at(), AW_window::auto_space(), AW_AT_SIZE_AND_ATTACH, AW_ROOT_DEFAULT, AW_root::awar(), QUERY::DbQuery::awar_acceptConvError, QUERY::DbQuery::awar_acceptIdMod, QUERY::DbQuery::awar_by, QUERY::DbQuery::awar_count, QUERY::DbQuery::awar_deftag, QUERY::DbQuery::awar_double_pars, QUERY::DbQuery::awar_ere, AW_root::awar_int(), QUERY::DbQuery::awar_keys, QUERY::DbQuery::awar_not, QUERY::DbQuery::awar_operator, QUERY::DbQuery::awar_parskey, QUERY::DbQuery::awar_parspredefined, QUERY::DbQuery::awar_parsvalue, QUERY::DbQuery::awar_protectkey, QUERY::DbQuery::awar_queries, QUERY::DbQuery::awar_setprotection, QUERY::DbQuery::awar_setvalue, QUERY::DbQuery::awar_sort, AW_root::awar_string(), QUERY::DbQuery::awar_tag, QUERY::DbQuery::awar_use_tag, QUERY::DbQuery::awar_where, QUERY::DbQuery::awar_writekey, QUERY::DbQuery::awar_writelossy, AWM_ALL, QUERY::DbQuery::aws, AWT_insert_config_manager(), buffer, AW_window::button_length(), QUERY::query_spec::by_pos_fig, AW_window::callback(), QUERY::query_spec::config_pos_fig, QUERY::query_spec::count_pos_fig, AW_window::create_button(), create_colorize_queried_window(), AW_window::create_input_field(), create_itemfield_selection_button(), create_modify_fields_window(), AW_window::create_option_menu(), create_query_independent_awars(), AW_window::create_selection_list(), create_set_protection_window(), AW_window::create_toggle_field(), create_writeFieldOfListed_window(), AW_window::d_callback(), dbq_assert, delete_queried_species_cb(), QUERY::query_spec::do_delete_pos_fig, QUERY::query_spec::do_mark_pos_fig, QUERY::query_spec::do_query_pos_fig, QUERY::query_spec::do_refresh_pos_fig, QUERY::query_spec::do_set_pos_fig, QUERY::query_spec::do_unmark_pos_fig, QUERY::query_spec::ere_pos_fig, QUERY::query_spec::expect_hit_in_ref_list, QUERY::DbQuery::expect_hit_in_ref_list, EXT_QUERY_COMPARE_LINES, EXT_QUERY_COMPARE_WORDS, EXT_QUERY_NONE, FIELD_FILTER_STRING_READABLE, first_searchkey_changed_cb(), free_hit_description(), GB_IGNORE_CASE, gb_main, QUERY::query_spec::gb_main, QUERY::DbQuery::gb_main, GB_pop_transaction(), GB_push_transaction(), QUERY::query_spec::gb_ref, QUERY::DbQuery::gb_ref, GBS_create_dynaval_hash(), GBS_global_string(), GBS_global_string_copy(), AW_window::get_at_position(), QUERY::query_spec::get_queried_itemtype(), AW_window::get_root(), AW_window::help_text(), QUERY::DbQuery::hit_description, QUERY::DbQuery::hitlist, AW_selection_list::insert_default(), AW_window::insert_default_option(), AW_window::insert_menu_topic(), AW_window::insert_option(), AW_window::insert_toggle(), MutableItemSelector::items_name, keepQuery(), QUERY::query_spec::key_pos_fig, KEY_Y_OFFSET, AW_window::label(), AW_at_storage::make(), mark_queried_cb(), new_selection_made_cb(), NULp, QUERY::query_spec::open_parser_pos_fig, MutableItemSelector::parent_selector, perform_query_cb(), QUERY::query_spec::popup_info_window, QUERY::query_spec::qbox_pos_fig, QUERY_ALL_ITEMS, query_box_setup_config(), query_count_items(), QUERY_CURRENT_ITEM, QUERY_DONT_MATCH, QUERY_ENLARGE, QUERY_EXPRESSIONS, QUERY_GENERATE, QUERY_MARKED, QUERY_MARKED_ITEMS, QUERY_MATCH, QUERY::query_spec::query_pos_fig, QUERY_REDUCE, query_rel_menu_entry(), QUERY_SORT_BY_1STFIELD_CONTENT, QUERY_SORT_BY_HIT_DESCRIPTION, QUERY_SORT_BY_ID, QUERY_SORT_BY_MARKED, QUERY_SORT_BY_NESTED_PID, QUERY_SORT_NONE, QUERY_SORT_NUM_BY_1STFIELD_CONTENT, QUERY_SORT_REVERSE, AW_window::restore_at_from(), QUERY::query_spec::result_pos_fig, result_sort_order_changed_cb(), QUERY::query_spec::select_bit, QUERY::DbQuery::select_bit, QUERY::DbQuery::selector, AW_window::sep______________(), QUERY::DbQuery::set_tree_awar_name(), SF_PSEUDO, RootAsWindowCallback::simple(), QUERY::DbQuery::sort_mask, QUERY::query_spec::species_name, QUERY::DbQuery::species_name, speciesOrOrganism(), toggle_flag_cb(), QUERY::query_spec::tree_name, MutableItemSelector::type, AW_selection_list::update(), AW_window::update_option_menu(), AW_window::update_toggle_field(), QUERY::query_spec::use_menu, and QUERY::query_spec::where_pos_fig.

Referenced by DBUI::create_species_query_window(), EXP_create_experiment_query_window(), GEN_create_gene_query_window(), and MG_create_merge_species_window().

void QUERY::search_duplicated_field_content ( AW_window dummy,
DbQuery query,
bool  tokenize 
)
long QUERY::count_queried_items ( DbQuery query,
QUERY_RANGE  range 
)
void QUERY::unquery_all ( void *  dummy,
DbQuery query 
)
const ItemSelector & QUERY::get_queried_itemtype ( DbQuery query)

Definition at line 110 of file db_query.cxx.

References QUERY::DbQuery::selector.

Referenced by awtc_nn_search_all_listed().

bool QUERY::IS_QUERIED ( GBDATA gb_item,
const query_spec *  aqs 
)
inline
bool QUERY::IS_QUERIED ( GBDATA gb_item,
const DbQuery query 
)

Definition at line 155 of file db_query.cxx.

References QUERY::DbQuery::is_queried().

void QUERY::DbQuery_update_list ( DbQuery query)

Definition at line 482 of file db_query.cxx.

References AW_root::awar(), QUERY::DbQuery::awar_count, QUERY::DbQuery::awar_keys, QUERY::DbQuery::awar_where, QUERY::DbQuery::aws, AW_selection_list::clear(), compare_hits(), count_queried_items(), dbq_assert, detectMaxNameLength(), find_display_determining_sort_order(), QUERY::DbQuery::gb_main, GB_pop_transaction(), GB_push_transaction(), GB_read_flag(), GB_sort(), GBS_global_string(), GBS_global_string_copy(), GBS_hash_do_const_loop(), GBS_shorten_repeated_data(), GBT_read_as_string(), MutableItemSelector::generate_item_id, MutableItemSelector::get_first_item, MutableItemSelector::get_first_item_container, MutableItemSelector::get_next_item, MutableItemSelector::get_next_item_container, AW_window::get_root(), getHitInfo(), QUERY::DbQuery::hit_description, QUERY::DbQuery::hitlist, info, AW_selection_list::insert(), AW_selection_list::insert_default(), is_pseudo_key(), IS_QUERIED(), MutableItemSelector::item_name_length, line, MAX_QUERY_LIST_LEN, MAX_SHOWN_DATA_SIZE, NULp, QUERY_ALL_ITEMS, QUERY_SORT_BY_HIT_DESCRIPTION, QUERY_SORT_NONE, AW_awar::read_char_pntr(), AW_awar::read_int(), remove_keydependent_sort_criteria(), s, QUERY::DbQuery::selector, QUERY::DbQuery::sort_mask, split_sort_mask(), AW_selection_list::update(), and AW_awar::write_int().

Referenced by copy_selection_list_2_query_box(), delete_queried_species_cb(), first_searchkey_changed_cb(), mark_queried_cb(), perform_query_cb(), DBUI::query_update_list(), result_sort_order_changed_cb(), search_duplicated_field_content(), toggle_flag_cb(), ScopedTransporter::transferAllIn(), and unquery_all().

AW_window * QUERY::create_colorize_items_window ( AW_root aw_root,
GBDATA gb_main,
ItemSelector sel 
)
GBDATA * QUERY::query_get_gb_main ( DbQuery query)