output_quoted_printable Class Reference

#include <quoted_print.h>

Inheritance diagram for output_quoted_printable:

output

Public Member Functions

virtual ~output_quoted_printable ()

Static Public Member Functions

static pointer create (const output::pointer &deeper, bool allow_international_characters=false)

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

Private Types

enum  { MAX_LINE_LEN = 76 }

Private Member Functions

 output_quoted_printable (const output::pointer &deeper, bool allow_international_characters=false)
void eoln (bool soft)
void eoln_partial ()
void eoln_hard ()
 output_quoted_printable ()
 output_quoted_printable (const output_quoted_printable &)
output_quoted_printableoperator= (const output_quoted_printable &)

Private Attributes

output::pointer deeper
bool allow_international_characters
glyph_t glyph [MAX_LINE_LEN+1]
int pos

Data Structures

struct  glyph_t

Detailed Description

Definition at line 25 of file quoted_print.h.


Member Enumeration Documentation

anonymous enum [private]

Enumerator:
MAX_LINE_LEN 

Definition at line 107 of file quoted_print.h.


Constructor & Destructor Documentation

virtual output_quoted_printable::~output_quoted_printable (  )  [virtual]

The destructor.

output_quoted_printable::output_quoted_printable ( const output::pointer deeper,
bool  allow_international_characters = false 
) [private]

The constructor. it is private on purpose, use the "create"class method instead.

Parameters:
deeper The output stream this filter uses to write its output.
allow_international_characters Whether or not internalional characters are allowed or not.

output_quoted_printable::output_quoted_printable (  )  [private]

The default constructor. Do not use.

output_quoted_printable::output_quoted_printable ( const output_quoted_printable  )  [private]

The copy constructor. Do not use.


Member Function Documentation

static pointer output_quoted_printable::create ( const output::pointer deeper,
bool  allow_international_characters = false 
) [static]

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

Parameters:
deeper The output stream this filter uses to write its output.
allow_international_characters Whether or not internalional characters are allowed or not.

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

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

Implements output.

const char* output_quoted_printable::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_quoted_printable::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_quoted_printable::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_quoted_printable::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.

void output_quoted_printable::flush_inner (  )  [protected, virtual]

The flush_inner method is called by the flush method once all the data has been written. The default implementation does nothing.

Reimplemented from output.

int output_quoted_printable::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_quoted_printable::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.

void output_quoted_printable::eoln ( bool  soft  )  [private]

The eoln method is used to send the contents of the glyph array to the deeper output stream.

Parameters:
soft Either the array got too long (true), or a newline was seen (false).

void output_quoted_printable::eoln_partial (  )  [private]

The newline_partial method is used to output a soft end-of-line when the quoted line length exceeds the MAX_LINE_LEN limit.

void output_quoted_printable::eoln_hard (  )  [private]

The eoln_hard method is used to output a hard end-of-line, when a newline character is seen.

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

The assignment apperator. Do not use.


Field Documentation

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

Definition at line 90 of file quoted_print.h.

The allow_international_characters instance variable is used to remember whether or not internalional characters are allowed (true) or to be quoted as unprintable (false).

Definition at line 97 of file quoted_print.h.

glyph_t output_quoted_printable::glyph[MAX_LINE_LEN+1] [private]

The glyph instance variable is used to remember

Definition at line 113 of file quoted_print.h.

The pos instance variable is used to remember the current output position withing the glyph array.

Definition at line 119 of file quoted_print.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