|
BOSS 8.0.0
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 |
| 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 |
| 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 Issue * | receive () |
| Receives an issue from the stream. | |
| Stream () | |
| Stream (const Stream &other) | |
| operator std::string () const | |
| virtual | ~Stream () |
| virtual Issue * | receive () |
| Receives an issue from the stream. | |
| Stream () | |
| Stream (const Stream &other) | |
| operator std::string () const | |
| virtual | ~Stream () |
| virtual Issue * | receive () |
| Receives an issue from the stream. | |
Static Public Member Functions | |
| static std::string | to_string (const Issue *issue) throw () |
| static std::string | to_string (const Issue *issue) throw () |
| 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 26 of file Event/ers/include/ers/HumanStream.h.
| ers::HumanStream::HumanStream | ( | ) |
Definition at line 46 of file HumanStream.cxx.
Referenced by HumanStream(), and to_string().
| ers::HumanStream::HumanStream | ( | const HumanStream & | other | ) |
Definition at line 47 of file HumanStream.cxx.
| ers::HumanStream::~HumanStream | ( | ) |
Definition at line 48 of file HumanStream.cxx.
| ers::HumanStream::HumanStream | ( | ) |
| ers::HumanStream::HumanStream | ( | const HumanStream & | other | ) |
| ers::HumanStream::~HumanStream | ( | ) |
| ers::HumanStream::HumanStream | ( | ) |
| ers::HumanStream::HumanStream | ( | const HumanStream & | other | ) |
| ers::HumanStream::~HumanStream | ( | ) |
| void ers::HumanStream::clear | ( | ) |
Clears the content of the stream
Definition at line 58 of file HumanStream.cxx.
| void ers::HumanStream::clear | ( | ) |
| void ers::HumanStream::clear | ( | ) |
|
virtual |
|
virtual |
Reimplemented from ers::Stream.
|
virtual |
Reimplemented from ers::Stream.
|
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 64 of file HumanStream.cxx.
Referenced by to_string().
|
virtual |
Sends an issue into the stream.
Sends the issue to the stream.
| i | the issue to send |
Reimplemented from ers::Stream.
|
virtual |
Sends an issue into the stream.
Sends the issue to the stream.
| i | the issue to send |
Reimplemented from ers::Stream.
| std::string ers::HumanStream::to_string | ( | ) |
| std::string ers::HumanStream::to_string | ( | ) |
| std::string ers::HumanStream::to_string | ( | ) |
|
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 32 of file HumanStream.cxx.
Referenced by to_string().
|
static | |||||||||||||
|
static | |||||||||||||
|
static |
Definition at line 32 of file Event/ers/include/ers/HumanStream.h.
Referenced by print_to(), and to_string().
|
protected |
Definition at line 28 of file Event/ers/include/ers/HumanStream.h.
Referenced by clear(), send(), and to_string().