Spm::Util::TarFile Class Reference

Represent a Tar archive. More...

#include <tarfile.h>

Inheritance diagram for Spm::Util::TarFile:

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

Public Member Functions

 TarFile (const boost::filesystem::path &file)
bool uncompress (const boost::filesystem::path &dest)
 Uncompress the whole archive dest The destination of the extracted files.
bool extract (const std::string &file, const boost::filesystem::path &to)
 Extract a single file of the archive.

Detailed Description

Represent a Tar archive.


Constructor & Destructor Documentation

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

Parameters:
file A Tar archive


Member Function Documentation

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

Extract a single file of 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::TarFile::uncompress const boost::filesystem::path &  dest  )  [virtual]
 

Uncompress the whole archive dest The destination of the extracted files.

Returns:
true if the files were successfully extracted, 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