|
nis-util
1.0.D108
|
#include <output.h>
Public Types | |
| typedef boost::shared_ptr< output > | pointer |
Public Member Functions | |
| virtual | ~output () |
| virtual void | put (char c)=0 |
| void | put (const char *text) |
| void | put (const rcstring &text) |
| void | indent_to (int column) |
| bool | fits_on_current_line (int width) const |
| virtual int | get_column (void) const =0 |
| virtual int | get_line_width (void) const =0 |
Protected Member Functions | |
| output () | |
Private Member Functions | |
| output (const output &rhs) | |
| output & | operator= (const output &rhs) |
The output abstract base class is used to represent the processing required to write some output. It could be to a simple file, or it could be filtered in various ways.
| typedef boost::shared_ptr<output> output::pointer |
Reimplemented in output_string.
| output::~output | ( | ) | [virtual] |
| output::output | ( | ) | [protected] |
| output::output | ( | const output & | rhs | ) | [private] |
The copy constructor. Do not use.
| rhs | The right hand side of the initialization. |
| bool output::fits_on_current_line | ( | int | width | ) | const |
| virtual int output::get_column | ( | void | ) | const [pure virtual] |
The get_column method is used to obtain the current output column position.
Implemented in output_prefix, output_file, and output_string.
| virtual int output::get_line_width | ( | void | ) | const [pure virtual] |
The get_line_width method is used to obtain the width of lines in the output. This may vary depending on what filtering is present.
Implemented in output_prefix, output_file, and output_string.
| void output::indent_to | ( | int | column | ) |
The assignment operator. Do not use.
| rhs | The right hand side of the assignment. |
| virtual void output::put | ( | char | c | ) | [pure virtual] |
The put method is used to write a character to the output file. Each derived class is required to override this with their own implementation.
| c | The character to be written. |
Implemented in output_prefix, output_string, and output_file.
| void output::put | ( | const char * | text | ) |
| void output::put | ( | const rcstring & | text | ) |
1.7.6.1