BOSS 7.0.3
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 |
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.
Definition at line 35 of file Event/ers/ers-00-00-03/ers/Stream.h.
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::Stream | ( | ) |
ers::Stream::Stream | ( | const Stream & | other | ) |
|
virtual |
ers::Stream::operator std::string | ( | ) | const |
Definition at line 35 of file Stream.cxx.
ers::Stream::operator std::string | ( | ) | const |
|
virtual |
Reimplemented in ers::FIFOStream, ers::FilterStream, ers::HumanStream, ers::FIFOStream, ers::FilterStream, and ers::HumanStream.
Definition at line 59 of file Stream.cxx.
|
virtual |
Reimplemented in ers::FIFOStream, ers::FilterStream, ers::HumanStream, ers::FIFOStream, ers::FilterStream, and ers::HumanStream.
|
virtual |
Receives an issue from the stream.
Reads an isssue on the stream
Reimplemented in ers::FIFOStream, and ers::FIFOStream.
Definition at line 55 of file Stream.cxx.
|
virtual |
Receives an issue from the stream.
Reimplemented in ers::FIFOStream, and ers::FIFOStream.
|
virtual |
Sends an issue into the stream.
Sends the issue to the stream.
i | the issue to send |
Reimplemented in ers::FIFOStream, ers::FIFOStream, ers::FilterStream, ers::FilterStream, ers::DefaultStream, ers::HumanStream, ers::DefaultStream, and ers::HumanStream.
Definition at line 46 of file Stream.cxx.
Referenced by ers::StreamFactory::dispatch().
|
virtual |
Sends an issue into the stream.
Reimplemented in ers::FIFOStream, ers::FIFOStream, ers::FilterStream, ers::FilterStream, ers::DefaultStream, ers::HumanStream, ers::DefaultStream, and ers::HumanStream.
|
friend |
Definition at line 36 of file Event/ers/ers-00-00-03/ers/Stream.h.
|
static |
Key for discard stream
Definition at line 39 of file Event/ers/ers-00-00-03/ers/Stream.h.