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::reader Class Reference

The simple c++ interface to extract ZIP files. More...

#include <zpp.h>

Public Member Functions

 reader (const std::string &archiveName)
 Open the archive. More...
 
std::vector< std::string > getFilesList ()
 Get list of files in the archive. More...
 
void extractToFolder (const std::string &nameInArchive, const std::string &destFolder)
 Extract one file from the archive to the destination folder. More...
 
void extractToFile (const std::string &nameInArchive, const std::string &destFilename)
 Extract one file from the archive to file, name may be different from the filename in the archive. More...
 
void extractAll (const std::string &destFolder)
 Extract al files to the folder. More...
 
void extractFirstToFile (const std::string &destFilename)
 Extract the first file in the archive to the destination filename. It is useful if you have just one file in the archive. More...
 

Detailed Description

The simple c++ interface to extract ZIP files.

Constructor & Destructor Documentation

zpp::reader::reader ( const std::string &  archiveName)
inline

Open the archive.

hack - waiting for the file to be closed if it was created by fstream. If stream is closed, the fopen still can't open the file immediately. c++ uses fstream, but unzipper uses FILE*, so this hack introduced to resolve the conflict

wait up to 5s

file still locked, need to wait a bit

end of the hack

Member Function Documentation

void zpp::reader::extractAll ( const std::string &  destFolder)
inline

Extract al files to the folder.

void zpp::reader::extractFirstToFile ( const std::string &  destFilename)
inline

Extract the first file in the archive to the destination filename. It is useful if you have just one file in the archive.

Referenced by downloader::queue::add().

void zpp::reader::extractToFile ( const std::string &  nameInArchive,
const std::string &  destFilename 
)
inline

Extract one file from the archive to file, name may be different from the filename in the archive.

void zpp::reader::extractToFolder ( const std::string &  nameInArchive,
const std::string &  destFolder 
)
inline

Extract one file from the archive to the destination folder.

std::vector< std::string > zpp::reader::getFilesList ( )
inline

Get list of files in the archive.


The documentation for this class was generated from the following file: