7 #include "cheprep/ZipOutputStreamBuffer.h"
8 #include "cheprep/ZipOutputStream.h"
16 ZipOutputStream::ZipOutputStream(std::ostream& os) :
std::ostream(0) {
17 buffer =
new ZipOutputStreamBuffer(os.rdbuf());
22 void ZipOutputStream::closeEntry() {
27 void ZipOutputStream::close() {
31 void ZipOutputStream::putNextEntry(
const std::string&
name,
bool compress) {
32 buffer->putNextEntry(name, compress);
35 void ZipOutputStream::setComment(
const std::string& comment ) {
36 buffer->setComment(comment);
39 ZipOutputStream::~ZipOutputStream() {
int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)