Thread-safe streaming utility with settable threshold. More...
#include <Message.hh>
Public Member Functions | |
Message (MESSAGE_LEVEL level=INFO) | |
~Message () throw () | |
Destructor; sends the message to the stream handler. | |
template<class T > | |
std::ostream & | operator<< (const T &t) |
Redirect any stream output to the internal stringstream. | |
std::ostream & | operator<< (std::ostream &(*pf)(std::ostream &)) |
std::ostream & | operator<< (std::ios &(*pf)(std::ios &)) |
std::ostream & | operator<< (std::ios_base &(*pf)(std::ios_base &)) |
std::string | str () |
Get the string used in the message. | |
Private Member Functions | |
Message (const Message &right) | |
Copy operator private. | |
Message & | operator= (const Message &right) |
Assignment operator private. | |
Private Attributes | |
MESSAGE_LEVEL | _level |
The importance of this message. | |
std::ostringstream * | _stream |
Internal stream holder. |
Thread-safe streaming utility with settable threshold.
Definition at line 22 of file Message.hh.
Message::Message | ( | MESSAGE_LEVEL | level = INFO |
) | [inline] |
Default constructor level the importance of this message
Definition at line 26 of file Message.hh.