21 #ifndef ZIPIT_H_INCLUDED 22 #define ZIPIT_H_INCLUDED 29 #include <minizip/unzip.h> 30 #include <minizip/zip.h> 81 const std::string &directory);
83 const std::string &zipFile,
91 int addToZip(
const std::string &fileNameToZip ,
92 const std::string &sourceFileNameToZip);
93 int addToZip(
const std::vector<std::string> &listOfFiles,
94 const std::vector<std::string> &sourceListOfFiles);
101 int getFromZip(
const std::string &inZipFileName,
102 const std::string &whereToStore);
103 int getFromZip(
const std::vector<std::string> &allFileNamesToRead,
104 const std::vector<std::string> &v_whereToStore);
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.
ZipitError unzipAll(const std::string &zipFilename, const std::string &directory)
int openZipHandle()
int openZipHandle(); int closeZipHandle(); int openUnZipHandle(); int closeUnZipHandle(); ...
Zipit(const std::string &zipFileName)
int zipit(string zipFileName); the constructor just initialises some internal values, i.e.
Copyright 2012, DFKI GmbH Robotics Innovation Center.
ZipitError zipDirectory(const std::string &directory, const std::string &zipFile, bool overwrite)
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 ...
zipFile zipHandle
just a few internal variables.
void zipError(ZipitError errorNumber)
until now, this function does nothing, but in future it should be just to generate uniformed errorMes...
int unpackWholeZipTo(const std::string &whereToStore)