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
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
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
Generated on Sat May 25 2013 14:34:14 for Geant4 by
1.8.4