output_uuencode Class Reference

#include <uuencode.h>

Inheritance diagram for output_uuencode:

output

Public Member Functions

virtual ~output_uuencode ()

Static Public Member Functions

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

Protected Member Functions

nstring filename () const
const char * type_name () const
long ftell_inner () const
void write_inner (const void *data, size_t length)
void end_of_line_inner ()
int page_width () const
int page_length () const

Private Member Functions

 output_uuencode (const output::pointer &deeper)
 output_uuencode ()
 output_uuencode (const output_uuencode &)
output_uuencodeoperator= (const output_uuencode &)

Private Attributes

output::pointer deeper
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_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 31 of file uuencode.h.


Constructor & Destructor Documentation

virtual output_uuencode::~output_uuencode (  )  [virtual]

The destructor.

output_uuencode::output_uuencode ( const output::pointer deeper  )  [private]

The constructor.

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

output_uuencode::output_uuencode (  )  [private]

The default constructor. Do not use.

output_uuencode::output_uuencode ( const output_uuencode  )  [private]

The copy constructor. Do not use.


Member Function Documentation

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

The constructor.

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

nstring output_uuencode::filename (  )  const [protected, virtual]

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

Implements output.

const char* output_uuencode::type_name (  )  const [protected, virtual]

The type_name method is used to determine the name of this output device or file or type.

Implements output.

long output_uuencode::ftell_inner (  )  const [protected, virtual]

The ftell_inner method is used to determine the current file position, without taking the buffering into account.

Implements output.

void output_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.

Implements output.

void output_uuencode::end_of_line_inner (  )  [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.

int output_uuencode::page_width (  )  const [protected, virtual]

The page_width method is used to obtain the width of the page of the output device.

Reimplemented from output.

int output_uuencode::page_length (  )  const [protected, virtual]

The page_length method is used to obtain the length of the page of the output device.

Reimplemented from output.

output_uuencode& output_uuencode::operator= ( const output_uuencode  )  [private]

The assignment operator. Do not use.


Field Documentation

The deeeper instance variable is used to remember the deeper output stream this filter is to write its output to.

Definition at line 85 of file uuencode.h.

unsigned output_uuencode::residual_value [private]

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 92 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 98 of file uuencode.h.

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

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

Definition at line 104 of file uuencode.h.

int output_uuencode::opos [private]

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 110 of file uuencode.h.

int output_uuencode::ipos [private]

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

Definition at line 116 of file uuencode.h.

long output_uuencode::pos [private]

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

Definition at line 122 of file uuencode.h.

bool output_uuencode::bol [private]

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

Definition at line 128 of file uuencode.h.

bool output_uuencode::begun [private]

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

Definition at line 134 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 140 of file uuencode.h.


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

Generated on Wed Mar 12 23:37:41 2008 for Aegis by  doxygen 1.5.5