1 #ifndef ZIPOUTPUTSTREAMBUF_H
2 #define ZIPOUTPUTSTREAMBUF_H
4 #include "zipios++/zipios-config.h"
20 enum CompressionLevels { NO_COMPRESSION = Z_NO_COMPRESSION,
21 BEST_SPEED = Z_BEST_SPEED,
22 BEST_COMPRESSION = Z_BEST_COMPRESSION,
23 DEFAULT_COMPRESSION = Z_DEFAULT_COMPRESSION } ;
66 virtual int overflow(
int c = EOF ) ;
69 void setEntryClosedState() ;
70 void updateEntryHeaderInfo() ;
73 static void writeCentralDirectory(
const vector< ZipCDirEntry > &entries,
81 vector< ZipCDirEntry > _entries ;
84 StorageMethod _method ;
Header file that defines FileCollection.
The end of the Central directory structure.
ZipOutputStreambuf(streambuf *outbuf, bool del_outbuf=false)
ZipOutputStreambuf constructor.
void setComment(const string &comment)
Sets the global comment for the Zip archive.
Header file containing classes and functions for reading the central directory and local header field...
Specialization of ZipLocalEntry, that add fields for storing the extra information, that is only present in the entries in the zip central directory and not in the local entry headers.
DeflateOutputStreambuf is an output stream filter, that deflates the data that is written to it befor...
void closeEntry()
Closes the current entry, and positions the stream read pointer at the beginning of the next entry (i...
Header file that defines DeflateOutputStreambuf.
void close()
Calls finish.
void setMethod(StorageMethod method)
Sets the compression method to be used.
virtual ~ZipOutputStreambuf()
Destructor.
ZipOutputStreambuf is a zip output streambuf filter.
void putNextEntry(const ZipCDirEntry &entry)
Begins writing the next entry.
void finish()
Closes the current entry (if one is open), then writes the Zip Central Directory Structure closing th...
void setLevel(int level)
Sets the compression level to be used for subsequent entries.