#include <zipit.h>
|
| Zipit (const std::string &zipFileName) |
| int zipit(string zipFileName); the constructor just initialises some internal values, i.e. More...
|
|
| ~Zipit () |
|
ZipitError | unzipAll (const std::string &zipFilename, const std::string &directory) |
|
ZipitError | zipDirectory (const std::string &directory, const std::string &zipFile, bool overwrite) |
|
int | addToZip (const std::string &fileNameToZip, const std::string &sourceFileNameToZip) |
| int addToZip(string fileNameToZip, bool zipWithFolders); and int addToZip(string fileNameToZip, bool zipWithFolders, vector<string> listOfFiles); both adding file(s) to a zipfile. More...
|
|
int | addToZip (const std::vector< std::string > &listOfFiles, const std::vector< std::string > &sourceListOfFiles) |
|
int | getFromZip (const std::string &inZipFileName, const std::string &whereToStore) |
| an important fearture to add: an ability to spezify an folder, where the files should be stored More...
|
|
int | getFromZip (const std::vector< std::string > &allFileNamesToRead, const std::vector< std::string > &v_whereToStore) |
|
int | unpackWholeZipTo (const std::string &whereToStore) |
|
int | closeZipHandle () |
|
int | closeUnZipHandle () |
|
Definition at line 66 of file zipit.h.
◆ Zipit()
mars::smurf::Zipit::Zipit |
( |
const std::string & |
zipFileName | ) |
|
int zipit(string zipFileName); the constructor just initialises some internal values, i.e.
the name of the zipfile. it does not open an handle to the zipfile. there are spezial methods doing this.
◆ ~Zipit()
mars::smurf::Zipit::~Zipit |
( |
| ) |
|
◆ addToZip() [1/2]
int mars::smurf::Zipit::addToZip |
( |
const std::string & |
fileNameToZip, |
|
|
const std::string & |
sourceFileNameToZip |
|
) |
| |
int addToZip(string fileNameToZip, bool zipWithFolders); and int addToZip(string fileNameToZip, bool zipWithFolders, vector<string> listOfFiles); both adding file(s) to a zipfile.
◆ addToZip() [2/2]
int mars::smurf::Zipit::addToZip |
( |
const std::vector< std::string > & |
listOfFiles, |
|
|
const std::vector< std::string > & |
sourceListOfFiles |
|
) |
| |
◆ closeUnZipHandle()
int mars::smurf::Zipit::closeUnZipHandle |
( |
| ) |
|
◆ closeZipHandle()
int mars::smurf::Zipit::closeZipHandle |
( |
| ) |
|
◆ getFromZip() [1/2]
int mars::smurf::Zipit::getFromZip |
( |
const std::string & |
inZipFileName, |
|
|
const std::string & |
whereToStore |
|
) |
| |
an important fearture to add: an ability to spezify an folder, where the files should be stored
◆ getFromZip() [2/2]
int mars::smurf::Zipit::getFromZip |
( |
const std::vector< std::string > & |
allFileNamesToRead, |
|
|
const std::vector< std::string > & |
v_whereToStore |
|
) |
| |
◆ openUnZipHandle()
int mars::smurf::Zipit::openUnZipHandle |
( |
| ) |
|
|
private |
◆ openZipHandle()
int mars::smurf::Zipit::openZipHandle |
( |
| ) |
|
|
private |
◆ unpackWholeZipTo()
int mars::smurf::Zipit::unpackWholeZipTo |
( |
const std::string & |
whereToStore | ) |
|
◆ unzipAll()
ZipitError mars::smurf::Zipit::unzipAll |
( |
const std::string & |
zipFilename, |
|
|
const std::string & |
directory |
|
) |
| |
◆ zipDirectory()
ZipitError mars::smurf::Zipit::zipDirectory |
( |
const std::string & |
directory, |
|
|
const std::string & |
zipFile, |
|
|
bool |
overwrite |
|
) |
| |
◆ zipError()
void mars::smurf::Zipit::zipError |
( |
ZipitError |
errorNumber | ) |
|
|
private |
until now, this function does nothing, but in future it should be just to generate uniformed errorMessages
Definition at line 256 of file zipit.cpp.
◆ unZipHandle
unzFile mars::smurf::Zipit::unZipHandle |
|
private |
◆ zipFileName
std::string mars::smurf::Zipit::zipFileName |
|
private |
◆ zipHandle
zipFile mars::smurf::Zipit::zipHandle |
|
private |
just a few internal variables.
Definition at line 135 of file zipit.h.
The documentation for this class was generated from the following files:
- /Developer/bob-learning-dev/simulation/mars/smurf_loader/src/zipit.h
- /Developer/bob-learning-dev/simulation/mars/smurf_loader/src/zipit.cpp