OTest2
A C++ testing framework
Classes | Public Member Functions | List of all members
OTest2::TeeOStream Class Reference

An output stream working as the tee unix utility. More...

#include <teeostream.h>

Inheritance diagram for OTest2::TeeOStream:
Inheritance graph
[legend]
Collaboration diagram for OTest2::TeeOStream:
Collaboration graph
[legend]

Classes

class  Buffer
 

Public Member Functions

 TeeOStream ()
 Ctor - no sinks. More...
 
 TeeOStream (std::initializer_list< std::ostream * > sinks_)
 Ctor - list of sinks. More...
 
virtual ~TeeOStream ()
 Ctor. More...
 
 TeeOStream (const TeeOStream &)=delete
 
TeeOStreamoperator= (const TeeOStream &)=delete
 
void appendSink (std::ostream *sink_)
 Append another sink stream. More...
 

Detailed Description

An output stream working as the tee unix utility.

Definition at line 31 of file teeostream.h.

Constructor & Destructor Documentation

◆ TeeOStream() [1/3]

OTest2::TeeOStream::TeeOStream ( )

Ctor - no sinks.

Definition at line 79 of file teeostream.cpp.

◆ TeeOStream() [2/3]

OTest2::TeeOStream::TeeOStream ( std::initializer_list< std::ostream * >  sinks_)
explicit

Ctor - list of sinks.

Parameters
sinks_The sinks. The ownerships of them is not taken.

Definition at line 84 of file teeostream.cpp.

◆ ~TeeOStream()

OTest2::TeeOStream::~TeeOStream ( )
virtual

Ctor.

Definition at line 90 of file teeostream.cpp.

◆ TeeOStream() [3/3]

OTest2::TeeOStream::TeeOStream ( const TeeOStream )
delete

Member Function Documentation

◆ appendSink()

void OTest2::TeeOStream::appendSink ( std::ostream *  sink_)

Append another sink stream.

Parameters
sink_The sink. The ownership is not taken.

Definition at line 94 of file teeostream.cpp.

◆ operator=()

TeeOStream& OTest2::TeeOStream::operator= ( const TeeOStream )
delete

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