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 ;
DeflateOutputStreambuf is an output stream filter, that deflates the data that is written to it befor...
The end of the Central directory structure.
Specialization of ZipLocalEntry, that add fields for storing the extra information,...
ZipOutputStreambuf is a zip output streambuf filter.
void setMethod(StorageMethod method)
Sets the compression method to be used.
virtual ~ZipOutputStreambuf()
Destructor.
void close()
Calls finish.
void closeEntry()
Closes the current entry, and positions the stream read pointer at the beginning of the next entry (i...
void setLevel(int level)
Sets the compression level to be used for subsequent entries.
void finish()
Closes the current entry (if one is open), then writes the Zip Central Directory Structure closing th...
void putNextEntry(const ZipCDirEntry &entry)
Begins writing the next entry.
void setComment(const string &comment)
Sets the global comment for the Zip archive.
Header file that defines DeflateOutputStreambuf.
Header file that defines FileCollection.
StorageMethod
The types used with FileEntry::setMethod and FileEntry::getMethod.
Header file containing classes and functions for reading the central directory and local header field...