libzipper 1.0.1
Public Member Functions
zipper::Compressor Class Reference

Compressor creates a compressed archive from the supplied Reader objects. data. More...

#include <zipper.hh>

List of all members.

Public Member Functions

 Compressor (ContainerFormat format, const WriterPtr &writer)
 Compressor (ContainerFormat format, Writer &writer)
 ~Compressor ()
 Compressor dtor.
void addFile (const Reader &reader)

Detailed Description

Compressor creates a compressed archive from the supplied Reader objects. data.

Definition at line 552 of file zipper.hh.


Constructor & Destructor Documentation

zipper::Compressor::Compressor ( ContainerFormat  format,
const WriterPtr writer 
)

Create a Compressor to output the given compressed archived format to writer.

Parameters:
writerdestination of the compressed data
formatdetermines the output archive file type to create.
zipper::Compressor::Compressor ( ContainerFormat  format,
Writer writer 
)

Create a Compressor to output the given compressed archived format to writer.

Parameters:
writeris the destination of the compressed data. writer must remain in scope for the lifetime of the Compressor.
formatdetermines the output archive file type to create.
zipper::Compressor::~Compressor ( )

Compressor dtor.

Additional data may be passed to writer (given in ctor) to close the compressed archive.


Member Function Documentation

void zipper::Compressor::addFile ( const Reader reader)

Compress the data given by reader, and add it to the compressed archive.


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