3DCoat  3D-COAT 4.9.xx
3DCoat is the one application that has all the tools you need to take your 3D idea from a block of digital clay all the way to a production ready, fully textured organic or hard surface model.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
zpp::writer Class Reference

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>

Public Member Functions

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...
 

Detailed Description

The simple c++ wrapper to create zip archives as simply as possible. Just create object, add items, flush at the end.

Member Function Documentation

void zpp::writer::addData ( void *  data,
int  Length,
const std::string &  nameInArchive 
)
inline

add the raw data

void zpp::writer::addFile ( const std::string &  filename,
const std::string &  nameInArchive 
)
inline

add the file to archive

Referenced by addFolder().

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: