|
Aegis
4.25.D505
|
#include <tee.h>
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 (void) const |
| long | ftell_inner (void) const |
| void | write_inner (const void *data, size_t length) |
| int | page_width (void) const |
| int | page_length (void) const |
| nstring | type_name (void) const |
| void | end_of_line_inner (void) |
| void | flush_inner (void) |
Private Member Functions | |
| output_tee (const output::pointer &d1, const output::pointer &d2) | |
| output_tee () | |
| output_tee (const output_tee &) | |
| output_tee & | operator= (const output_tee &) |
Private Attributes | |
| output::pointer | d1 |
| bool | d1_close |
| output::pointer | d2 |
| bool | d2_close |
the output_tee class is used to represent an output filter which writes its output to two places at once.
| 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.
| 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.
| 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.
| d1 | the deeper output stream on which this filter writes to. |
| d2 | the deeper output stream on which this filter writes to. |
| void output_tee::end_of_line_inner | ( | void | ) | [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.
| nstring output_tee::filename | ( | void | ) | const [protected, virtual] |
The filename method is used to obtain the filename of this output.
Implements output.
| void output_tee::flush_inner | ( | void | ) | [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.
| long output_tee::ftell_inner | ( | void | ) | const [protected, virtual] |
The ftell_inner method is used to determine the current file position, without taking the buffering into account.
Implements output.
| output_tee& output_tee::operator= | ( | const output_tee & | ) | [private] |
The assignment operator. Do not use.
| int output_tee::page_length | ( | void | ) | const [protected, virtual] |
The page_length method is used to obtain the length of the page of the output device.
Reimplemented from output.
| int output_tee::page_width | ( | void | ) | const [protected, virtual] |
The page_width method is used to obtain the width of the page of the output device.
Reimplemented from output.
| nstring output_tee::type_name | ( | void | ) | 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::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.
output::pointer output_tee::d1 [private] |
bool output_tee::d1_close [private] |
output::pointer output_tee::d2 [private] |
bool output_tee::d2_close [private] |
1.7.6.1