Files Classes Functions Hierarchy
#include <message.h>
Public Member Functions | |
| void | globalset () |
| This instance becomes the global message state. | |
| virtual ostream & | operator() ()=0 |
| Write to the stream. | |
| virtual | ~message () |
| Cleanup. | |
| virtual void | pre () |
| Optionally pre process before << operator. | |
| virtual void | post () |
| Optionally post process before << operator. | |
| template<typename T > | |
| message & | operator<< (T &x) |
| Write with pre and post processing. | |
Static Public Attributes | |
| static message * | global = 0 |
| The current global message stream. | |
Support for singleton.
Two ways to use with operator << - either through operator () with ostream or cast to base (message&) - which does have template issues.
http://www.velocityreviews.com/forums/t279958-stdendl-type-unknown.html
(message&)err << x << endl<char, char_traits<char> >;
Definition at line 32 of file message.h.
| virtual message::~message | ( | ) | [inline, virtual] |
| void message::globalset | ( | ) | [inline] |
| virtual ostream& message::operator() | ( | ) | [pure virtual] |
| virtual void message::post | ( | ) | [inline, virtual] |
Optionally post process before << operator.
Reimplemented in messagelist.
Definition at line 52 of file message.h.
Referenced by operator<<().
| virtual void message::pre | ( | ) | [inline, virtual] |
Optionally pre process before << operator.
Reimplemented in messagelist.
Definition at line 50 of file message.h.
Referenced by operator<<().
message * message::global = 0 [static] |
The current global message stream.
Definition at line 37 of file message.h.
Referenced by globalset().
1.5.8