203#if defined( __GNUC__ )
208 if (
s.isActive() )
s.stream() << manip;
215 if (
s.isActive() )
s.stream() << manip;
222 if (
s.isActive() )
s.stream() << manip;
229 if (
s.isActive() )
s.stream() << manip;
236 if (
s.isActive() )
s.stream() << manip;
247 if ( s.isActive() ) s.stream() << manip;
269 if ( s.isActive() ) s.stream() << arg;
285#if defined( __GNUC__ ) and not defined( __APPLE__ )
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
MsgStream & operator<<(MsgStream &s, const std::smanip< _Tm > &manip)
I/O Manipulator for setfill.
Provide serialization function (output only) for some common STL classes (vectors,...
The IMessage is the interface implemented by the message service.
Definition of the MsgStream class used to transmit messages.
std::streamsize precision(int v)
std::ostringstream m_stream
String MsgStream associated to buffer.
MSG::Level level() const
Retrieve output level.
std::string m_source
Use std::string for source information to be passed to the message service.
std::string m_buffer
Use standard string for information buffering.
void deactivate()
Deactivate MsgStream.
void activate()
Activate MsgStream.
MsgStream & operator<<(MSG::Level level)
Accept MsgStream activation using MsgStreamer operator.
static bool m_countInactive
Flag to state if the inactive messages has to be counted.
IInactiveMessageCounter * m_inactCounter
Pointer to service counting messages prepared but not printed because of wrong level.
std::ios_base::iostate STATE_TYPE
static GAUDI_API bool enableCountInactive(bool value=true)
Enable/disable the count of inactive messages.
bool m_useColors
use colors
static GAUDI_API bool countInactive()
Returns the state of the counting of inactive messages (enabled/disabled).
MSG::Level m_level
Debug level of the message service.
virtual GAUDI_API MsgStream & doOutput()
Output method.
MsgStream(const MsgStream &msg)
Copy constructor.
MsgStream & operator<<(std::ios &(*_f)(std::ios &))
Accept ios modifiers.
GAUDI_API void resetColor()
Reset the colors to defaults.
void clear(STATE_TYPE _i=std::ios_base::failbit)
std::streamsize width(std::streamsize v)
MsgStream & operator<<(std::ostream &(*_f)(std::ostream &))
Accept oMsgStream modifiers.
MsgStream & write(const char *buff, int len)
MSG::Level m_currLevel
Current debug level.
GAUDI_API MsgStream(IMessageSvc *svc, int buffer_length=128)
Standard constructor: Connect to message service for output.
MsgStream & operator<<(long long arg)
MSG::Level currentLevel() const
Retrieve current stream output level.
void setMsgSvc(IMessageSvc *svc)
Update IMessageSvc pointer.
std::streamsize precision() const
bool m_active
Flag set to true if formatting engine is active.
std::ostringstream & stream()
Access string MsgStream.
bool isActive() const
Accessor: is MsgStream active.
virtual GAUDI_API ~MsgStream()=default
Standard destructor.
MsgStream & report(int lvl)
Initialize report of new message: activate if print level is sufficient.
void setLevel(int level)
Update outputlevel.
std::ios_base::fmtflags FLAG_TYPE
Error return code in case ios modification is requested for inactive streams.
void unsetf(FLAG_TYPE _l)
std::streamsize width() const
IOS emulation.
MsgStream & operator<<(MsgStream &(*_f)(MsgStream &))
Accept MsgStream modifiers.
int setf(FLAG_TYPE _f, FLAG_TYPE _m)
GAUDI_API void setColor(MSG::Color col)
Set the text color.
IMessageSvc * m_service
Pointer to message service if buffer has send.
const std::string & buffer() const
Access string buffer.
MsgStream & operator<<(std::ios_base &(*_f)(std::ios_base &))
Accept ios base class modifiers.
Print levels enumeration.
MsgStream & dec(MsgStream &log)
MsgStream & hex(MsgStream &log)