output_base64 Class Reference

#include <base64.h>

Inheritance diagram for output_base64:

output

Public Member Functions

virtual ~output_base64 ()

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_base64 (const output::pointer &deeper)
 output_base64 ()
 output_base64 (const output_base64 &)
output_base64 operator= (const output_base64 &)

Private Attributes

output::pointer deeper
unsigned int residual_value
int residual_bits
int output_column
long pos
bool bol

Detailed Description

The output_base64 class is used to represent the processing necessary to MIME BASE64 encode an output stream.

Definition at line 29 of file base64.h.


Constructor & Destructor Documentation

virtual output_base64::~output_base64 (  )  [virtual]

The destructor.

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

The constructor. It's private on purpose, use the "create" class method instead.

Parameters:
deeper The deeper output, the place this filter writes the filtered output.
delete_deeper Wherther or not to delete the deeper output in this instance's destructor.

output_base64::output_base64 (  )  [private]

The default constructor. Do not use.

output_base64::output_base64 ( const output_base64  )  [private]

The copy constructor. Do not use.


Member Function Documentation

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

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

Parameters:
deeper The deeper output, the place this filter writes the filtered output.
delete_deeper Wherther or not to delete the deeper output in this instance's destructor.

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

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

Implements output.

const char* output_base64::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_base64::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_base64::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_base64::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_base64::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_base64::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_base64 output_base64::operator= ( const output_base64  )  [private]

The assignment operator. Do not use.


Field Documentation

The deeper instance variable is used to remember the deeper output to which this filter writes its filtered output.

Definition at line 93 of file base64.h.

unsigned int output_base64::residual_value [private]

The residual_value instance variable is used to remember the as-yet-unwritten bits of the value.

Definition at line 99 of file base64.h.

The residual_bits instance variable is used to remember the number of bits held by the residual_value instance variable.

Definition at line 105 of file base64.h.

The output_column instance variable is used to remember what column the output is up to.

Definition at line 111 of file base64.h.

long output_base64::pos [private]

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

Definition at line 116 of file base64.h.

bool output_base64::bol [private]

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

Definition at line 122 of file base64.h.


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

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