5 #ifndef ASGMESSAGING_MSGSTREAM_H
6 #define ASGMESSAGING_MSGSTREAM_H
16 #ifndef XAOD_STANDALONE
17 # include "GaudiKernel/MsgStream.h"
18 #else // not XAOD_STANDALONE
31 class MsgStream :
public std::ostringstream {
35 MsgStream(
const INamedInterface*
tool = 0 );
37 MsgStream(
const std::string&
name );
39 MsgStream(
void*
msgSvc,
const std::string&
name,
int buffer_length = 128 );
45 MsgStream&
operator<< ( MsgStream& ( *_f )( MsgStream& ) );
47 MsgStream&
operator<< ( std::ostream& ( *_f )( std::ostream& ) );
49 MsgStream&
operator<< ( std::ios& ( *_f )( std::ios& ) );
57 ( * ( std::ostringstream* )
this ) <<
arg;
64 MsgStream& doOutput();
67 static void setSourceWidth(
size_t width );
82 template<
typename T>
void
91 const std::string&
name()
const;
93 void setName(
const std::string&
name );
97 const INamedInterface* m_tool;
109 inline MsgStream&
endmsg( MsgStream&
s ) {
113 template<
typename T>
void MsgStream ::
116 parent.declareProperty (
"OutputLevel", m_lvl,
"output message level");
119 #define endreq endmsg
121 #endif // not XAOD_STANDALONE
122 #endif // ASGMESSAGING_MSGSTREAM_H