BOSS 7.0.8
BESIII Offline Software System
|
Root/Null issue stream. More...
#include <Stream.h>
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.
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.
|
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::FIFOStream, ers::FilterStream, ers::DefaultStream, and ers::HumanStream.
Definition at line 46 of file Stream.cxx.
Referenced by ers::StreamFactory::dispatch().
|
static |