#include <ZipOutputStreamBuffer.h>
|
static const unsigned int | LOCSIG = 0x04034b50 |
|
static const unsigned int | EXTSIG = 0x08074b50 |
|
static const unsigned int | CENSIG = 0x02014b50 |
|
static const unsigned int | ENDSIG = 0x06054b50 |
|
static const unsigned int | VERSIONMADE = 0x0014 |
|
static const unsigned int | VERSIONEXTRACT = 0x0014 |
|
static const unsigned int | GENFLAG = 0x0008 |
|
Definition at line 19 of file ZipOutputStreamBuffer.h.
◆ ZipOutputStreamBuffer()
cheprep::ZipOutputStreamBuffer::ZipOutputStreamBuffer |
( |
std::streambuf * |
buffer | ) |
|
Definition at line 17 of file ZipOutputStreamBuffer.cc.
24 entries =
new std::vector<ZipEntry*>();
DeflateOutputStreamBuffer(std::streambuf *buffer)
std::vector< ZipEntry * > * entries
◆ ~ZipOutputStreamBuffer()
cheprep::ZipOutputStreamBuffer::~ZipOutputStreamBuffer |
( |
| ) |
|
|
virtual |
◆ close()
void cheprep::ZipOutputStreamBuffer::close |
( |
| ) |
|
Definition at line 49 of file ZipOutputStreamBuffer.cc.
53 long dirStart =
pos();
54 for (std::vector<ZipEntry*>::iterator i=
entries->begin(); i !=
entries->end(); i++) {
80 long dirSize = (long)
pos() - dirStart;
static const unsigned int GENFLAG
void putUI(unsigned int ui)
void putS(const std::string s)
static const unsigned int VERSIONMADE
static const unsigned int ENDSIG
std::vector< ZipEntry * > * entries
static const unsigned int VERSIONEXTRACT
static const unsigned int CENSIG
void putUS(unsigned short us)
◆ closeEntry()
void cheprep::ZipOutputStreamBuffer::closeEntry |
( |
| ) |
|
◆ overflow()
int cheprep::ZipOutputStreamBuffer::overflow |
( |
int |
c | ) |
|
◆ putNextEntry()
void cheprep::ZipOutputStreamBuffer::putNextEntry |
( |
const std::string & |
name, |
|
|
bool |
compress |
|
) |
| |
Definition at line 96 of file ZipOutputStreamBuffer.cc.
101 #ifdef CHEPREP_NO_ZLIB 106 entry =
new ZipEntry();
114 struct tm *utc = gmtime( <ime );
115 entry->
date = (utc->tm_year - 80) << 9 | (utc->tm_mon + 1) << 5 | utc->tm_mday;
116 entry->
time = utc->tm_hour << 11 | utc->tm_min << 5 | utc->tm_sec >> 1;
static const unsigned int GENFLAG
static const unsigned int LOCSIG
void putUI(unsigned int ui)
void putS(const std::string s)
int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
std::vector< ZipEntry * > * entries
static const unsigned int VERSIONEXTRACT
void putUS(unsigned short us)
◆ setComment()
void cheprep::ZipOutputStreamBuffer::setComment |
( |
const std::string & |
comment | ) |
|
◆ setMethod()
void cheprep::ZipOutputStreamBuffer::setMethod |
( |
int |
method | ) |
|
◆ CENSIG
const unsigned int cheprep::ZipOutputStreamBuffer::CENSIG = 0x02014b50 |
|
staticprivate |
◆ closed
bool cheprep::ZipOutputStreamBuffer::closed |
|
private |
◆ comment
std::string cheprep::ZipOutputStreamBuffer::comment |
|
private |
◆ ENDSIG
const unsigned int cheprep::ZipOutputStreamBuffer::ENDSIG = 0x06054b50 |
|
staticprivate |
◆ entries
std::vector<ZipEntry*>* cheprep::ZipOutputStreamBuffer::entries |
|
private |
◆ entry
ZipEntry* cheprep::ZipOutputStreamBuffer::entry |
|
private |
◆ EXTSIG
const unsigned int cheprep::ZipOutputStreamBuffer::EXTSIG = 0x08074b50 |
|
staticprivate |
◆ GENFLAG
const unsigned int cheprep::ZipOutputStreamBuffer::GENFLAG = 0x0008 |
|
staticprivate |
◆ LOCSIG
const unsigned int cheprep::ZipOutputStreamBuffer::LOCSIG = 0x04034b50 |
|
staticprivate |
◆ VERSIONEXTRACT
const unsigned int cheprep::ZipOutputStreamBuffer::VERSIONEXTRACT = 0x0014 |
|
staticprivate |
◆ VERSIONMADE
const unsigned int cheprep::ZipOutputStreamBuffer::VERSIONMADE = 0x0014 |
|
staticprivate |
The documentation for this class was generated from the following files: