|
Aegis
4.25.D505
|
#include <bzip2.h>
Public Member Functions | |
| virtual | ~output_filter_bzip2 () |
Static Public Member Functions | |
| static pointer | create (const output::pointer &deeper) |
Protected Member Functions | |
| long | ftell_inner (void) const |
| void | write_inner (const void *data, size_t length) |
| nstring | type_name (void) const |
| void | end_of_line_inner (void) |
Private Types | |
| enum | { BUFFER_SIZE = 1 << 14 } |
Private Member Functions | |
| output_filter_bzip2 (const output::pointer &deeper) | |
| void | bzlib_fatal_error (int err) |
| output_filter_bzip2 () | |
| output_filter_bzip2 (const output_filter_bzip2 &) | |
| output_filter_bzip2 & | operator= (const output_filter_bzip2 &) |
Private Attributes | |
| bz_stream | stream |
| char * | buf |
| long | pos |
| bool | bol |
The output_filter_bzip2 class is used to represent an output filter which compresses the data before writing it to the deeper output stream.
| virtual output_filter_bzip2::~output_filter_bzip2 | ( | ) | [virtual] |
The destructor.
| output_filter_bzip2::output_filter_bzip2 | ( | const output::pointer & | deeper | ) | [private] |
The constructor. It is private on purpose, use the create class method instead.
| deeper | the output stream this filter will write its output to. |
| output_filter_bzip2::output_filter_bzip2 | ( | ) | [private] |
The default constructor. Do not use.
| output_filter_bzip2::output_filter_bzip2 | ( | const output_filter_bzip2 & | ) | [private] |
The copy constructor. Do not use.
| void output_filter_bzip2::bzlib_fatal_error | ( | int | err | ) | [private] |
The bzlib_fatal_error method is used to report a fatal error from the bzip2 engine.
| static pointer output_filter_bzip2::create | ( | const output::pointer & | deeper | ) | [static] |
The create class method is used to create new dynamically allocated instances of this class.
| deeper | the output stream this filter will write its output to. |
| void output_filter_bzip2::end_of_line_inner | ( | void | ) | [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.
Reimplemented from output_filter.
| long output_filter_bzip2::ftell_inner | ( | void | ) | const [protected, virtual] |
The ftell_inner method is used to determine the current file position, without taking the buffering into account.
Reimplemented from output_filter.
| output_filter_bzip2& output_filter_bzip2::operator= | ( | const output_filter_bzip2 & | ) | [private] |
The assignment operator. Do not use.
| nstring output_filter_bzip2::type_name | ( | void | ) | const [protected, virtual] |
The type_name method is used to determine the name of this output device or file or type.
Reimplemented from output_filter.
| void output_filter_bzip2::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.
Reimplemented from output_filter.
bool output_filter_bzip2::bol [private] |
char* output_filter_bzip2::buf [private] |
long output_filter_bzip2::pos [private] |
bz_stream output_filter_bzip2::stream [private] |
1.7.6.1