#include <MsgStream.h>
Public Member Functions | |
MsgStreamTC (const std::string &name) | |
MSGTC::Level | level () |
Return message level of stream. | |
void | setLevel (MSGTC::Level lvl) |
Set message level of stream. | |
void | setWidth (unsigned int width) |
MsgStreamTC & | operator<< (MSGTC::Level lvl) |
Output operator for message levels. | |
template<typename T > | |
MsgStreamTC & | operator<< (const T &t) |
Output operator for default types. | |
MsgStreamTC & | operator<< (std::ios &(*_f)(std::ios &)) |
Output operator for stream modifiers. | |
MsgStreamTC & | operator<< (std::ostream &(*_f)(std::ostream &)) |
Output operator to support endl, etc. | |
MsgStreamTC & | operator<< (MsgStreamTC &(*_f)(MsgStreamTC &)) |
Output operator to support endmsg, etc. | |
void | doOutput () |
Print the current message buffer. | |
bool | isActive () |
Is the stream active? | |
void | setName (const std::string &name) |
set the name if you want to change the message stream name |
MsgStreamTC class to be used in DetCommon equivalant 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 environemt ERS 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: