#include <Stream.h>
Inheritance diagram for ers::Stream:
Public Member Functions | |
operator std::string () const | |
operator std::string () const | |
virtual void | print_to (std::ostream &stream) const |
virtual void | print_to (std::ostream &stream) const |
virtual Issue * | receive () |
Receives an issue from the stream. | |
virtual Issue * | receive () |
Receives an issue from the stream. | |
virtual void | send (const Issue *i) |
Sends an issue into the stream. | |
virtual void | send (const Issue *i) |
Sends an issue into the stream. | |
Stream (const Stream &other) | |
Stream () | |
Stream (const Stream &other) | |
Stream () | |
virtual | ~Stream () |
virtual | ~Stream () |
Static Public Attributes | |
const char *const | NULL_STREAM_KEY |
const char *const | NULL_STREAM_KEY = "null" |
Friends | |
class | Issue |
Root issue stream. An ERS stream is a mean to send and receive issues. The two core method to do so are send
and receive
. Certain subclasses of stream might implement only sending, or only receiving. The root stream class implements a null stream, i.e a stream where no issue can be read from and silently discards sent issues.
|
00031 {}
|
|
00032 {}
|
|
00033 {}
|
|
|
|
|
|
|
|
|
|
00035 { 00036 std::ostringstream stream ; 00037 print_to(stream); 00038 return stream.str(); 00039 } // to string
|
|
Reimplemented in ers::FIFOStream, ers::FilterStream, ers::HumanStream, ers::FIFOStream, ers::FilterStream, and ers::HumanStream. |
|
Reimplemented in ers::FIFOStream, ers::FilterStream, ers::HumanStream, ers::FIFOStream, ers::FilterStream, and ers::HumanStream. 00059 { 00060 stream << NULL_STREAM_KEY << ':' ; 00061 } // print_to
|
|
Receives an issue from the stream.
Reimplemented in ers::FIFOStream, and ers::FIFOStream. |
|
Receives an issue from the stream. Reads an isssue on the stream
Reimplemented in ers::FIFOStream, and ers::FIFOStream. 00055 { 00056 return 0 ; 00057 } // receive
|
|
Sends an issue into the stream.
Reimplemented in ers::DefaultStream, ers::FIFOStream, ers::FilterStream, ers::HumanStream, ers::DefaultStream, ers::FIFOStream, ers::FilterStream, and ers::HumanStream. |
|
Sends an issue into the stream. Sends the issue to the stream.
Reimplemented in ers::DefaultStream, ers::FIFOStream, ers::FilterStream, ers::HumanStream, ers::DefaultStream, ers::FIFOStream, ers::FilterStream, and ers::HumanStream. 00046 {
00047 (void) i ;
00048 } // send
|
|
|
|
Key for discard stream |
|
Key for discard stream |