| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/io/zipfilecreator.h>

Public Member Functions | |
| VRS_TYPEINFO (ZipFileCreator, SharedObj) | |
| ZipFileCreator (const std::string &zipFileName, bool append=false) | |
| Create a new empty ZIP file. | |
| virtual | ~ZipFileCreator () |
| Closes the ZIP file again. | |
| virtual bool | isValid () const |
| Returns true, if the ZIP file could be created or reopened. | |
| virtual bool | add (const std::string &localFileName, const std::string &fileNameInZipFile=std::string()) |
| Copies the existing file "localFileName" into the ZIP file using the given "fileNameInZipFile". | |
Static Public Member Functions | |
| static void | zipDirectory (const std::string &directory, const std::string &zipFilename) |
| Creates a zipfile names 'zipFilename' that contains everything contained in the dir 'directory'. | |
| VRS::ZipFileCreator::ZipFileCreator | ( | const std::string & | zipFileName, | |
| bool | append = false | |||
| ) |
Create a new empty ZIP file.
| virtual VRS::ZipFileCreator::~ZipFileCreator | ( | ) | [virtual] |
Closes the ZIP file again.
| VRS::ZipFileCreator::VRS_TYPEINFO | ( | ZipFileCreator | , | |
| SharedObj | ||||
| ) |
| virtual bool VRS::ZipFileCreator::isValid | ( | ) | const [virtual] |
Returns true, if the ZIP file could be created or reopened.
| virtual bool VRS::ZipFileCreator::add | ( | const std::string & | localFileName, | |
| const std::string & | fileNameInZipFile = std::string() | |||
| ) | [virtual] |
Copies the existing file "localFileName" into the ZIP file using the given "fileNameInZipFile".
If "fileNameInZipFile" is empty "localFileName" is used instead.
| static void VRS::ZipFileCreator::zipDirectory | ( | const std::string & | directory, | |
| const std::string & | zipFilename | |||
| ) | [static] |
Creates a zipfile names 'zipFilename' that contains everything contained in the dir 'directory'.
The filenames inside the zip file will include the relative pathnames inside 'directory'.