The simple c++ wrapper to create zip archives as simply as possible. Just create object, add items, flush at the end.
More...
#include <zpp.h>
|
void | addFile (const std::string &filename, const std::string &nameInArchive) |
| add the file to archive More...
|
|
void | addString (const std::string &string, const std::string &nameInArchive) |
| add the string to archive More...
|
|
void | addData (void *data, int Length, const std::string &nameInArchive) |
| add the raw data More...
|
|
void | addFolder (const std::string &path) |
| add all files from the folder More...
|
|
void | flush () |
| write the archive. You should not add anything after this command. More...
|
|
bool | successful () |
| returns true if all operations are successful More...
|
|
The simple c++ wrapper to create zip archives as simply as possible. Just create object, add items, flush at the end.
void zpp::writer::addData |
( |
void * |
data, |
|
|
int |
Length, |
|
|
const std::string & |
nameInArchive |
|
) |
| |
|
inline |
void zpp::writer::addFile |
( |
const std::string & |
filename, |
|
|
const std::string & |
nameInArchive |
|
) |
| |
|
inline |
void zpp::writer::addFolder |
( |
const std::string & |
path | ) |
|
|
inline |
add all files from the folder
References addFile().
void zpp::writer::addString |
( |
const std::string & |
string, |
|
|
const std::string & |
nameInArchive |
|
) |
| |
|
inline |
add the string to archive
void zpp::writer::flush |
( |
| ) |
|
|
inline |
write the archive. You should not add anything after this command.
bool zpp::writer::successful |
( |
| ) |
|
|
inline |
returns true if all operations are successful
The documentation for this class was generated from the following file:
- 3d-coat/3D-CoatV4/3D-Coat/jcc/zpp.h