|
Aegis
4.25.D505
|
#include <indent.h>
Public Types | |
| typedef aegis_shared_ptr < output_filter_indent > | ipointer |
Public Member Functions | |
| virtual | ~output_filter_indent () |
| void | indent_more (void) |
| void | indent_less (void) |
Static Public Member Functions | |
| static ipointer | create (const output::pointer &deeper) |
Protected Member Functions | |
| nstring | type_name (void) const |
| long | ftell_inner (void) const |
| void | write_inner (const void *data, size_t length) |
| void | end_of_line_inner (void) |
Private Types | |
| enum | { INDENT = 8 } |
Private Member Functions | |
| output_filter_indent (const output::pointer &deeper) | |
| output_filter_indent () | |
| output_filter_indent (const output_filter_indent &) | |
| output_filter_indent & | operator= (const output_filter_indent &) |
Private Attributes | |
| int | depth |
| int | in_col |
| int | out_col |
| int | continuation_line |
| long | pos |
The output_filter_indent class is used to represent an output stream which automatically indents its C-like input.
anonymous enum [private] |
| virtual output_filter_indent::~output_filter_indent | ( | ) | [virtual] |
The destructor.
| output_filter_indent::output_filter_indent | ( | const output::pointer & | deeper | ) | [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. |
| output_filter_indent::output_filter_indent | ( | ) | [private] |
The default constructor. Do not use.
| output_filter_indent::output_filter_indent | ( | const output_filter_indent & | ) | [private] |
The copy constructor. Do not use.
| static ipointer output_filter_indent::create | ( | const output::pointer & | deeper | ) | [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. |
| void output_filter_indent::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_indent::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.
| void output_filter_indent::indent_less | ( | void | ) |
The indent_less function is used to decrease the indenting to less than the automatically calculated indent.
| void output_filter_indent::indent_more | ( | void | ) |
The indent_more method is used to increase the indenting beyond the automatically calculated indent.
| output_filter_indent& output_filter_indent::operator= | ( | const output_filter_indent & | ) | [private] |
The assignment operator. Do not use.
| nstring output_filter_indent::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_indent::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_indent::continuation_line [private] |
int output_filter_indent::depth [private] |
int output_filter_indent::in_col [private] |
int output_filter_indent::out_col [private] |
long output_filter_indent::pos [private] |
1.7.6.1