Geant4
10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
ZipOutputStreamBuffer.h
Go to the documentation of this file.
1
// Copyright FreeHEP, 2005.
2
#ifndef CHEPREP_ZIPOUTPUTSTREAMBUFFER_H
3
#define CHEPREP_ZIPOUTPUTSTREAMBUFFER_H
4
5
#include <string>
6
#include <iostream>
7
#include <vector>
8
9
#include "
cheprep/DeflateOutputStreamBuffer.h
"
10
11
/**
12
* @author Mark Donszelmann
13
*/
14
namespace
cheprep
{
15
16
class
ZipEntry;
17
18
class
ZipOutputStreamBuffer
:
public
DeflateOutputStreamBuffer
{
19
20
public
:
21
22
ZipOutputStreamBuffer
(std::streambuf*
buffer
);
23
24
int
overflow
(
int
c);
25
26
void
closeEntry
();
27
28
void
close
();
29
30
void
putNextEntry
(
const
std::string& name,
bool
compress
);
31
32
void
setMethod
(
int
method);
33
34
void
setComment
(
const
std::string& comment);
35
36
virtual
~ZipOutputStreamBuffer
();
37
38
private
:
39
std::string comment;
40
41
bool
closed;
42
ZipEntry
* entry;
43
std::vector<ZipEntry*>* entries;
44
45
static
const
unsigned
int
LOCSIG = 0x04034b50;
46
static
const
unsigned
int
EXTSIG = 0x08074b50;
47
static
const
unsigned
int
CENSIG = 0x02014b50;
48
static
const
unsigned
int
ENDSIG = 0x06054b50;
49
50
static
const
unsigned
int
VERSIONMADE = 0x0014;
51
static
const
unsigned
int
VERSIONEXTRACT = 0x0014;
52
static
const
unsigned
int
GENFLAG = 0x0008;
53
};
54
55
}
// cheprep
56
57
#endif
// CHEPREP_ZIPOUTPUTSTREAMBUFFER_H
DeflateOutputStreamBuffer.h
cheprep::DeflateOutputStreamBuffer
Definition:
DeflateOutputStreamBuffer.h:19
cheprep::ZipEntry
Definition:
ZipEntry.h:13
cheprep::ZipOutputStreamBuffer
Definition:
ZipOutputStreamBuffer.h:18
cheprep::ZipOutputStreamBuffer::overflow
int overflow(int c)
Definition:
ZipOutputStreamBuffer.cc:26
cheprep::ZipOutputStreamBuffer::setMethod
void setMethod(int method)
cheprep::ZipOutputStreamBuffer::setComment
void setComment(const std::string &comment)
Definition:
ZipOutputStreamBuffer.cc:134
cheprep::ZipOutputStreamBuffer::close
void close()
Definition:
ZipOutputStreamBuffer.cc:48
cheprep::ZipOutputStreamBuffer::closeEntry
void closeEntry()
Definition:
ZipOutputStreamBuffer.cc:30
cheprep::ZipOutputStreamBuffer::putNextEntry
void putNextEntry(const std::string &name, bool compress)
Definition:
ZipOutputStreamBuffer.cc:95
cheprep::ZipOutputStreamBuffer::~ZipOutputStreamBuffer
virtual ~ZipOutputStreamBuffer()
Definition:
ZipOutputStreamBuffer.cc:139
compress
int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
Definition:
compress.c:67
cheprep
Definition:
AbstractXMLWriter.h:12
buffer
#define buffer
Definition:
xmlparse.cc:628
geant4-v10.7.0
source
visualization
HepRep
include
cheprep
ZipOutputStreamBuffer.h
Generated by
1.9.6