Geant4
10.03.p03
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
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
14
namespace
cheprep {
15
16
ZipOutputStream::ZipOutputStream
(std::ostream& os) : std::ostream(0) {
17
buffer =
new
ZipOutputStreamBuffer
(os.rdbuf());
18
19
init(buffer);
20
}
21
22
void
ZipOutputStream::closeEntry
() {
23
buffer->
closeEntry
();
24
}
25
26
27
void
ZipOutputStream::close
() {
28
buffer->
close
();
29
}
30
31
void
ZipOutputStream::putNextEntry
(
const
std::string&
name
,
bool
compress
) {
32
buffer->
putNextEntry
(name, compress);
33
}
34
35
void
ZipOutputStream::setComment
(
const
std::string& comment ) {
36
buffer->
setComment
(comment);
37
}
38
39
ZipOutputStream::~ZipOutputStream
() {
40
close
();
41
delete
buffer;
42
}
43
44
}
// cheprep
cheprep::ZipOutputStream::closeEntry
void closeEntry()
Definition:
ZipOutputStream.cc:22
name
const XML_Char * name
Definition:
expat.h:151
cheprep::ZipOutputStreamBuffer::closeEntry
void closeEntry()
Definition:
ZipOutputStreamBuffer.cc:31
cheprep::ZipOutputStreamBuffer::close
void close()
Definition:
ZipOutputStreamBuffer.cc:49
cheprep::ZipOutputStream::putNextEntry
void putNextEntry(const std::string &name, bool compress)
Definition:
ZipOutputStream.cc:31
cheprep::ZipOutputStreamBuffer::putNextEntry
void putNextEntry(const std::string &name, bool compress)
Definition:
ZipOutputStreamBuffer.cc:96
cheprep::ZipOutputStream::setComment
void setComment(const std::string &comment)
Definition:
ZipOutputStream.cc:35
ZipOutputStreamBuffer.h
cheprep::ZipOutputStream::ZipOutputStream
ZipOutputStream(std::ostream &os)
Definition:
ZipOutputStream.cc:16
cheprep::ZipOutputStream::~ZipOutputStream
virtual ~ZipOutputStream()
Definition:
ZipOutputStream.cc:39
ZipOutputStream.h
cheprep::ZipOutputStreamBuffer
Definition:
ZipOutputStreamBuffer.h:19
compress
int ZEXPORT compress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
Definition:
compress.cc:57
cheprep::ZipOutputStream::close
void close()
Definition:
ZipOutputStream.cc:27
cheprep::ZipOutputStreamBuffer::setComment
void setComment(const std::string &comment)
Definition:
ZipOutputStreamBuffer.cc:135
source
geant4.10.03.p03
source
visualization
HepRep
src
ZipOutputStream.cc
Generated on Tue Nov 28 2017 21:44:20 for Geant4 by
1.8.5