IGSTK
Public Types | Public Member Functions
igstk::MultipleOutput Class Reference

Class MultipleOutput allows writing simultaneously to multiple streams. More...

#include <igstkMultipleOutput.h>

List of all members.

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 >
MultipleOutputoperator<< (T tt)
 Operator that will receive different input types and will forward them to the multiple outputs.

Detailed Description

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.


Member Typedef Documentation

typedef std::ostream igstk::MultipleOutput::StreamType

Definition at line 39 of file igstkMultipleOutput.h.


Constructor & Destructor Documentation

igstk::MultipleOutput::MultipleOutput ( )

Constructor.

igstk::MultipleOutput::~MultipleOutput ( )

Destructor.


Member Function Documentation

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.

template<class T >
MultipleOutput& igstk::MultipleOutput::operator<< ( 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.


The documentation for this class was generated from the following file: