BOSS 6.6.4.p01
BESIII Offline Software System
|
Single line, human readable format stream. More...
#include <HumanStream.h>
Public Member Functions | |
HumanStream () | |
HumanStream (const HumanStream &other) | |
~HumanStream () | |
std::string | to_string () |
void | clear () |
virtual void | send (const Issue *ptr) |
Sends an issue into the stream. | |
virtual void | print_to (std::ostream &stream) const |
Public Member Functions inherited from ers::Stream | |
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 Member Functions | |
static std::string | to_string (const Issue *issue) throw () |
Static Public Attributes | |
static const char *const | KEY = "human" |
Static Public Attributes inherited from ers::Stream | |
static const char *const | NULL_STREAM_KEY = "null" |
Protected Attributes | |
std::ostringstream | m_out_stream |
Single line, human readable format stream.
This class streams an issue into an human readable string. It is uses by the issue class to display itself. This stream can be specified for other uses, but the user is then responsible for reading data from the stream and clearing it.
Definition at line 27 of file HumanStream.h.
ers::HumanStream::HumanStream | ( | ) |
Definition at line 47 of file HumanStream.cxx.
ers::HumanStream::HumanStream | ( | const HumanStream & | other | ) |
Definition at line 48 of file HumanStream.cxx.
ers::HumanStream::~HumanStream | ( | ) |
Definition at line 49 of file HumanStream.cxx.
void ers::HumanStream::clear | ( | ) |
|
virtual |
|
virtual |
Sends an issue into the stream.
Sends the issue to the stream.
i | the issue to send |
Reimplemented from ers::Stream.
Definition at line 69 of file HumanStream.cxx.
Referenced by to_string().
std::string ers::HumanStream::to_string | ( | ) |
Definition at line 54 of file HumanStream.cxx.
Referenced by ers::Issue::human_description().
|
static |
Dumps the content of an issue into a string This class is used internally by the Issue class to produce then description field.
issue_ptr | the Issue to serialise |
Definition at line 35 of file HumanStream.cxx.
Referenced by to_string().
|
static |
Definition at line 32 of file HumanStream.h.
Referenced by print_to().
|
protected |
Definition at line 29 of file HumanStream.h.