#include <compressed.h>
Public Types | |
typedef std::vector< miniXml::ustring >::iterator | iterator |
typedef std::vector< miniXml::ustring >::const_iterator | const_iterator |
typedef std::vector< miniXml::ustring >::reverse_iterator | reverse_iterator |
typedef std::vector< miniXml::ustring >::const_reverse_iterator | const_reverse_iterator |
Public Member Functions | |
virtual | ~Compressed () |
virtual bool | uncompress (const boost::filesystem::path &dest)=0 |
Uncompress the whole archive. | |
const boost::filesystem::path & | getName () |
bool | have (const miniXml::ustring &file) |
Check if a file is in the archive. | |
virtual bool | extract (const miniXml::ustring &file, const boost::filesystem::path &to)=0 |
miniXml::ustring | getSubDir () |
const miniXml::ustring & | getExactName (const miniXml::ustring &file) |
std::vector< miniXml::ustring > | all (const miniXml::ustring &file) |
Get all files matching a file name. | |
iterator | begin () |
iterator | end () |
reverse_iterator | rbegin () |
reverse_iterator | rend () |
const_iterator | begin () const |
const_iterator | end () const |
const_reverse_iterator | rbegin () const |
const_reverse_iterator | rend () const |
iterator | find (const miniXml::ustring &file) |
Find a file in the Compressed object. | |
const_iterator | find (const miniXml::ustring &file) const |
Find a file in the Compressed object. | |
Static Public Member Functions | |
static Compressed * | create (const boost::filesystem::path &file) |
create anew Compressed object | |
Protected Member Functions | |
Compressed () | |
Compressed (const boost::filesystem::path &fileName) | |
virtual void | listFiles ()=0 |
Protected Attributes | |
boost::filesystem::path | file_ |
std::vector< miniXml::ustring > | files_ |
typedef std::vector<miniXml::ustring>::iterator Spm::Util::Compressed::iterator |
typedef std::vector<miniXml::ustring>::const_iterator Spm::Util::Compressed::const_iterator |
typedef std::vector<miniXml::ustring>::reverse_iterator Spm::Util::Compressed::reverse_iterator |
typedef std::vector<miniXml::ustring>::const_reverse_iterator Spm::Util::Compressed::const_reverse_iterator |
Spm::Util::Compressed::Compressed | ( | ) | [inline, protected] |
Spm::Util::Compressed::Compressed | ( | const boost::filesystem::path & | fileName | ) | [protected] |
virtual Spm::Util::Compressed::~Compressed | ( | ) | [inline, virtual] |
virtual void Spm::Util::Compressed::listFiles | ( | ) | [protected, pure virtual] |
static Compressed* Spm::Util::Compressed::create | ( | const boost::filesystem::path & | file | ) | [static] |
create anew Compressed object
file | The Compressed file |
virtual bool Spm::Util::Compressed::uncompress | ( | const boost::filesystem::path & | dest | ) | [pure virtual] |
Uncompress the whole archive.
dest | The directory where The archive will be uncompressed |
const boost::filesystem::path& Spm::Util::Compressed::getName | ( | ) |
bool Spm::Util::Compressed::have | ( | const miniXml::ustring & | file | ) |
Check if a file is in the archive.
file | The file to search |
virtual bool Spm::Util::Compressed::extract | ( | const miniXml::ustring & | file, | |
const boost::filesystem::path & | to | |||
) | [pure virtual] |
file | The file to extract | |
to | Where the file will be extracted |
miniXml::ustring Spm::Util::Compressed::getSubDir | ( | ) |
const miniXml::ustring& Spm::Util::Compressed::getExactName | ( | const miniXml::ustring & | file | ) |
file | The searched file |
std::vector<miniXml::ustring> Spm::Util::Compressed::all | ( | const miniXml::ustring & | file | ) |
Get all files matching a file name.
file | the file name to compare |
iterator Spm::Util::Compressed::begin | ( | ) | [inline] |
iterator Spm::Util::Compressed::end | ( | ) | [inline] |
reverse_iterator Spm::Util::Compressed::rbegin | ( | ) | [inline] |
reverse_iterator Spm::Util::Compressed::rend | ( | ) | [inline] |
const_iterator Spm::Util::Compressed::begin | ( | ) | const [inline] |
const_iterator Spm::Util::Compressed::end | ( | ) | const [inline] |
const_reverse_iterator Spm::Util::Compressed::rbegin | ( | ) | const [inline] |
const_reverse_iterator Spm::Util::Compressed::rend | ( | ) | const [inline] |
iterator Spm::Util::Compressed::find | ( | const miniXml::ustring & | file | ) |
Find a file in the Compressed object.
file | the filename to find |
const_iterator Spm::Util::Compressed::find | ( | const miniXml::ustring & | file | ) | const |
Find a file in the Compressed object.
file | the filename to find |
boost::filesystem::path Spm::Util::Compressed::file_ [protected] |
std::vector<miniXml::ustring> Spm::Util::Compressed::files_ [protected] |