Spm::Util::ZipFile Class Reference

Represent a Zip archive. More...

#include <zipfile.h>

Inheritance diagram for Spm::Util::ZipFile:

Spm::Util::Compressed List of all members.

Public Member Functions

 ZipFile (const boost::filesystem::path &file)
bool uncompress (const boost::filesystem::path &dest)
 Uncompress the whole archive.
bool extract (const std::string &file, const boost::filesystem::path &to)
 Extract a single file from the archive.

Detailed Description

Represent a Zip archive.


Constructor & Destructor Documentation

Spm::Util::ZipFile::ZipFile const boost::filesystem::path &  file  ) 
 

Parameters:
file The name of the Zip archive


Member Function Documentation

bool Spm::Util::ZipFile::extract const std::string &  file,
const boost::filesystem::path &  to
[virtual]
 

Extract a single file from the archive.

Parameters:
file The file to extract
to Where to put the extracted file
Returns:
true if the file was successfully extracted, false otherwise

Implements Spm::Util::Compressed.

bool Spm::Util::ZipFile::uncompress const boost::filesystem::path &  dest  )  [virtual]
 

Uncompress the whole archive.

Parameters:
dest Where to uncompress the archive
Returns:
true if the archive is successfully uncompressed, false otherwise

Implements Spm::Util::Compressed.


The documentation for this class was generated from the following file:
Generated on Wed Jul 4 15:27:21 2007 for libSpm by  doxygen 1.4.6