ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
GZIPOutputStream.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file GZIPOutputStream.cc
1
// Copyright FreeHEP, 2005.
2
3
#include "
cheprep/GZIPOutputStreamBuffer.h
"
4
#include "
cheprep/GZIPOutputStream.h
"
5
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
geant4
tree
geant4-10.6-release
source
visualization
HepRep
src
GZIPOutputStream.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:55
using
1.8.2 with
ECCE GitHub integration