![]() |
OpendTect 8.0
|
Handles zipping and unzipping of files. More...
#include <ziphandler.h>
Public Types | |
| enum | CompLevel { NoComp =0 , SuperFast =1 , Fast =3 , Normal =6 , Maximum =9 } |
Public Member Functions | |
| ZipHandler () | |
| ~ZipHandler () | |
| uiString | errMsg () const |
| bool | getArchiveInfo (const char *, ObjectSet< ZipFileInfo > &) |
Private Member Functions | |
| void | closeInputStream () |
| void | closeOutputStream () |
| bool | compressNextFile (ZipFileInfo &) |
| bool | doZCompress (ZipFileInfo &) |
| bool | doZUnCompress (const ZipFileInfo &) |
| bool | extractNextFile (ZipFileInfo &) |
| const BufferStringSet & | getAllFileNames () |
| od_int64 | getCumulativeFileCount () const |
| int | getCumulativeFileCount (int) const |
| bool | getFileList (const char *, BufferStringSet &) |
| od_int64 | getNrDoneSize () const |
| od_int64 | getTotalSize () const |
| BufferString | getZipLocalFileName (const char *fnm) const |
| bool | initAppend (const char *srcfnm, const char *basepath, const char *outfnm) |
| bool | initMakeZip (const BufferStringSet &fnms, const char *basepath, const char *outfnm) |
| bool | initUnZipArchive (const char *zipnm, const char *dest, ObjectSet< ZipFileInfo > &) |
| bool | openStreamToWrite (const char *fnm) |
| int | openStrmToRead (const char *src) |
| bool | readCentralDirHeader (ObjectSet< ZipFileInfo > *=nullptr) |
| bool | readEndOfCentralDirHeader () |
| bool | readLocalFileHeader (ZipFileInfo &localinfo) |
| bool | readZIP64EndOfCentralDirLocator () |
| bool | readZIP64EndOfCentralDirRecord () |
| bool | reportReadError (const char *filenm=nullptr) const |
| bool | reportStrmReadError (od_istream *, const char *) const |
| bool | reportWriteError (const char *filenm=nullptr) const |
| bool | setCentralDirHeader (const ObjectSet< ZipFileInfo > &) |
| void | setCompLevel (CompLevel) |
| bool | setEndOfArchiveHeaders (const ObjectSet< ZipFileInfo > &) |
| bool | setEndOfCentralDirHeader (od_int64, od_uint32) |
| bool | setLocalFileHeader (const ZipFileInfo &, unsigned char *headerbuff) |
| bool | setLocalFileHeaderForDir (const ZipFileInfo &) |
| bool | setLocalFileHeaderForFile (const ZipFileInfo &) |
| bool | setLocalFileHeaderForLink (const ZipFileInfo &) |
| bool | setUnixUIDGID (const ZipFileInfo &) |
| bool | setXtraHeaders (const ZipFileInfo &, bool local) |
| bool | setXtraNTFSFld (const ZipFileInfo &) |
| bool | setXtraTimestampFld (const ZipFileInfo &, bool local) |
| bool | setZIP64EndOfDirLocator (od_int64) |
| bool | setZIP64EndOfDirRecord (od_int64) |
| bool | setZIP64Header (const ZipFileInfo &, bool local) |
| bool | unZipFile (const char *srcfnm, const char *fnm, const char *path, ZipFileInfo *fileinforet=nullptr) |
| void | writeGeneralPurposeFlag (unsigned char *buf) const |
Static Private Member Functions | |
| static bool | readNTFSExtrField (const unsigned char *, od_uint16, ZipFileInfo &) |
| static bool | readXtraField1 (const unsigned char *, od_uint16, ZipFileInfo &) |
| static bool | readXtraFldForZIP64 (const unsigned char *, od_uint16, ZipFileInfo &) |
| static bool | readXtraFlds (const unsigned char *buf, od_uint16 bufsz, ZipFileInfo &) |
| static bool | readXtraTimestampFld (const unsigned char *, od_uint16, ZipFileInfo &) |
| static bool | readXtraUIDGID (const unsigned char *, od_uint16 sz, od_uint16 tag, ZipFileInfo &) |
Private Attributes | |
| BufferStringSet | allfilenames_ |
| FilePath | basepath_ |
| CompLevel | complevel_ = Normal |
| TypeSet< od_int64 > | cumulativefilecounts_ |
| int | curfileidx_ = 0 |
| int | curinputidx_ = 0 |
| uiString | errormsg_ |
| od_int64 | initialfilecount_ = 0 |
| od_istream * | istrm_ = nullptr |
| od_int64 | nrdonesize_ = mUdf(od_int64) |
| od_stream_Pos | offsetofcentraldir_ = 0 |
| od_ostream * | ostrm_ = nullptr |
| od_int64 | totalsize_ = mUdf(od_int64) |
Friends | |
| class | MultiArchiveUnZipper |
| class | UnZipper |
| class | Zipper |
| class | ZipUtils |
Handles zipping and unzipping of files.
<>
| ZipHandler::ZipHandler | ( | ) |
| ZipHandler::~ZipHandler | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
| uiString ZipHandler::errMsg | ( | ) | const |
|
private |
|
inlineprivate |
| bool ZipHandler::getArchiveInfo | ( | const char * | , |
| ObjectSet< ZipFileInfo > & | ) |
|
inlineprivate |
|
private |
|
private |
|
inlineprivate |
|
inlineprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
mutableprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2025