Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

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.

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

Tee Dv::Util::teestream::tee_ [private]
 

Definition at line 56 of file teestream.h.


The documentation for this class was generated from the following file:
dvutil-0.13.15 [30 December, 2004]