2#include "zipios++/zipios-config.h"
4#include "zipios++/meta-iostreams.h"
28 ofs =
new std::ofstream( filename.c_str(), std::ios::out | std::ios::binary ) ;
Specialization of ZipLocalEntry, that add fields for storing the extra information,...
void closeEntry()
Closes the current entry updates its header with the relevant size information and positions the stre...
void close()
Calls finish and if the ZipOutputStream was created with a filename as a parameter that file is close...
ZipOutputStream(std::ostream &os)
ZipOutputStream constructor.
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 std::string &comment)
Sets the global comment for the Zip archive.
void setLevel(int level)
Sets the compression level to be used for subsequent entries.
virtual ~ZipOutputStream()
Destructor.
void setMethod(StorageMethod method)
Sets the compression method to be used.
ZipOutputStreambuf is a zip output streambuf filter.
void setMethod(StorageMethod method)
Sets the compression method to be used.
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.
StorageMethod
The types used with FileEntry::setMethod and FileEntry::getMethod.
Header file that defines ZipOutputStream.
Header file that defines ZipOutputStreambuf.