Midas Define
[The midas.h & midas.c]


Defines

#define STATE_STOPPED   1
#define STATE_PAUSED   2
#define STATE_RUNNING   3
#define FORMAT_MIDAS   1
#define FORMAT_YBOS   2
#define FORMAT_ASCII   3
#define FORMAT_FIXED   4
#define FORMAT_DUMP   5
#define FORMAT_HBOOK   6
#define FORMAT_ROOT   7
#define GET_ALL   (1<<0)
#define GET_NONBLOCKING   (1<<1)
#define GET_RECENT   (1<<2)
#define TID_BYTE   1
#define TID_SBYTE   2
#define TID_CHAR   3
#define TID_WORD   4
#define TID_SHORT   5
#define TID_DWORD   6
#define TID_INT   7
#define TID_BOOL   8
#define TID_FLOAT   9
#define TID_DOUBLE   10
#define TID_BITFIELD   11
#define TID_STRING   12
#define TID_ARRAY   13
#define TID_STRUCT   14
#define TID_KEY   15
#define TID_LINK   16
#define TID_LAST   17
#define SYNC   0
#define ASYNC   1
#define DETACH   2
#define MODE_READ   (1<<0)
#define MODE_WRITE   (1<<1)
#define MODE_DELETE   (1<<2)
#define MODE_EXCLUSIVE   (1<<3)
#define MODE_ALLOC   (1<<7)
#define RPC_OTIMEOUT   1
#define RPC_OTRANSPORT   2
#define RPC_OCONVERT_FLAG   3
#define RPC_OHW_TYPE   4
#define RPC_OSERVER_TYPE   5
#define RPC_OSERVER_NAME   6
#define RPC_CONVERT_FLAGS   7
#define RPC_ODB_HANDLE   8
#define RPC_CLIENT_HANDLE   9
#define RPC_SEND_SOCK   10
#define RPC_WATCHDOG_TIMEOUT   11
#define RPC_NODELAY   12
#define RPC_TCP   0
#define RPC_FTCP   1
#define WF_WATCH_ME   (1<<0)
#define WF_CALL_WD   (1<<1)
#define TR_START   (1<<0)
#define TR_STOP   (1<<1)
#define TR_PAUSE   (1<<2)
#define TR_RESUME   (1<<3)
#define TR_STARTABORT   (1<<4)
#define TR_DEFERRED   (1<<12)
#define EQ_PERIODIC   (1<<0)
#define EQ_POLLED   (1<<1)
#define EQ_INTERRUPT   (1<<2)
#define EQ_MULTITHREAD   (1<<3)
#define EQ_SLOW   (1<<4)
#define EQ_MANUAL_TRIG   (1<<5)
#define EQ_FRAGMENTED   (1<<6)
#define EQ_EB   (1<<7)
#define RO_RUNNING   (1<<0)
#define RO_STOPPED   (1<<1)
#define RO_PAUSED   (1<<2)
#define RO_BOR   (1<<3)
#define RO_EOR   (1<<4)
#define RO_PAUSE   (1<<5)
#define RO_RESUME   (1<<6)
#define RO_TRANSITIONS   (RO_BOR|RO_EOR|RO_PAUSE|RO_RESUME)
#define RO_ALWAYS   (0xFF)
#define RO_ODB   (1<<8)
#define EVENTID_ALL   -1
#define TRIGGER_ALL   -1
#define MT_ERROR   (1<<0)
#define MT_INFO   (1<<1)
#define MT_DEBUG   (1<<2)
#define MT_USER   (1<<3)
#define MT_LOG   (1<<4)
#define MT_TALK   (1<<5)
#define MT_CALL   (1<<6)
#define MT_ALL   0xFF
#define MT_ERROR_STR   "ERROR"
#define MT_INFO_STR   "INFO"
#define MT_DEBUG_STR   "DEBUG"
#define MT_USER_STR   "USER"
#define MT_LOG_STR   "LOG"
#define MT_TALK_STR   "TALK"
#define MT_CALL_STR   "CALL"
#define MERROR   MT_ERROR, __FILE__, __LINE__
#define MINFO   MT_INFO, __FILE__, __LINE__
#define MDEBUG   MT_DEBUG, __FILE__, __LINE__
#define MUSER   MT_USER, __FILE__, __LINE__
#define MLOG   MT_LOG, __FILE__, __LINE__
#define MTALK   MT_TALK, __FILE__, __LINE__
#define MCALL   MT_CALL, __FILE__, __LINE__


Define Documentation

#define ASYNC   1

Definition at line 311 of file midas.h.

Referenced by bm_receive_event(), cm_transition1(), handFlush(), log_write(), rpc_send_event(), scan_fragment(), source_scan(), start_the_run(), and stop_the_run().

#define DETACH   2

Definition at line 312 of file midas.h.

Referenced by cm_transition1(), interprete(), start_the_run(), and stop_the_run().

#define EQ_EB   (1<<7)

Event run through the event builder

Definition at line 363 of file midas.h.

Referenced by load_fragment().

#define EQ_FRAGMENTED   (1<<6)

Fragmented Event

Definition at line 362 of file midas.h.

Referenced by check_polled_events(), and send_event().

#define EQ_INTERRUPT   (1<<2)

Interrupt Event

Definition at line 358 of file midas.h.

Referenced by initialize_equipment(), and tr_stop().

#define EQ_MANUAL_TRIG   (1<<5)

Manual triggered Event

Definition at line 361 of file midas.h.

Referenced by show_status_page().

#define EQ_MULTITHREAD   (1<<3)

Multithread Event readout

Definition at line 359 of file midas.h.

Referenced by tr_stop().

#define EQ_PERIODIC   (1<<0)

Equipment types Periodic Event

Definition at line 356 of file midas.h.

#define EQ_POLLED   (1<<1)

Polling Event

Definition at line 357 of file midas.h.

Referenced by initialize_equipment().

#define EQ_SLOW   (1<<4)

Slow Control Event

Definition at line 360 of file midas.h.

Referenced by main(), register_equipment(), scheduler(), and send_event().

#define EVENTID_ALL   -1

Definition at line 477 of file midas.h.

Referenced by analyze_run(), bm_match_event(), and cm_msg_register().

#define FORMAT_ASCII   3

ASCII format

Definition at line 276 of file midas.h.

Referenced by bor(), db_get_event_definition(), dump_write(), log_close(), log_open(), and log_write().

#define FORMAT_DUMP   5

Dump (detailed ASCII) format

Definition at line 278 of file midas.h.

Referenced by db_get_event_definition(), log_close(), log_open(), and log_write().

#define FORMAT_FIXED   4

Fixed length binary records

Definition at line 277 of file midas.h.

Referenced by ascii_write(), db_get_event_definition(), dump_write(), register_equipment(), update_odb(), write_event_ascii(), write_event_midas(), and write_event_odb().

#define FORMAT_HBOOK   6

CERN hbook (rz) format

Definition at line 279 of file midas.h.

Referenced by bor(), and eor().

#define FORMAT_MIDAS   1

Data format MIDAS banks

Definition at line 274 of file midas.h.

Referenced by analyze_run(), ascii_write(), bor(), db_get_event_definition(), dump_write(), lazy_main(), load_fragment(), log_close(), log_open(), log_write(), md_all_info_display(), md_bank_display(), md_bank_event_display(), md_event_get(), md_event_swap(), md_file_ropen(), md_file_wopen(), md_physrec_display(), md_physrec_get(), md_physrec_skip(), md_raw_bank_display(), md_raw_event_display(), process_event(), register_equipment(), source_scan(), update_odb(), write_event_ascii(), write_event_hbook(), write_event_midas(), and write_event_odb().

#define FORMAT_ROOT   7

CERN ROOT format

Definition at line 280 of file midas.h.

Referenced by bor(), eor(), log_close(), log_open(), and log_write().

#define FORMAT_YBOS   2

YBOS banks

Definition at line 275 of file midas.h.

Referenced by db_get_event_definition(), load_fragment(), log_close(), log_write(), md_all_info_display(), md_bank_display(), md_bank_event_display(), md_event_get(), md_event_swap(), md_file_ropen(), md_file_wopen(), md_physrec_display(), md_raw_bank_display(), md_raw_event_display(), register_equipment(), source_scan(), and update_odb().

#define GET_ALL   (1<<0)

Event Sampling type get all events (consume)

Definition at line 284 of file midas.h.

Referenced by bm_remove_event_request(), bm_send_event(), bm_wait_for_free_space(), source_booking(), and tr_start().

#define GET_NONBLOCKING   (1<<1)

get as much as possible without blocking producer

Definition at line 285 of file midas.h.

Referenced by cm_msg_register().

#define GET_RECENT   (1<<2)

get recent event (not older than 1 s)

Definition at line 286 of file midas.h.

Referenced by bm_push_event().

#define MCALL   MT_CALL, __FILE__, __LINE__

info message for telephone call

Definition at line 505 of file midas.h.

#define MDEBUG   MT_DEBUG, __FILE__, __LINE__

Definition at line 501 of file midas.h.

Referenced by bm_flush_cache(), bm_receive_event(), bm_send_event(), bm_update_read_pointer(), bm_wait_for_free_space(), and bm_wakeup_producers().

#define MERROR   MT_ERROR, __FILE__, __LINE__

Definition at line 499 of file midas.h.

Referenced by add_event(), al_check(), al_reset_alarm(), al_trigger_alarm(), analyzer_init(), ascii_write(), bm_close_buffer(), bm_copy_from_cache(), bm_flush_cache(), bm_open_buffer(), bm_push_event(), bm_receive_event(), bm_remove_event_request(), bm_request_event(), bm_send_event(), bm_set_cache_size(), bm_skip_event(), bm_validate_client_index(), book_ntuples(), check_polled_events(), cm_check_client(), cm_check_deferred_transition(), cm_connect_experiment1(), cm_deregister_transition(), cm_get_watchdog_info(), cm_list_experiments(), cm_register_deferred_transition(), cm_register_transition(), cm_set_client_info(), cm_set_transition_sequence(), cm_shutdown(), cm_transition(), cm_transition1(), command_loop(), ModbusTcp::Connect(), SqlODBC::Connect(), create_experim_h(), db_check_record(), db_close_database(), db_copy(), db_copy_xml(), db_create_key(), db_create_link(), db_create_record(), db_delete_key1(), db_enum_key(), db_find_key(), db_get_data(), db_get_data_index(), db_get_event_definition(), db_get_key(), db_get_key_info(), db_get_key_time(), db_get_link(), db_get_link_data(), db_get_lock_cnt(), db_get_record(), db_get_value(), db_load(), db_lock_database(), db_open_database(), db_open_record(), db_paste(), db_paste_node(), db_protect_database(), db_save(), db_save_struct(), db_save_xml(), db_save_xml_key(), db_set_data(), db_set_data_index(), db_set_link_data(), db_set_link_data_index(), db_set_record(), db_set_value(), db_unlock_database(), dm_buffer_create(), dump_write(), el_submit(), evaluate_src(), SqlODBC::Exec(), find_odb_tag(), frontend_init(), ftp_error(), SqlHistory::hs_define_event(), hs_define_event_odbc(), SqlHistory::hs_get_tags(), hs_get_tags_odbc(), hs_read_odbc(), SqlHistory::hs_write_event(), init_module_parameters(), interprete(), lazy_copy(), lazy_main(), lazy_maintain_free_space(), SqlODBC::ListColumns(), SqlODBC::ListTables(), load_fragment(), log_callback(), log_generate_file_name(), log_odb_dump(), log_write(), logger_init(), lrs2365_set(), main(), mana_init(), md_dev_os_write(), md_file_ropen(), md_file_wopen(), mfe_set_error(), midas_log_open(), open_history(), ps7106_set(), ModbusTcp::Read(), readout_thread(), ModbusTcp::ReadRegister(), receive_trigger_event(), register_equipment(), SqlODBC::ReportErrors(), rpc_register_functions(), rpc_server_dispatch(), rpc_set_option(), save_list(), scan_fragment(), send_event(), set_history_path(), show_custom_gif(), show_elog_new(), show_elog_page(), show_form_query(), show_hist_page(), show_start_page(), show_status_page(), source_booking(), source_scan(), source_unbooking(), start_the_run(), stop_the_run(), tr_start(), tr_stop(), update_odb(), ModbusTcp::Write(), write_event_hbook(), write_event_odb(), and ModbusTcp::WriteRegister().

#define MINFO   MT_INFO, __FILE__, __LINE__

Definition at line 500 of file midas.h.

Referenced by add_event(), bk_list(), bm_cleanup(), bm_validate_client_pointers(), cm_check_client(), cm_cleanup(), cm_connect_experiment1(), cm_disconnect_experiment(), cm_set_client_info(), cm_transition1(), condition_test(), ModbusTcp::Connect(), SqlODBC::Connect(), SqlODBC::Exec(), SqlHistory::hs_write_event(), initialize_equipment(), lazy_copy(), lazy_log_update(), lazy_main(), lazy_maintain_check(), load_fragment(), log_callback(), log_write(), main(), process_event(), start_the_run(), tape_open(), tr_start(), tr_start_abort(), ModbusTcp::Write(), and ybk_list().

#define MLOG   MT_LOG, __FILE__, __LINE__

info message which is only logged

Definition at line 503 of file midas.h.

Referenced by main().

#define MODE_ALLOC   (1<<7)

Definition at line 320 of file midas.h.

Referenced by db_close_all_records(), db_close_record(), and db_open_record().

#define MODE_DELETE   (1<<2)

Definition at line 318 of file midas.h.

Referenced by cm_delete_client_info(), cm_deregister_transition(), cm_register_transition(), cm_set_client_info(), cm_transition1(), command_loop(), db_create_key(), db_delete_key1(), db_open_database(), odb_load(), print_key(), and scan_tree().

#define MODE_EXCLUSIVE   (1<<3)

Definition at line 319 of file midas.h.

Referenced by command_loop(), db_create_key(), db_open_database(), db_open_record(), db_set_data(), db_set_data_index(), db_set_link_data(), db_set_link_data_index(), db_set_value(), print_key(), and scan_tree().

#define MODE_READ   (1<<0)

Access modes

Definition at line 316 of file midas.h.

Referenced by add_event(), analyzer_init(), book_ntuples(), cm_delete_client_info(), cm_deregister_transition(), cm_register_deferred_transition(), cm_register_transition(), cm_set_client_info(), cm_set_transition_sequence(), cm_set_watchdog_params(), cm_transition1(), command_loop(), db_create_key(), db_find_key(), db_get_data(), db_get_data_index(), db_get_link_data(), db_get_value(), db_open_database(), db_open_record(), frontend_init(), init_module_parameters(), main(), mana_init(), odb_load(), open_history(), print_key(), register_equipment(), register_requests(), scan_tree(), and tr_start().

#define MODE_WRITE   (1<<1)

Definition at line 317 of file midas.h.

Referenced by cm_delete_client_info(), cm_deregister_transition(), cm_register_deferred_transition(), cm_register_transition(), cm_set_client_info(), cm_set_transition_sequence(), cm_set_watchdog_params(), cm_transition1(), command_loop(), db_create_key(), db_open_database(), db_set_data(), db_set_data_index(), db_set_link_data(), db_set_link_data_index(), db_set_value(), main(), odb_load(), print_key(), register_equipment(), register_requests(), scan_tree(), and tr_start().

#define MT_ALL   0xFF

Definition at line 489 of file midas.h.

Referenced by cm_connect_experiment1(), and main().

#define MT_CALL   (1<<6)

Definition at line 488 of file midas.h.

#define MT_CALL_STR   "CALL"

Definition at line 497 of file midas.h.

#define MT_DEBUG   (1<<2)

Definition at line 484 of file midas.h.

Referenced by cm_msg(), cm_msg_log(), and cm_msg_log1().

#define MT_DEBUG_STR   "DEBUG"

Definition at line 493 of file midas.h.

Referenced by cm_msg().

#define MT_ERROR   (1<<0)

System message types -

Definition at line 482 of file midas.h.

Referenced by cm_msg(), cm_msg1(), ctrlc_odbedit(), main(), and usage().

#define MT_ERROR_STR   "ERROR"

Definition at line 491 of file midas.h.

Referenced by cm_msg().

#define MT_INFO   (1<<1)

Definition at line 483 of file midas.h.

Referenced by cm_msg().

#define MT_INFO_STR   "INFO"

Definition at line 492 of file midas.h.

Referenced by cm_msg().

#define MT_LOG   (1<<4)

Definition at line 486 of file midas.h.

Referenced by cm_msg(), and cm_msg1().

#define MT_LOG_STR   "LOG"

Definition at line 495 of file midas.h.

Referenced by cm_msg().

#define MT_TALK   (1<<5)

Definition at line 487 of file midas.h.

Referenced by cm_msg().

#define MT_TALK_STR   "TALK"

Definition at line 496 of file midas.h.

Referenced by cm_msg().

#define MT_USER   (1<<3)

Definition at line 485 of file midas.h.

Referenced by cm_msg(), cm_msg1(), and command_loop().

#define MT_USER_STR   "USER"

Definition at line 494 of file midas.h.

Referenced by cm_msg().

#define MTALK   MT_TALK, __FILE__, __LINE__

info message for speech system

Definition at line 504 of file midas.h.

Referenced by al_check(), close_channels(), lazy_copy(), lazy_main(), log_callback(), log_write(), main(), scan_fragment(), start_the_run(), tr_start(), and tr_stop().

#define MUSER   MT_USER, __FILE__, __LINE__

produced by interactive user

Definition at line 502 of file midas.h.

Referenced by command_loop().

#define RO_ALWAYS   (0xFF)

Always (independent of the run status)

Definition at line 377 of file midas.h.

#define RO_BOR   (1<<3)

At the Begin of run

Definition at line 371 of file midas.h.

Referenced by send_all_periodic_events().

#define RO_EOR   (1<<4)

At the End of run

Definition at line 372 of file midas.h.

Referenced by send_all_periodic_events().

#define RO_ODB   (1<<8)

Submit data to ODB only

Definition at line 379 of file midas.h.

Referenced by process_event(), and send_event().

#define RO_PAUSE   (1<<5)

Before pausing the run

Definition at line 373 of file midas.h.

Referenced by send_all_periodic_events().

#define RO_PAUSED   (1<<2)

???

Definition at line 370 of file midas.h.

#define RO_RESUME   (1<<6)

Before resuming the run

Definition at line 374 of file midas.h.

Referenced by send_all_periodic_events().

#define RO_RUNNING   (1<<0)

Read - On flags While running

Definition at line 368 of file midas.h.

#define RO_STOPPED   (1<<1)

Before stopping the run

Definition at line 369 of file midas.h.

#define RO_TRANSITIONS   (RO_BOR|RO_EOR|RO_PAUSE|RO_RESUME)

At all transitions

Definition at line 376 of file midas.h.

#define RPC_CLIENT_HANDLE   9

Definition at line 332 of file midas.h.

Referenced by cm_get_experiment_database(), and cm_set_client_info().

#define RPC_CONVERT_FLAGS   7

Definition at line 330 of file midas.h.

Referenced by bm_receive_event(), db_get_record(), db_set_record(), db_update_record(), and rpc_server_dispatch().

#define RPC_FTCP   1

Definition at line 338 of file midas.h.

Referenced by cm_transition1(), and db_send_changed_records().

#define RPC_NODELAY   12

Definition at line 335 of file midas.h.

Referenced by rpc_set_option().

#define RPC_OCONVERT_FLAG   3

Definition at line 326 of file midas.h.

#define RPC_ODB_HANDLE   8

Definition at line 331 of file midas.h.

Referenced by cm_get_experiment_database(), and cm_set_client_info().

#define RPC_OHW_TYPE   4

Definition at line 327 of file midas.h.

Referenced by cm_connect_experiment1().

#define RPC_OSERVER_NAME   6

Definition at line 329 of file midas.h.

Referenced by main().

#define RPC_OSERVER_TYPE   5

Definition at line 328 of file midas.h.

Referenced by bm_check_buffers(), bm_close_buffer(), bm_open_buffer(), bm_receive_event(), cm_disconnect_experiment(), cm_set_watchdog_params(), db_close_database(), db_get_record(), db_open_database(), db_set_record(), and main().

#define RPC_OTIMEOUT   1

RPC options

Definition at line 324 of file midas.h.

Referenced by bm_receive_event(), cm_transition1(), command_loop(), main(), and rpc_set_option().

#define RPC_OTRANSPORT   2

Definition at line 325 of file midas.h.

Referenced by cm_transition1(), db_send_changed_records(), rpc_set_option(), and update_odb().

#define RPC_SEND_SOCK   10

Definition at line 333 of file midas.h.

#define RPC_TCP   0

Definition at line 337 of file midas.h.

Referenced by cm_transition1(), db_send_changed_records(), and update_odb().

#define RPC_WATCHDOG_TIMEOUT   11

Definition at line 334 of file midas.h.

Referenced by cm_set_watchdog_params().

#define STATE_PAUSED   2

MIDAS run paused

Definition at line 269 of file midas.h.

Referenced by cm_transition1(), command_loop(), interprete(), main(), scan_fragment(), show_status_page(), and tr_pause().

#define STATE_RUNNING   3

MIDAS run running

Definition at line 270 of file midas.h.

Referenced by assemble_prompt(), cm_transition1(), command_loop(), display(), generate_hist_graph(), interprete(), lazy_condition_check(), main(), scan_fragment(), scheduler(), show_status_page(), tr_resume(), tr_start(), and tr_start_fal().

#define STATE_STOPPED   1

System states MIDAS run stopped

Definition at line 268 of file midas.h.

Referenced by assemble_prompt(), cm_transition1(), command_loop(), display(), generate_hist_graph(), interprete(), lazy_main(), main(), read_state(), register_equipment(), scan_fragment(), show_status_page(), start_the_run(), tr_start_abort(), tr_stop(), and tr_stop_fal().

#define SYNC   0

Synchronous / Asynchronous flags

Definition at line 310 of file midas.h.

Referenced by cm_check_deferred_transition(), cm_msg(), cm_msg1(), command_loop(), main(), receive_trigger_event(), send_event(), and tr_stop().

#define TID_ARRAY   13

array with unknown contents

Definition at line 302 of file midas.h.

Referenced by show_create_page().

#define TID_BITFIELD   11

32 Bits Bitfield 0 111... (32)

Definition at line 300 of file midas.h.

Referenced by db_sprintf(), and db_sprintff().

#define TID_BOOL   8

four bytes bool 0 1

Definition at line 297 of file midas.h.

Referenced by add_event(), al_check(), al_trigger_alarm(), ana_end_of_run(), analyze_run(), bk_swap(), bor(), db_sprintf(), db_sprintff(), evaluate_src(), export_hist(), generate_hist_graph(), getparam(), MidasHistory::hs_read(), log_write(), logger_init(), main(), midas_bank_display(), midas_bank_display32(), odb_load(), show_alarm_page(), show_custom_gif(), show_elog_delete(), show_elog_new(), show_elog_page(), show_elog_query(), show_elog_submit_query(), show_hist_config_page(), show_hist_page(), show_odb_tag(), show_programs_page(), show_start_page(), show_status_page(), start_the_run(), stop_the_run(), tr_start(), tr_start_fal(), tr_stop(), and write_event_hbook().

#define TID_BYTE   1

Data types Definition min max unsigned byte 0 255

Definition at line 290 of file midas.h.

Referenced by db_sprintf(), db_sprintff(), export_hist(), MidasHistory::hs_read(), isCompatible(), midas_bank_display(), midas_bank_display32(), and write_event_hbook().

#define TID_CHAR   3

single character 0 255

Definition at line 292 of file midas.h.

Referenced by db_sprintf(), db_sprintff(), export_hist(), MidasHistory::hs_read(), midas_bank_display(), and midas_bank_display32().

#define TID_DOUBLE   10

8 Byte float format

Definition at line 299 of file midas.h.

Referenced by ana_end_of_run(), bk_swap(), condition_test(), db_sprintf(), db_sprintff(), export_hist(), MidasHistory::hs_read(), log_callback(), log_write(), midas_bank_display(), midas_bank_display32(), register_equipment(), scaler_accum(), show_custom_gif(), show_status_page(), and write_event_hbook().

#define TID_DWORD   6

four bytes 0 2^32-1

Definition at line 295 of file midas.h.

Referenced by bk_swap(), bm_convert_event_header(), bm_open_buffer(), book_ntuples(), bor(), cm_transition1(), db_sprintf(), db_sprintff(), db_update_record(), eb_user(), export_hist(), MidasHistory::hs_read(), main(), midas_bank_display(), midas_bank_display32(), open_history(), read_scaler_event(), rpc_server_dispatch(), show_alarm_page(), test_write(), tr_start_fal(), and write_event_hbook().

#define TID_FLOAT   9

4 Byte float format

Definition at line 298 of file midas.h.

Referenced by adc_calib(), bk_swap(), db_sprintf(), db_sprintff(), export_hist(), generate_hist_graph(), MidasHistory::hs_read(), isCompatible(), load_vars_odb(), midas_bank_display(), midas_bank_display32(), resize_vars_odb(), save_vars_odb(), show_custom_gif(), show_hist_config_page(), show_hist_page(), test_write(), and write_event_hbook().

#define TID_INT   7

signed dword -2^31 2^31-1

Definition at line 296 of file midas.h.

Referenced by al_check(), al_trigger_alarm(), analyze_run(), assemble_prompt(), bk_swap(), build_done_list_odb(), cm_connect_client(), cm_connect_experiment1(), cm_delete_client_info(), cm_register_deferred_transition(), cm_register_transition(), cm_set_client_info(), cm_set_transition_sequence(), cm_set_watchdog_params(), cm_shutdown(), cm_transition1(), command_loop(), db_get_event_definition(), db_sprintf(), db_sprintff(), el_submit(), export_hist(), MidasHistory::GetEventsFromEquipment(), MidasHistory::hs_connect(), MidasHistory::hs_read(), interprete(), lazy_main(), lazy_maintain_check(), lazy_settings_hotlink(), load_fragment(), log_callback(), log_generate_file_name(), log_write(), logger_init(), main(), midas_bank_display(), midas_bank_display32(), open_history(), process_event(), read_state(), register_equipment(), rpc_server_dispatch(), set_history_path(), show_alarm_page(), show_custom_gif(), show_elog_new(), show_form_query(), show_hist_config_page(), show_start_page(), show_status_page(), start_the_run(), tr_start(), tr_stop(), and write_event_hbook().

#define TID_KEY   15

key in online database

Definition at line 304 of file midas.h.

Referenced by al_check(), cm_transition1(), cmd_dir(), command_loop(), create_experim_h(), db_check_record(), db_copy(), db_create_key(), db_create_record(), db_delete_key1(), db_enum_key(), db_find_key(), db_get_data(), db_get_data_index(), db_get_key_info(), db_get_link_data(), db_get_record(), db_get_record_size(), db_open_database(), db_paste(), db_paste_node(), db_save_xml_key(), db_set_data(), db_set_data_index(), db_set_link_data(), db_set_link_data_index(), db_set_record(), db_set_value(), del_tree(), exec_script(), gen_odb_attachment(), load_fragment(), main(), open_history(), print_key(), register_equipment(), scan_tree(), search_callback(), search_key(), show_hist_page(), show_odb_page(), show_programs_page(), and show_sc_page().

#define TID_LAST   17

end of TID list indicator

Definition at line 306 of file midas.h.

Referenced by command_loop(), db_check_record(), db_create_key(), db_paste(), db_paste_node(), and send_js().

#define TID_LINK   16

link in online database

Definition at line 305 of file midas.h.

Referenced by cmd_dir(), command_loop(), db_check_record(), db_copy(), db_create_key(), db_create_link(), db_delete_key1(), db_enum_key(), db_find_key(), db_get_data(), db_get_key(), db_get_value(), db_paste(), db_paste_node(), db_save_xml_key(), db_set_data(), db_set_data_index(), db_set_link_data_index(), db_set_value(), db_sprintf(), db_sprintff(), gen_odb_attachment(), open_history(), print_key(), search_callback(), set_key(), show_create_page(), show_odb_page(), show_set_page(), show_status_page(), update_odb(), and write_event_odb().

#define TID_SBYTE   2

signed byte -128 127

Definition at line 291 of file midas.h.

Referenced by db_sprintf(), db_sprintff(), export_hist(), MidasHistory::hs_read(), midas_bank_display(), and midas_bank_display32().

#define TID_SHORT   5

signed word -32768 32767

Definition at line 294 of file midas.h.

Referenced by bk_swap(), bm_convert_event_header(), db_sprintf(), db_sprintff(), export_hist(), MidasHistory::hs_read(), midas_bank_display(), midas_bank_display32(), rpc_server_dispatch(), and write_event_hbook().

#define TID_STRING   12

zero terminated string

Definition at line 301 of file midas.h.

Referenced by add_data_dir(), add_event(), al_trigger_alarm(), ana_end_of_run(), analyze_run(), assemble_prompt(), check_web_password(), cm_check_client(), cm_connect_client(), cm_connect_experiment1(), cm_exist(), cm_get_client_info(), cm_msg_log(), cm_msg_log1(), cm_msg_retrieve(), cm_set_client_info(), cm_shutdown(), cm_transition1(), cmd_dir(), command_loop(), create_experim_h(), db_check_record(), db_copy(), db_create_key(), db_get_event_definition(), db_get_value(), db_paste(), db_paste_node(), db_save_xml_key(), db_set_data_index(), db_set_link_data_index(), db_set_value(), db_sprintf(), db_sprintff(), do_jrpc_rev0(), el_submit(), exec_script(), export_hist(), gen_odb_attachment(), generate_hist_graph(), get_elog_url(), get_event_id(), get_variable_id(), get_variable_id_tags(), MidasHistory::GetEventsFromOdbEvents(), MidasHistory::GetEventsFromOdbTags(), getparam(), MidasHistory::GetTagsFromEquipment(), MidasHistory::GetTagsFromOdb(), MidasHistory::hs_connect(), hs_dump(), interprete(), is_editable(), lazy_main(), lazy_maintain_check(), lazy_select_purge(), load_fragment(), load_vars_odb(), log_callback(), log_generate_file_name(), logger_init(), logger_root(), main(), midas_bank_display(), midas_bank_display32(), odb_save(), open_history(), print_key(), resize_vars_odb(), save_vars_odb(), set_equipment_status(), set_history_path(), set_key(), show_alarm_page(), show_cnaf_page(), show_create_page(), show_custom_gif(), show_custom_page(), show_elog_new(), show_elog_page(), show_elog_query(), show_elog_submit_query(), show_form_query(), show_header(), show_hist_config_page(), show_hist_page(), show_messages_page(), show_odb_page(), show_programs_page(), show_rawfile(), show_sc_page(), show_set_page(), show_start_page(), show_status_page(), submit_elog(), submit_form(), tr_start(), tr_stop(), tr_stop_fal(), update_odb(), and write_event_odb().

#define TID_STRUCT   14

structure with fixed length

Definition at line 303 of file midas.h.

Referenced by adc_summing(), bk_close(), book_ntuples(), mana_init(), midas_bank_display(), midas_bank_display32(), register_equipment(), update_odb(), write_event_ascii(), write_event_hbook(), and write_event_odb().

#define TID_WORD   4

two bytes 0 65535

Definition at line 293 of file midas.h.

Referenced by add_event(), bk_swap(), db_get_event_definition(), db_sprintf(), db_sprintff(), export_hist(), MidasHistory::GetTagsFromOdb(), MidasHistory::hs_read(), interprete(), isCompatible(), load_fragment(), midas_bank_display(), midas_bank_display32(), open_history(), read_trigger_event(), register_equipment(), rpc_server_dispatch(), and write_event_hbook().

#define TR_DEFERRED   (1<<12)

Definition at line 352 of file midas.h.

Referenced by cm_check_deferred_transition(), cm_transition1(), and command_loop().

#define TR_PAUSE   (1<<2)

Pause transition

Definition at line 349 of file midas.h.

Referenced by cm_deregister_transition(), cm_register_transition(), cm_set_transition_sequence(), cm_transition1(), command_loop(), interprete(), main(), send_all_periodic_events(), show_status_page(), and tr_pause().

#define TR_RESUME   (1<<3)

Resume transition

Definition at line 350 of file midas.h.

Referenced by cm_deregister_transition(), cm_register_transition(), cm_set_transition_sequence(), cm_transition1(), command_loop(), interprete(), main(), send_all_periodic_events(), show_status_page(), and tr_resume().

#define TR_START   (1<<0)

Transitions values Start transition

Definition at line 347 of file midas.h.

Referenced by cm_deregister_transition(), cm_register_transition(), cm_set_transition_sequence(), cm_transition(), cm_transition1(), command_loop(), interprete(), main(), send_all_periodic_events(), show_status_page(), start_the_run(), tr_start(), and tr_start_fal().

#define TR_STARTABORT   (1<<4)

Start aborted transition

Definition at line 351 of file midas.h.

Referenced by cm_register_transition(), cm_transition(), cm_transition1(), and main().

#define TR_STOP   (1<<1)

Stop transition

Definition at line 348 of file midas.h.

Referenced by cm_deregister_transition(), cm_register_transition(), cm_set_transition_sequence(), cm_transition1(), command_loop(), interprete(), log_write(), main(), scan_fragment(), send_all_periodic_events(), show_status_page(), stop_the_run(), tr_stop(), and tr_stop_fal().

#define TRIGGER_ALL   -1

Definition at line 478 of file midas.h.

Referenced by analyze_run(), bm_match_event(), cm_msg_register(), and source_booking().

#define WF_CALL_WD   (1<<1)

Definition at line 343 of file midas.h.

#define WF_WATCH_ME   (1<<0)

Watchdog flags

Definition at line 342 of file midas.h.


Midas DOC Version 3.0.0 ---- PSI Stefan Ritt ----
Contributions: Pierre-Andre Amaudruz - Sergio Ballestrero - Suzannah Daviel - Doxygen - Peter Green - Qing Gu - Greg Hackman - Gertjan Hofman - Paul Knowles - Exaos Lee - Rudi Meier - Glenn Moloney - Dave Morris - John M O'Donnell - Konstantin Olchanski - Renee Poutissou - Tamsen Schurman - Andreas Suter - Jan M.Wouters - Piotr Adam Zolnierczuk