|
BOSS 7.1.3
BESIII Offline Software System
|
Root/Null issue stream. More...
#include <Stream.h>
Inheritance diagram for ers::Stream:Public Member Functions | |
| Stream () | |
| Stream (const Stream &other) | |
| operator std::string () const | |
| virtual | ~Stream () |
| virtual void | send (const Issue *i) |
| Sends an issue into the stream. | |
| virtual Issue * | receive () |
| Receives an issue from the stream. | |
| virtual void | print_to (std::ostream &stream) const |
Static Public Attributes | |
| static const char *const | NULL_STREAM_KEY = "null" |
Friends | |
| class | Issue |
Root/Null issue stream.
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.
| ers::Stream::Stream | ( | ) |
Definition at line 31 of file Stream.cxx.
Referenced by ers::FIFOStream::FIFOStream(), ers::FIFOStream::FIFOStream(), ers::FilterStream::FilterStream(), ers::FilterStream::FilterStream(), ers::FilterStream::FilterStream(), ers::HumanStream::HumanStream(), ers::HumanStream::HumanStream(), and Stream().
| ers::Stream::Stream | ( | const Stream & | other | ) |
Definition at line 32 of file Stream.cxx.
|
virtual |
Definition at line 33 of file Stream.cxx.
| ers::Stream::operator std::string | ( | ) | const |
Definition at line 35 of file Stream.cxx.
|
virtual |
Reimplemented in ers::FIFOStream, ers::FilterStream, and ers::HumanStream.
Definition at line 59 of file Stream.cxx.
Referenced by operator std::string().
|
virtual |
Receives an issue from the stream.
Reads an isssue on the stream
Reimplemented in ers::FIFOStream.
Definition at line 55 of file Stream.cxx.
|
virtual |
Sends an issue into the stream.
Sends the issue to the stream.
| i | the issue to send |
Reimplemented in ers::DefaultStream, ers::FIFOStream, ers::FilterStream, and ers::HumanStream.
Definition at line 46 of file Stream.cxx.
Referenced by ers::StreamFactory::dispatch().
|
friend |
Definition at line 36 of file Stream.h.
Referenced by ers::FIFOStream::FIFOStream(), Issue, ers::FIFOStream::receive(), ers::DefaultStream::send(), ers::FIFOStream::send(), ers::HumanStream::send(), send(), and ers::HumanStream::to_string().
|
static |