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

#include <uuencode.h>

Inheritance diagram for output_filter_uuencode:
output_filter output

Public Member Functions

virtual ~output_filter_uuencode ()

Static Public Member Functions

static pointer create (const output::pointer &deeper)

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_filter_uuencode (const output::pointer &deeper)
 output_filter_uuencode ()
 output_filter_uuencode (const output_filter_uuencode &)
output_filter_uuencodeoperator= (const output_filter_uuencode &)

Private Attributes

unsigned residual_value
int residual_bits
char obuf [64 *4/3]
int opos
int ipos
long pos
bool bol
bool begun
nstring file_name

Detailed Description

The output_filter_uuencode class is used to represent the state of a filter which unix-to-unix encodes the data being written. See uuencode(1) for more information.

Definition at line 29 of file uuencode.h.


Constructor & Destructor Documentation

The destructor.

The constructor.

Parameters:
deeperThe deeper output stream this filter is to write its output to.

The default constructor. Do not use.

The copy constructor. Do not use.


Member Function Documentation

static pointer output_filter_uuencode::create ( const output::pointer deeper) [static]

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

Parameters:
deeperThe deeper output stream this filter is to write its output to.
void output_filter_uuencode::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.

nstring output_filter_uuencode::filename ( void  ) const [protected, virtual]

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

Reimplemented from output_filter.

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

The assignment operator. Do not use.

int output_filter_uuencode::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_filter.

int output_filter_uuencode::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_uuencode::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_uuencode::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.


Field Documentation

The begun instance variable is used to remember whether or not we have written the "begin" line yet.

Definition at line 125 of file uuencode.h.

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

Definition at line 119 of file uuencode.h.

The file_name instance variable is used to remember the name of the input file, with any ".uu*" suffix removed.

Definition at line 131 of file uuencode.h.

The ipos instance variable is used to remember how many input characters have been consumed to date in building the obuf.

Definition at line 107 of file uuencode.h.

char output_filter_uuencode::obuf[64 *4/3] [private]

The obuf instance variable is used to remember the output line being accumulated.

Definition at line 95 of file uuencode.h.

The opos instance variable is used to remember how much of the obuf has been consumed to date, the numer of output characters.

Definition at line 101 of file uuencode.h.

The pos instance variable is used to remember the current output file position.

Definition at line 113 of file uuencode.h.

The residual_bits instance variable is used to remember the number of bits accumulated fo far in the residual_value.

Definition at line 89 of file uuencode.h.

The residual_value instance variable is used to remember the cumulative bits, accumulated 8 bits per inoput characters, depleted at 6 bits per output character.

Definition at line 83 of file uuencode.h.


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