|
Aegis
4.25.D505
|
#include <prefix.h>
Public Member Functions | |
| virtual | ~output_filter_prefix () |
Static Public Member Functions | |
| static pointer | create (const output::pointer &deeper, const char *prefix) |
Protected Member Functions | |
| long | ftell_inner (void) const |
| void | write_inner (const void *data, size_t length) |
| int | page_width (void) const |
| nstring | type_name (void) const |
| void | end_of_line_inner (void) |
Private Member Functions | |
| output_filter_prefix (const output::pointer &deeper, const nstring &prefix) | |
| output_filter_prefix () | |
| output_filter_prefix (const output_filter_prefix &) | |
| output_filter_prefix & | operator= (const output_filter_prefix &) |
Private Attributes | |
| nstring | prefix |
| nstring | prefix0 |
| int | column |
| long | pos |
| int | width |
The output_filter_prefix class is used to represent an output stream filter which adds a prefix to every line of output.
| virtual output_filter_prefix::~output_filter_prefix | ( | ) | [virtual] |
The destructor.
| output_filter_prefix::output_filter_prefix | ( | const output::pointer & | deeper, |
| const nstring & | prefix | ||
| ) | [private] |
The constructor. It is private on purpose, use the "create" class method instead.
| deeper | the deeper output stream on which this filter writes to. |
| prefix | the prefix to be added to each line. |
| output_filter_prefix::output_filter_prefix | ( | ) | [private] |
The default constructor. Do not use.
| output_filter_prefix::output_filter_prefix | ( | const output_filter_prefix & | ) | [private] |
The copy constructor. Do not use.
| static pointer output_filter_prefix::create | ( | const output::pointer & | deeper, |
| const char * | prefix | ||
| ) | [static] |
The create class method is used to create new dynamically allocated instances of this class.
| deeper | the deeper output stream on which this filter writes to. |
| prefix | the prefix to be added to each line. |
| void output_filter_prefix::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.
Reimplemented from output_filter.
| long output_filter_prefix::ftell_inner | ( | void | ) | const [protected, virtual] |
The ftell_inner method is used to determine the current file position, without taking the buffering into account.
Reimplemented from output_filter.
| output_filter_prefix& output_filter_prefix::operator= | ( | const output_filter_prefix & | ) | [private] |
The assignment operator. Do not use.
| int output_filter_prefix::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_filter.
| nstring output_filter_prefix::type_name | ( | void | ) | const [protected, virtual] |
The type_name method is used to determine the name of this output device or file or type.
Reimplemented from output_filter.
| void output_filter_prefix::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.
Reimplemented from output_filter.
int output_filter_prefix::column [private] |
long output_filter_prefix::pos [private] |
nstring output_filter_prefix::prefix [private] |
nstring output_filter_prefix::prefix0 [private] |
int output_filter_prefix::width [private] |
1.7.6.1