#include <quoted_print.h>
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_printable & | operator= (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 |
Definition at line 25 of file quoted_print.h.
anonymous enum [private] |
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] |
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.
static pointer output_quoted_printable::create | ( | const output::pointer & | deeper, | |
bool | allow_international_characters = false | |||
) | [static] |
nstring output_quoted_printable::filename | ( | ) | const [protected, virtual] |
const char* output_quoted_printable::type_name | ( | ) | const [protected, virtual] |
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] |
void output_quoted_printable::end_of_line_inner | ( | ) | [protected, virtual] |
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] |
int output_quoted_printable::page_length | ( | ) | const [protected, virtual] |
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.
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.
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.
bool output_quoted_printable::allow_international_characters [private] |
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.
int output_quoted_printable::pos [private] |
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.