Geant4
9.6.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
* @version $Id: GZIPOutputStream.cc,v 1.4 2005-06-02 21:28:45 duns Exp $
9
*/
10
namespace
cheprep
{
11
12
using namespace
std;
13
14
GZIPOutputStream::GZIPOutputStream
(ostream &os)
15
: std::ostream(NULL) {
16
17
buffer =
new
GZIPOutputStreamBuffer
(os.rdbuf());
18
init(buffer);
19
}
20
21
22
void
GZIPOutputStream::setFilename
(
const
string
&filename) {
23
buffer->
setFilename
(filename);
24
}
25
26
void
GZIPOutputStream::setComment
(
const
string
&comment) {
27
buffer->
setComment
(comment);
28
}
29
30
void
GZIPOutputStream::close
() {
31
buffer->
close
();
32
}
33
34
35
GZIPOutputStream::~GZIPOutputStream
() {
36
delete
buffer;
37
}
38
39
}
// cheprep
GZIPOutputStreamBuffer.h
GZIPOutputStream.h
cheprep::GZIPOutputStreamBuffer
Definition:
GZIPOutputStreamBuffer.h:15
cheprep::GZIPOutputStreamBuffer::close
void close()
Definition:
GZIPOutputStreamBuffer.cc:28
cheprep::GZIPOutputStreamBuffer::setFilename
void setFilename(const std::string &filename)
Definition:
GZIPOutputStreamBuffer.cc:20
cheprep::GZIPOutputStreamBuffer::setComment
void setComment(const std::string &comment)
Definition:
GZIPOutputStreamBuffer.cc:24
cheprep::GZIPOutputStream::close
void close()
Definition:
gzipoutputstream.cc:30
cheprep::GZIPOutputStream::GZIPOutputStream
GZIPOutputStream(std::ostream &os)
Definition:
gzipoutputstream.cc:14
cheprep::GZIPOutputStream::setFilename
void setFilename(const std::string &filename)
Definition:
gzipoutputstream.cc:22
cheprep::GZIPOutputStream::~GZIPOutputStream
virtual ~GZIPOutputStream()
Definition:
gzipoutputstream.cc:35
cheprep::GZIPOutputStream::setComment
void setComment(const std::string &comment)
Definition:
gzipoutputstream.cc:26
cheprep
Definition:
AbstractXMLWriter.h:13
geant4-v9.6.0
source
visualization
HepRep
src
gzipoutputstream.cc
Generated by
1.9.6