Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
GZIPOutputStream.cc
Go to the documentation of this file.
1// Copyright FreeHEP, 2005.
2
5
6/**
7 * @author Mark Donszelmann
8 */
9namespace cheprep {
10
11 using namespace std;
12
14 : std::ostream(NULL) {
15
16 buffer = new GZIPOutputStreamBuffer(os.rdbuf());
17 init(buffer);
18 }
19
20
21 void GZIPOutputStream::setFilename(const string &filename) {
22 buffer->setFilename(filename);
23 }
24
25 void GZIPOutputStream::setComment(const string &comment) {
26 buffer->setComment(comment);
27 }
28
30 buffer->close();
31 }
32
33
35 delete buffer;
36 }
37
38} // cheprep
void setFilename(const std::string &filename)
void setComment(const std::string &comment)
GZIPOutputStream(std::ostream &os)
void setFilename(const std::string &filename)
void setComment(const std::string &comment)