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
3
#include "
cheprep/GZIPOutputStreamBuffer.h
"
4
#include "
cheprep/GZIPOutputStream.h
"
5
6
/**
7
* @author Mark Donszelmann
8
*/
9
namespace
cheprep
{
10
11
using namespace
std;
12
13
GZIPOutputStream::GZIPOutputStream
(ostream &os)
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
29
void
GZIPOutputStream::close
() {
30
buffer->
close
();
31
}
32
33
34
GZIPOutputStream::~GZIPOutputStream
() {
35
delete
buffer;
36
}
37
38
}
// cheprep
GZIPOutputStreamBuffer.h
GZIPOutputStream.h
cheprep::GZIPOutputStreamBuffer
Definition:
GZIPOutputStreamBuffer.h:14
cheprep::GZIPOutputStreamBuffer::close
void close()
Definition:
GZIPOutputStreamBuffer.cc:27
cheprep::GZIPOutputStreamBuffer::setFilename
void setFilename(const std::string &filename)
Definition:
GZIPOutputStreamBuffer.cc:19
cheprep::GZIPOutputStreamBuffer::setComment
void setComment(const std::string &comment)
Definition:
GZIPOutputStreamBuffer.cc:23
cheprep::GZIPOutputStream::close
void close()
Definition:
GZIPOutputStream.cc:29
cheprep::GZIPOutputStream::GZIPOutputStream
GZIPOutputStream(std::ostream &os)
Definition:
GZIPOutputStream.cc:13
cheprep::GZIPOutputStream::setFilename
void setFilename(const std::string &filename)
Definition:
GZIPOutputStream.cc:21
cheprep::GZIPOutputStream::~GZIPOutputStream
virtual ~GZIPOutputStream()
Definition:
GZIPOutputStream.cc:34
cheprep::GZIPOutputStream::setComment
void setComment(const std::string &comment)
Definition:
GZIPOutputStream.cc:25
cheprep
Definition:
AbstractXMLWriter.h:12
geant4-v10.7.0
source
visualization
HepRep
src
GZIPOutputStream.cc
Generated by
1.9.6