libzipper 1.0.1
Public Member Functions
zipper::CompressedFile Class Reference

CompressedFile represents an entry within a compressed archive. More...

#include <zipper.hh>

List of all members.

Public Member Functions

virtual ~CompressedFile ()
 CompressedFile dtor.
virtual bool isDecompressSupported () const =0
virtual void decompress (Writer &writer)=0
virtual const std::string & getPath () const =0
virtual zsize_t getCompressedSize () const =0
virtual zsize_t getUncompressedSize () const =0
virtual const timeval & getModificationTime () const =0
 Return the modification time of the original file.

Detailed Description

CompressedFile represents an entry within a compressed archive.

CompressedFile instances are created by Decompressor, and allow selectively extracting the contents of an archive.

Definition at line 471 of file zipper.hh.


Member Function Documentation

virtual void zipper::CompressedFile::decompress ( Writer writer) [pure virtual]

Decompress the file, and store the results via the given writer object.

virtual zsize_t zipper::CompressedFile::getCompressedSize ( ) const [pure virtual]

Return the compressed size of the file

getCompressedSize() will return -1 of the FileSize capability bit of the container is false.

virtual const std::string& zipper::CompressedFile::getPath ( ) const [pure virtual]

Return the file path of the compressed file.

Unix-style path separaters ('/') are returned, even if the archive was created under an alternative OS.

virtual zsize_t zipper::CompressedFile::getUncompressedSize ( ) const [pure virtual]

Return the uncompressed size of the file

The decompress method will pass exactly this number of bytes to the Writer.

getUncompressedSize() will return -1 of the FileSize capability bit of the container is false.

virtual bool zipper::CompressedFile::isDecompressSupported ( ) const [pure virtual]

Return true if decompress is likely to succeed.

isDecompressSupported may return false if libzipper doesn't know how to deal with the compressed data. eg. encrypted files, or ZIP files compressed with non-standard schemes.


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