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 ) ;
Header file that defines ZipOutputStreambuf.
ZipOutputStream(std::ostream &os)
ZipOutputStream constructor.
void setMethod(StorageMethod method)
Sets the compression method to be used.
Header file that defines ZipOutputStream.
void setComment(const string &comment)
Sets the global comment for the Zip archive.
Specialization of ZipLocalEntry, that add fields for storing the extra information,...
void closeEntry()
Closes the current entry, and positions the stream read pointer at the beginning of the next entry (i...
virtual ~ZipOutputStream()
Destructor.
void close()
Calls finish.
void setMethod(StorageMethod method)
Sets the compression method to be used.
void setComment(const std::string &comment)
Sets the global comment for the Zip archive.
ZipOutputStreambuf is a zip output streambuf filter.
void setLevel(int level)
Sets the compression level to be used for subsequent entries.
void putNextEntry(const ZipCDirEntry &entry)
void putNextEntry(const ZipCDirEntry &entry)
Begins writing the next entry.
void closeEntry()
Closes the current entry updates its header with the relevant size information and positions the stre...
void finish()
Closes the current entry (if one is open), then writes the Zip Central Directory Structure closing th...
StorageMethod
The types used with FileEntry::setMethod and FileEntry::getMethod.
void close()
Calls finish and if the ZipOutputStream was created with a filename as a parameter that file is close...
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...