output_tee Class Reference
#include <tee.h>
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 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
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.
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.
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.
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: