|
IGSTK
|
Class MultipleOutput allows writing simultaneously to multiple streams. More...
#include <igstkMultipleOutput.h>
Public Types | |
| typedef std::ostream | StreamType |
Public Member Functions | |
| MultipleOutput () | |
| Constructor. | |
| ~MultipleOutput () | |
| Destructor. | |
| void | AddOutputStream (StreamType &output) |
| Register a additional output stream into the list of ostreams to write to. | |
| void | Flush () |
| Broadcast a flush operation to all the output streams. | |
| template<class T > | |
| MultipleOutput & | operator<< (T tt) |
| Operator that will receive different input types and will forward them to the multiple outputs. | |
Class MultipleOutput allows writing simultaneously to multiple streams.
Note that the class derives from std::streambuf and contains a std::set<> of std::ostream.
Definition at line 34 of file igstkMultipleOutput.h.
| typedef std::ostream igstk::MultipleOutput::StreamType |
Definition at line 39 of file igstkMultipleOutput.h.
| igstk::MultipleOutput::MultipleOutput | ( | ) |
Constructor.
| igstk::MultipleOutput::~MultipleOutput | ( | ) |
Destructor.
| void igstk::MultipleOutput::AddOutputStream | ( | StreamType & | output | ) |
Register a additional output stream into the list of ostreams to write to.
The messages will be sent to the streams in the same order that the streams have been added here.
| void igstk::MultipleOutput::Flush | ( | ) |
Broadcast a flush operation to all the output streams.
| MultipleOutput& igstk::MultipleOutput::operator<< | ( | T | tt | ) | [inline] |
Operator that will receive different input types and will forward them to the multiple outputs.
Definition at line 63 of file igstkMultipleOutput.h.
1.7.4