#include <messenger.hh>
Public Member Functions | |
| Message * | get () |
| This should not be needed normally because a method to print out a message is defined as a static method. | |
Static Public Member Functions | |
| static void | send (MSG::Level level, std::string msg) |
| Static method to send message out. | |
| static void | send (MSG::Level level, std::string where, std::string msg) |
| Extra argument "where" is used to indicate function/class name. | |
Private Member Functions | |
| Message () | |
| Default constructor ... make it private to limit the duplication of instance. | |
| virtual | ~Message () |
| Default destructor. | |
Static Private Attributes | |
| static Message * | me = 0 |
| Private static pointer. | |
Definition at line 27 of file messenger.hh.
| Message::Message | ( | ) | [inline, private] |
Default constructor ... make it private to limit the duplication of instance.
Definition at line 32 of file messenger.hh.
Referenced by get().
| virtual Message::~Message | ( | ) | [inline, private, virtual] |
| Message* Message::get | ( | ) | [inline] |
This should not be needed normally because a method to print out a message is defined as a static method.
See Message::send
Definition at line 46 of file messenger.hh.
| void Message::send | ( | MSG::Level | level, | |
| std::string | where, | |||
| std::string | msg | |||
| ) | [static] |
Extra argument "where" is used to indicate function/class name.
Definition at line 18 of file messenger.cc.
References MSG::ColorPrefix, and MSG::StringPrefix.
00019 { 00020 std::cout 00021 << MSG::ColorPrefix[level].c_str() 00022 << MSG::StringPrefix[level].c_str() 00023 << "\033[0m" 00024 << "\033[95m" 00025 << "<" 00026 << where.c_str() 00027 << "> " 00028 << "\033[0m" 00029 << msg.c_str() 00030 << std::endl; 00031 }
| void Message::send | ( | MSG::Level | level, | |
| std::string | msg | |||
| ) | [static] |
Static method to send message out.
Definition at line 8 of file messenger.cc.
References MSG::ColorPrefix, and MSG::StringPrefix.
Referenced by waveform_sampler::analyze(), reco_wf::analyze(), pulse_viewer::analyze(), pulse_reco::analyze(), pulse_analyzer::analyze(), pmtbaseline::analyze(), led_pulse_selector::analyze(), led_pulse_analyzer::analyze(), algo_base::backtrace(), algo_tpc_xmit::check_event_quality(), algo_slow_readout_decoder::check_event_quality(), algo_pmt_xmit::check_event_quality(), check_index(), storage_manager::close(), bin_io_handler::close(), ped_estimator::compute_pedestal(), decoder_manager::decode(), algo_tpc_xmit::decode_ch_word(), algo_slow_readout_decoder::decode_ch_word(), algo_pmt_xmit::decode_ch_word(), algo_slow_readout_decoder::decode_event_header(), algo_fem_decoder_base::decode_fem_header(), algo_trig_decoder::decode_trigger_words(), pulse_viewer::display_cut_ranges(), user_info::dump_contents(), pmtbaseline::finalize(), decoder_manager::finalize(), beamgate_debugger::finalize(), ana_processor::finalize(), user_info::get_barray(), user_info::get_bool(), user_info::get_darray(), storage_manager::get_data(), user_info::get_double(), user_info::get_iarray(), user_info::get_int(), user_info::get_sarray(), user_info::get_string(), pulse_viewer::get_waveform(), waveform_sampler::initialize(), reco_wf::initialize(), pulse_viewer::initialize(), pulse_reco::initialize(), led_pulse_selector::initialize(), decoder_manager::initialize(), beamgate_debugger::initialize(), ana_processor::initialize(), main(), pmtbaseline::mean(), storage_manager::next_event(), pulse_viewer::next_pulse(), storage_manager::open(), bin_io_handler::open(), beamgate_debugger::prepare_histo(), storage_manager::prepare_tree(), pulse_viewer::previous_pulse(), algo_slow_readout_decoder::print_adc_values(), algo_tpc_xmit::process_ch_word(), algo_tpc_huffman::process_ch_word(), algo_slow_readout_decoder::process_ch_word(), algo_pmt_xmit::process_ch_word(), ana_processor::process_event(), algo_tpc_xmit::process_event_header(), algo_tpc_huffman::process_event_header(), algo_pmt_xmit::process_event_header(), algo_tpc_xmit::process_event_last_word(), algo_tpc_huffman::process_event_last_word(), algo_pmt_xmit::process_event_last_word(), algo_tpc_huffman::process_fem_header(), algo_fem_decoder_base::process_fem_header(), algo_tpc_xmit::process_fem_last_word(), algo_tpc_huffman::process_fem_last_word(), algo_pmt_xmit::process_fem_last_word(), algo_xmit_decoder::process_header(), algo_slow_readout_decoder::process_header(), algo_trig_decoder::process_word(), algo_tpc_huffman::process_word(), algo_slow_readout_decoder::process_word(), algo_fem_decoder_base::process_word(), bin_io_handler::read_multi_word(), bin_io_handler::read_word(), storage_manager::reset(), beamgate_debugger::reset(), ana_processor::reset(), pmtbaseline::rms(), xmit_event_search::run(), decoder_manager::run(), ana_processor::run(), pulse_selector_base::set_pulse_type(), algo_tpc_xmit::store_event(), algo_pmt_xmit::store_event(), pmtbaseline::tailmean(), pmtbaseline::tailrms(), and bin_io_handler::write_multi_word().
00009 { 00010 std::cout 00011 << MSG::ColorPrefix[level].c_str() 00012 << MSG::StringPrefix[level].c_str() 00013 << "\033[0m" 00014 << msg.c_str() 00015 << std::endl; 00016 }
Message * Message::me = 0 [static, private] |
1.4.7