output_tee Class Reference

#include <tee.h>

Inheritance diagram for output_tee:

output

Public Member Functions

virtual ~output_tee ()

Static Public Member Functions

static pointer create (const output::pointer &d1, const output::pointer &d2)

Protected Member Functions

nstring filename () const
long ftell_inner () const
void write_inner (const void *data, size_t length)
int page_width () const
int page_length () const
const char * type_name () const
void end_of_line_inner ()
void flush_inner ()

Private Member Functions

 output_tee (const output::pointer &d1, const output::pointer &d2)
 output_tee ()
 output_tee (const output_tee &)
output_teeoperator= (const output_tee &)

Private Attributes

output::pointer d1
bool d1_close
output::pointer d2
bool d2_close

Detailed Description

the output_tee class is used to represent an output filter which writes its output to two places at once.

Definition at line 29 of file tee.h.


Constructor & Destructor Documentation

virtual output_tee::~output_tee (  )  [virtual]

The destructor.

output_tee::output_tee ( const output::pointer d1,
const output::pointer d2 
) [private]

The constructor. It is private on purpose, use the "create" class method instead.

Parameters:
d1 the deeper output stream on which this filter writes to.
d2 the deeper output stream on which this filter writes to.

output_tee::output_tee (  )  [private]

The default constructor. Do not use.

output_tee::output_tee ( const output_tee  )  [private]

The copy constructor. Do not use.


Member Function Documentation

static pointer output_tee::create ( const output::pointer d1,
const output::pointer d2 
) [static]

The create class method is used to create new dynamically allocated instances of this class.

Parameters:
d1 the deeper output stream on which this filter writes to.
d2 the deeper output stream on which this filter writes to.

nstring output_tee::filename (  )  const [protected, virtual]

The filename method is used to obtain the filename of this output.

Implements output.

long output_tee::ftell_inner (  )  const [protected, virtual]

The ftell_inner method is used to determine the current file position, without taking the buffering into account.

Implements output.

void output_tee::write_inner ( const void *  data,
size_t  length 
) [protected, virtual]

The write_inner method is used write data to the output, without taking the buffering into account.

Implements output.

int output_tee::page_width (  )  const [protected, virtual]

The page_width method is used to obtain the width of the page of the output device.

Reimplemented from output.

int output_tee::page_length (  )  const [protected, virtual]

The page_length method is used to obtain the length of the page of the output device.

Reimplemented from output.

const char* output_tee::type_name (  )  const [protected, virtual]

The type_name method is used to determine the name of this output device or file or type.

Implements output.

void output_tee::end_of_line_inner (  )  [protected, virtual]

The end_of_line_inner method is used to ensure that the current output position is at the beginning of a line, without taking the buffering into account.

Implements output.

void output_tee::flush_inner (  )  [protected, virtual]

The flush_inner method is called by the flush method once all the data has been written. The default implementation does nothing.

Reimplemented from output.

output_tee& output_tee::operator= ( const output_tee  )  [private]

The assignment operator. Do not use.


Field Documentation

The d1 instance variable is used to remember the deeper output stream on which this filter writes to.

Definition at line 92 of file tee.h.

bool output_tee::d1_close [private]

The d1_close instance variable is used to remember whether or not the d1 output stream is to be deleted in our destructor.

Definition at line 98 of file tee.h.

The d2 instance variable is used to remember the deeper output stream on which this filter writes to.

Definition at line 104 of file tee.h.

bool output_tee::d2_close [private]

The d2_close instance variable is used to remember whether or not the d2 output stream is to be deleted in our destructor.

Definition at line 110 of file tee.h.


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

Generated on Wed Mar 12 23:37:41 2008 for Aegis by  doxygen 1.5.5