Dv::Util::teestream Class Reference

A teestream object extends the unix ``tee'' command. More...

#include <teestream.h>

Collaboration diagram for Dv::Util::teestream:
Collaboration graph
[legend]

List of all members.

Classes

class  Tee
 Implements Filter interface for filterstreambuf. More...

Public Member Functions

 teestream (std::ostream &os1, std::ostream &os2)
 Special constructor for common case of 2 ostreams.
 teestream (const std::list< std::ostream * > &streams)
 General constructor takes a list of ostream pointers.

Private Attributes

Tee tee_

Detailed Description

A teestream object extends the unix ``tee'' command.

It is derived from ostream and initialized with a list of ostream pointers. Anything written to a teestream is written to all the underlying ostreams.

Definition at line 24 of file teestream.h.


Constructor & Destructor Documentation

Dv::Util::teestream::teestream ( std::ostream &  os1,
std::ostream &  os2 
)

Special constructor for common case of 2 ostreams.

Parameters:
os1 first ostream to which output to teestream will be copied
os2 second ostream to which output to teestream will be copied
Dv::Util::teestream::teestream ( const std::list< std::ostream * > &  streams  ) 

General constructor takes a list of ostream pointers.

Parameters:
streams list of ostreams to which output to teestream will be copied

Member Data Documentation

Definition at line 56 of file teestream.h.


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

dvutil-1.0.10 [ 5 December, 2009]