Geant4
10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
ZipOutputStream.cc
Go to the documentation of this file.
1
// Copyright FreeHEP, 2005.
2
3
#include <iostream>
4
#include <ctime>
5
#include <vector>
6
7
#include "
cheprep/ZipOutputStreamBuffer.h
"
8
#include "
cheprep/ZipOutputStream.h
"
9
10
/**
11
* @author Mark Donszelmann
12
*/
13
namespace
cheprep
{
14
15
ZipOutputStream::ZipOutputStream
(std::ostream& os) : std::ostream(0) {
16
buffer =
new
ZipOutputStreamBuffer
(os.rdbuf());
17
18
init(buffer);
19
}
20
21
void
ZipOutputStream::closeEntry
() {
22
buffer->
closeEntry
();
23
}
24
25
26
void
ZipOutputStream::close
() {
27
buffer->
close
();
28
}
29
30
void
ZipOutputStream::putNextEntry
(
const
std::string& name,
bool
compress
) {
31
buffer->
putNextEntry
(name,
compress
);
32
}
33
34
void
ZipOutputStream::setComment
(
const
std::string& comment ) {
35
buffer->
setComment
(comment);
36
}
37
38
ZipOutputStream::~ZipOutputStream
() {
39
close
();
40
delete
buffer;
41
}
42
43
}
// cheprep
ZipOutputStreamBuffer.h
ZipOutputStream.h
cheprep::ZipOutputStreamBuffer
Definition:
ZipOutputStreamBuffer.h:18
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::ZipOutputStream::closeEntry
void closeEntry()
Definition:
ZipOutputStream.cc:21
cheprep::ZipOutputStream::~ZipOutputStream
virtual ~ZipOutputStream()
Definition:
ZipOutputStream.cc:38
cheprep::ZipOutputStream::putNextEntry
void putNextEntry(const std::string &name, bool compress)
Definition:
ZipOutputStream.cc:30
cheprep::ZipOutputStream::setComment
void setComment(const std::string &comment)
Definition:
ZipOutputStream.cc:34
cheprep::ZipOutputStream::ZipOutputStream
ZipOutputStream(std::ostream &os)
Definition:
ZipOutputStream.cc:15
cheprep::ZipOutputStream::close
void close()
Definition:
ZipOutputStream.cc:26
compress
int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
Definition:
compress.c:67
cheprep
Definition:
AbstractXMLWriter.h:12
geant4-v10.7.0
source
visualization
HepRep
src
ZipOutputStream.cc
Generated by
1.9.6