ATLAS Offline Software
Loading...
Searching...
No Matches
MsgMacros.h
Go to the documentation of this file.
1
14
15#ifndef TRIGIDR4MONITORING_MSGMACROS_H
16#define TRIGIDR4MONITORING_MSGMACROS_H
17
20
21#define MY_MSG_FATAL if ( !this->msgLvl(MSG::FATAL) ) ; else this->msg(MSG::FATAL)
22#define MY_MSG_ERROR if ( !this->msgLvl(MSG::ERROR) ) ; else this->msg(MSG::ERROR)
23#define MY_MSG_WARNING if ( !this->msgLvl(MSG::WARNING) ) ; else this->msg(MSG::WARNING)
24#define MY_MSG_INFO if ( !this->msgLvl(MSG::INFO) ) ; else this->msg(MSG::INFO)
25#define MY_MSG_DEBUG if ( !this->msgLvl(MSG::DEBUG) ) ; else this->msg(MSG::DEBUG)
26#define MY_MSG_VERBOSE if ( !this->msgLvl(MSG::VERBOSE) ) ; else this->msg(MSG::VERBOSE)
27
28
29template<class T>
30T* msg_ptr(T* p) { return p; }
31
32template<class T>
33T* msg_ptr(T& r) { return &r; }
34
35
36#define IDTPM2_MSG_INFO0() \
37 if (!this->msgLvl(MSG::INFO)) ; else this->msg(MSG::INFO)
38
39#define IDTPM2_MSG_INFO1(x) \
40 if (!msg_ptr(x)->msgLvl(MSG::INFO)) ; else msg_ptr(x)->msg(MSG::INFO)
41
42#define FA_MSG_INFO(...) \
43 IDTPM2_MACRO(__VA_ARGS__, IDTPM2_MSG_INFO1, IDTPM2_MSG_INFO0)(__VA_ARGS__)
44
45#endif // TRIGIDR4MONITORING_MSGMACROS_H
46
47
48
49
50
51
52
53
54
T * msg_ptr(T *p)
Definition MsgMacros.h:30
int r
Definition globals.cxx:22