Aegis  4.25.D505
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
output_stdout Class Reference

#include <stdout.h>

Inheritance diagram for output_stdout:
output

Public Member Functions

virtual ~output_stdout ()

Static Public Member Functions

static pointer create (void)

Protected Member Functions

nstring filename (void) const
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)
int page_width (void) const
int page_length (void) const

Private Member Functions

 output_stdout ()
 output_stdout (const output_stdout &)
output_stdoutoperator= (const output_stdout &)

Private Attributes

bool bol
long pos

Detailed Description

The output_stdout class is used to repersent the state of an output stream being written to the standard output.

Definition at line 28 of file stdout.h.


Constructor & Destructor Documentation

virtual output_stdout::~output_stdout ( ) [virtual]

The destructor.

The default constructor. It is private on purpose, use the create class method instead.

The copy constructor. Do not use.


Member Function Documentation

static pointer output_stdout::create ( void  ) [static]

The create class method is used to create new dynamically allocated instances of this class.

void output_stdout::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_stdout::filename ( void  ) const [protected, virtual]

The filename method is used to obtain the filename of this output.

Implements output.

long output_stdout::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_stdout& output_stdout::operator= ( const output_stdout ) [private]

The assignment operator. Do not use.

int output_stdout::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_stdout::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_stdout::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_stdout::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.


Field Documentation

bool output_stdout::bol [private]

The bol instance variable is used to remember whether or not we are at the beginning of a line.

Definition at line 78 of file stdout.h.

long output_stdout::pos [private]

The pos instance variable is used to remember our relative position in the standard output stream.

Definition at line 84 of file stdout.h.


The documentation for this class was generated from the following file: