ATLAS Offline Software
|
MsgStreamTC class to be used in TrigConf equivalent to Gaudi's MsgStream. More...
#include <MsgStream.h>
Public Member Functions | |
MsgStreamTC (const std::string &name) | |
MSGTC::Level | level () |
Return message level of stream. More... | |
void | setLevel (MSGTC::Level lvl) |
Set message level of stream. More... | |
void | setWidth (unsigned int width) |
MsgStreamTC & | operator<< (MSGTC::Level lvl) |
Output operator for message levels. More... | |
template<typename T > | |
MsgStreamTC & | operator<< (const T &t) |
Output operator for default types. More... | |
MsgStreamTC & | operator<< (std::ios &(*f)(std::ios &)) |
Output operator for stream modifiers. More... | |
MsgStreamTC & | operator<< (std::ostream &(*f)(std::ostream &)) |
Output operator to support endl, etc. More... | |
MsgStreamTC & | operator<< (MsgStreamTC &(*f)(MsgStreamTC &)) |
Output operator to support endmsg, etc. More... | |
void | doOutput () |
Print the current message buffer. More... | |
bool | isActive () |
Is the stream active? More... | |
void | setName (const std::string &name) |
set the name if you want to change the message stream name More... | |
Private Attributes | |
bool | m_active |
stream active? More... | |
MSGTC::Level | m_level |
stream level More... | |
MSGTC::Level | m_msgLevel |
current message level More... | |
std::string | m_name |
stream name More... | |
unsigned int | m_width { 30 } |
width for printing owner name More... | |
MsgStreamTC class to be used in TrigConf equivalent to Gaudi's MsgStream.
The usage and behavior is identical to the default Gaudi message stream. If the code is run within a Gaudi/Athena environment, the MsgStreamTC will try to print its messages via the Gaudi MessageSvc. This is achieved via weak linking. In a non-Gaudi/Athena environment std::cout will be used. The class can be used directly or better via inheriting from TrigConf::TrigConfMessaging, which is the equivalent of AthMessaging.
Main difference to Gaudi MsgStream:
Definition at line 48 of file Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h.
MsgStreamTC::MsgStreamTC | ( | const std::string & | name | ) |
Definition at line 42 of file Trigger/TrigConfiguration/TrigConfBase/Root/MsgStream.cxx.
void MsgStreamTC::doOutput | ( | ) |
Print the current message buffer.
Definition at line 60 of file Trigger/TrigConfiguration/TrigConfBase/Root/MsgStream.cxx.
|
inline |
Is the stream active?
Definition at line 99 of file Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h.
|
inline |
Return message level of stream.
Definition at line 53 of file Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h.
|
inline |
Output operator for default types.
Definition at line 72 of file Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h.
|
inline |
Output operator to support endmsg, etc.
Definition at line 90 of file Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h.
|
inline |
Output operator for message levels.
Definition at line 64 of file Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h.
|
inline |
Output operator for stream modifiers.
Definition at line 78 of file Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h.
|
inline |
Output operator to support endl, etc.
Definition at line 84 of file Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h.
void MsgStreamTC::setLevel | ( | MSGTC::Level | lvl | ) |
Set message level of stream.
Definition at line 52 of file Trigger/TrigConfiguration/TrigConfBase/Root/MsgStream.cxx.
|
inline |
set the name if you want to change the message stream name
Definition at line 102 of file Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h.
|
inline |
Definition at line 59 of file Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h.
|
private |
stream active?
Definition at line 105 of file Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h.
|
private |
stream level
Definition at line 106 of file Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h.
|
private |
current message level
Definition at line 107 of file Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h.
|
private |
stream name
Definition at line 108 of file Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h.
|
private |
width for printing owner name
Definition at line 109 of file Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h.