Geant4
10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
GZIPOutputStreamBuffer.h
Go to the documentation of this file.
1
// Copyright FreeHEP, 2005.
2
#ifndef CHEPREP_GZIPOUTPUTSTREAMBUF_H
3
#define CHEPREP_GZIPOUTPUTSTREAMBUF_H
4
5
#include <string>
6
7
#include "
cheprep/DeflateOutputStreamBuffer.h
"
8
9
/**
10
* @author Mark Donszelmann
11
*/
12
namespace
cheprep
{
13
14
class
GZIPOutputStreamBuffer
:
public
DeflateOutputStreamBuffer
{
15
16
public
:
17
18
GZIPOutputStreamBuffer
( std::streambuf *outbuf );
19
20
int
overflow
(
int
);
21
22
void
setFilename
(
const
std::string &filename );
23
void
setComment
(
const
std::string &comment );
24
25
void
close
() ;
26
27
virtual
~GZIPOutputStreamBuffer
() ;
28
29
private
:
30
void
writeHeader();
31
void
writeTrailer();
32
33
std::string filename;
34
std::string comment;
35
bool
open;
36
};
37
38
39
}
// cheprep
40
41
#endif
// CHEPREP_GZIPOUTPUTSTREAMBUF_H
DeflateOutputStreamBuffer.h
cheprep::DeflateOutputStreamBuffer
Definition:
DeflateOutputStreamBuffer.h:19
cheprep::GZIPOutputStreamBuffer
Definition:
GZIPOutputStreamBuffer.h:14
cheprep::GZIPOutputStreamBuffer::close
void close()
Definition:
GZIPOutputStreamBuffer.cc:27
cheprep::GZIPOutputStreamBuffer::overflow
int overflow(int)
Definition:
GZIPOutputStreamBuffer.cc:40
cheprep::GZIPOutputStreamBuffer::~GZIPOutputStreamBuffer
virtual ~GZIPOutputStreamBuffer()
Definition:
GZIPOutputStreamBuffer.cc:36
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
Definition:
AbstractXMLWriter.h:12
geant4-v10.7.0
source
visualization
HepRep
include
cheprep
GZIPOutputStreamBuffer.h
Generated by
1.9.6