#include <GaudiKernel/MsgStream.h>
Public Types | |
| enum | Error { MSGSTREAM_ERROR = -1 } |
| Error return code in case ios modification is requested for inactive streams. More... | |
Public Methods | |
| MsgStream (IMessageSvc* svc, int buffer_length=128) | |
| Standard constructor: Connect to message service for output. More... | |
| MsgStream (IMessageSvc* svc, const std::string& source, int buffer_length=128) | |
| Standard constructor: Connect to message service for output. More... | |
| MsgStream (const MsgStream& msg) | |
| Copy constructor. More... | |
| virtual | ~MsgStream () |
| Standard destructor. More... | |
| MsgStream& | report (int lvl) |
| Initialize report of new message: activate if print level is sufficient. More... | |
| virtual MsgStream& | doOutput () |
| Output method. More... | |
| const std::string& | buffer () const |
| Access string buffer. More... | |
| std::ostrstream& | stream () |
| Access string MsgStream. More... | |
| void | setLevel (int level) |
| Update outputlevel. More... | |
| MSG::Level | level () |
| Retrieve output level. More... | |
| void | activate () |
| Activate MsgStream. More... | |
| void | deactivate () |
| Deactivate MsgStream. More... | |
| bool | isActive () const |
| Accessor: is MsgStream active. More... | |
| MsgStream& | flush () |
| MsgStream& | write (const char* buff,int len) |
| MsgStream& | operator<< (MsgStream& (*_f)(MsgStream&)) |
| Accept MsgStream modifiers. More... | |
| MsgStream& | operator<< (std::ostream& (*_f)(std::ostream&)) |
| Accept oMsgStream modifiers. More... | |
| MsgStream& | operator<< (std::ios& (*_f)(std::ios&)) |
| Accept ios modifiers. More... | |
| MsgStream& | operator<< (MSG::Level level) |
| Accept MsgStream activation using MsgStreamer operator. More... | |
| MsgStream& | operator<< (const char* arg) |
| MsgStream& | operator<< (const unsigned char arg) |
| MsgStream& | operator<< (const signed char arg) |
| MsgStream& | operator<< (char arg) |
| MsgStream& | operator<< (short arg) |
| MsgStream& | operator<< (unsigned short arg) |
| MsgStream& | operator<< (int arg) |
| MsgStream& | operator<< (unsigned int arg) |
| MsgStream& | operator<< (long arg) |
| MsgStream& | operator<< (unsigned long arg) |
| MsgStream& | operator<< (longlong arg) |
| MsgStream& | operator<< (float arg) |
| MsgStream& | operator<< (double arg) |
| MsgStream& | operator<< (long double arg) |
| MsgStream& | operator<< (bool arg) |
| MsgStream& | operator<< (const void* arg) |
| MsgStream& | operator<< (const std::string& arg) |
| long | flags () const |
| long | flags (long v) |
| long | setf (long v) |
| int | width () const |
| int | width (int v) |
| char | fill () const |
| char | fill (char v) |
| int | precision () const |
| int | precision (int v) |
| int | rdstate () const |
| int | good () const |
| int | eof () const |
| int | bad () const |
| long | setf (long _f,long _m) |
| void | unsetf (long _l) |
| void | clear (int _i = 0) |
Protected Attributes | |
| IMessageSvc* | m_service |
| Pointer to message service if buffer has send. More... | |
| std::string | m_buffer |
| Use standard string for information buffering. More... | |
| std::string | m_source |
| Use standard string for source information to be passed to the message service. More... | |
| std::ostrstream | m_stream |
| String MsgStream associated to buffer. More... | |
| bool | m_active |
| Flag set to true if formatting engine is active. More... | |
| MSG::Level | m_level |
| Debug level of the message service. More... | |
| MSG::Level | m_currLevel |
| Current debug level. More... | |
This class is intended to ease the use of error logging to the message service
@author: M.Frank
Definition at line 19 of file MsgStream.h.
|
|
Error return code in case ios modification is requested for inactive streams.
Definition at line 22 of file MsgStream.h. |
|
|
Standard constructor: Connect to message service for output.
Definition at line 27 of file MsgStream.cpp. |
|
|
Standard constructor: Connect to message service for output.
Definition at line 35 of file MsgStream.cpp. |
|
|
Copy constructor.
Definition at line 46 of file MsgStream.h. |
|
|
Standard destructor.
Definition at line 43 of file MsgStream.cpp. |
|
|
Activate MsgStream.
Definition at line 81 of file MsgStream.h. Referenced by report(). |
|
|
Definition at line 153 of file MsgStream.h. |
|
|
Access string buffer.
Definition at line 64 of file MsgStream.h. |
|
|
Definition at line 160 of file MsgStream.h. |
|
|
Deactivate MsgStream.
Definition at line 85 of file MsgStream.h. Referenced by report(). |
|
|
Output method.
Definition at line 46 of file MsgStream.cpp. Referenced by endreq(). |
|
|
Definition at line 152 of file MsgStream.h. |
|
|
Definition at line 147 of file MsgStream.h. |
|
|
Definition at line 146 of file MsgStream.h. |
|
|
Definition at line 142 of file MsgStream.h. |
|
|
Definition at line 141 of file MsgStream.h. |
|
|
Definition at line 93 of file MsgStream.h. |
|
|
Definition at line 151 of file MsgStream.h. |
|
|
Accessor: is MsgStream active.
Definition at line 89 of file MsgStream.h. Referenced by bad(), clear(), doOutput(), eof(), fill(), flags(), flush(), good(), operator<<(), precision(), rdstate(), setf(), unsetf(), width(), and write(). |
|
|
Retrieve output level.
Definition at line 77 of file MsgStream.h. Referenced by report(). |
|
|
Definition at line 139 of file MsgStream.h. |
|
|
Definition at line 138 of file MsgStream.h. |
|
|
Definition at line 137 of file MsgStream.h. |
|
|
Definition at line 136 of file MsgStream.h. |
|
|
Definition at line 135 of file MsgStream.h. |
|
|
Definition at line 134 of file MsgStream.h. |
|
|
Definition at line 131 of file MsgStream.h. |
|
|
Definition at line 130 of file MsgStream.h. |
|
|
Definition at line 129 of file MsgStream.h. |
|
|
Definition at line 128 of file MsgStream.h. |
|
|
Definition at line 127 of file MsgStream.h. |
|
|
Definition at line 126 of file MsgStream.h. |
|
|
Definition at line 125 of file MsgStream.h. |
|
|
Definition at line 124 of file MsgStream.h. |
|
|
Definition at line 123 of file MsgStream.h. |
|
|
Definition at line 122 of file MsgStream.h. |
|
|
Definition at line 121 of file MsgStream.h. |
|
|
Accept MsgStream activation using MsgStreamer operator.
Definition at line 118 of file MsgStream.h. |
|
|
Accept ios modifiers.
Definition at line 113 of file MsgStream.h. |
|
|
Accept oMsgStream modifiers.
Definition at line 108 of file MsgStream.h. |
|
|
Accept MsgStream modifiers.
Definition at line 103 of file MsgStream.h. |
|
|
Definition at line 149 of file MsgStream.h. |
|
|
Definition at line 148 of file MsgStream.h. |
|
|
Definition at line 150 of file MsgStream.h. |
|
|
Initialize report of new message: activate if print level is sufficient.
Definition at line 56 of file MsgStream.h. Referenced by operator<<(). |
|
|
Update outputlevel.
Definition at line 72 of file MsgStream.h. Referenced by MsgStream(). |
|
|
Definition at line 154 of file MsgStream.h. |
|
|
Definition at line 143 of file MsgStream.h. |
|
|
Access string MsgStream.
Definition at line 68 of file MsgStream.h. |
|
|
Definition at line 157 of file MsgStream.h. |
|
|
Definition at line 145 of file MsgStream.h. |
|
|
Definition at line 144 of file MsgStream.h. |
|
|
Definition at line 98 of file MsgStream.h. |
|
|
Flag set to true if formatting engine is active.
Definition at line 35 of file MsgStream.h. |
|
|
Use standard string for information buffering.
Definition at line 29 of file MsgStream.h. |
|
|
Current debug level.
Definition at line 39 of file MsgStream.h. |
|
|
Debug level of the message service.
Definition at line 37 of file MsgStream.h. |
|
|
Pointer to message service if buffer has send.
Definition at line 27 of file MsgStream.h. |
|
|
Use standard string for source information to be passed to the message service.
Definition at line 31 of file MsgStream.h. |
|
|
String MsgStream associated to buffer.
Definition at line 33 of file MsgStream.h. |
1.2.3 written by Dimitri van Heesch,
© 1997-2000