output_gzip Class Reference

#include <gzip.h>

Inheritance diagram for output_gzip:

output

Public Member Functions

virtual ~output_gzip ()

Static Public Member Functions

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

Protected Member Functions

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

Private Member Functions

 output_gzip (const output::pointer &deeper)
void drop_dead (int err)
 output_gzip ()
 output_gzip (const output_gzip &)
output_gzipoperator= (const output_gzip &)

Private Attributes

output::pointer deeper
z_stream stream
Byte * outbuf
uLong crc
long pos
bool bol

Detailed Description

The output_gzip class is used to represent an output filter which compresses the data before writing it to the deeper output stream.

Definition at line 31 of file gzip.h.


Constructor & Destructor Documentation

virtual output_gzip::~output_gzip (  )  [virtual]

The destructor.

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

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

Parameters:
deeper the output stream this filter will write its output to.

output_gzip::output_gzip (  )  [private]

The default constructor. Do not use.

output_gzip::output_gzip ( const output_gzip  )  [private]

The copy constructor. Do not use.


Member Function Documentation

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

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

Parameters:
deeper the output stream this filter will write its output to.

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

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

Implements output.

long output_gzip::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_gzip::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.

int output_gzip::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_gzip::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.

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

void output_gzip::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_gzip::drop_dead ( int  err  )  [private]

The drop_dead method is used to report a fatal error from the gzip engine.

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

The assignment operator. Do not use.


Field Documentation

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

Definition at line 87 of file gzip.h.

z_stream output_gzip::stream [private]

The stream instance variable is used to remember somthign that the gzip code wants to remember. It is opaque to us.

Definition at line 93 of file gzip.h.

Byte* output_gzip::outbuf [private]

The outbuf instance variable is used to remember the buffered output data.

Definition at line 99 of file gzip.h.

uLong output_gzip::crc [private]

The crc instance variable is used to remember the crc32 of the uncompressed data.

Definition at line 105 of file gzip.h.

long output_gzip::pos [private]

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

Definition at line 111 of file gzip.h.

bool output_gzip::bol [private]

The bol instance variable is used to remember whether or not the output is positioned at the beginning of a lone.

Definition at line 117 of file gzip.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