Geant4
9.6.p02
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
geant4_9_6_p02
source
visualization
HepRep
src
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
Generated on Sat May 25 2013 14:34:14 for Geant4 by
1.8.4