#include <genesis/utils/io/stream_output_target.hpp>
Inherits BaseOutputTarget.
Output target for writing data to a stream.
The stream that is written to is kept by reference in this class. Hence, it has to stay alive for the duration of the data writing process where this class is used.
Definition at line 52 of file stream_output_target.hpp.
Public Member Functions | |
StreamOutputTarget (std::ostream &target) | |
Construct the output target to a string that is modified. More... | |
StreamOutputTarget (StreamOutputTarget &&)=default | |
StreamOutputTarget (StreamOutputTarget const &)=default | |
~StreamOutputTarget () override=default | |
StreamOutputTarget & | operator= (StreamOutputTarget &&)=default |
StreamOutputTarget & | operator= (StreamOutputTarget const &)=default |
Public Member Functions inherited from BaseOutputTarget | |
BaseOutputTarget ()=default | |
BaseOutputTarget (BaseOutputTarget &&)=default | |
BaseOutputTarget (BaseOutputTarget const &)=default | |
virtual | ~BaseOutputTarget () |
std::ostream & | flush () |
Flush output stream buffer. More... | |
template<typename T > | |
BaseOutputTarget & | operator<< (T const &content) |
Output stream operator template that simply forwards to the underlying ostream() object. More... | |
BaseOutputTarget & | operator= (BaseOutputTarget &&)=default |
BaseOutputTarget & | operator= (BaseOutputTarget const &)=default |
std::ostream & | ostream () |
Get the underlying output stream that is used for writing. More... | |
std::string | target_name () const |
Get a name of the output target. This is intended for user output. More... | |
std::string | target_string () const |
Get a string representing the output target. More... | |
|
inlineexplicit |
Construct the output target to a string that is modified.
Definition at line 63 of file stream_output_target.hpp.
|
default |
|
default |
|
overridedefault |
|
default |
|
default |