Geant4
9.6.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
* @version $Id: GZIPOutputStreamBuffer.h,v 1.4 2005-06-02 21:28:45 duns Exp $
12
*/
13
namespace
cheprep
{
14
15
class
GZIPOutputStreamBuffer
:
public
DeflateOutputStreamBuffer
{
16
17
public
:
18
19
GZIPOutputStreamBuffer
( std::streambuf *outbuf );
20
21
int
overflow
(
int
);
22
23
void
setFilename
(
const
std::string &filename );
24
void
setComment
(
const
std::string &comment );
25
26
void
close
() ;
27
28
virtual
~GZIPOutputStreamBuffer
() ;
29
30
private
:
31
void
writeHeader();
32
void
writeTrailer();
33
34
std::string filename;
35
std::string comment;
36
bool
open;
37
};
38
39
40
}
// cheprep
41
42
#endif
// CHEPREP_GZIPOUTPUTSTREAMBUF_H
DeflateOutputStreamBuffer.h
cheprep::DeflateOutputStreamBuffer
Definition:
DeflateOutputStreamBuffer.h:20
cheprep::GZIPOutputStreamBuffer
Definition:
GZIPOutputStreamBuffer.h:15
cheprep::GZIPOutputStreamBuffer::close
void close()
Definition:
GZIPOutputStreamBuffer.cc:28
cheprep::GZIPOutputStreamBuffer::overflow
int overflow(int)
Definition:
GZIPOutputStreamBuffer.cc:41
cheprep::GZIPOutputStreamBuffer::~GZIPOutputStreamBuffer
virtual ~GZIPOutputStreamBuffer()
Definition:
GZIPOutputStreamBuffer.cc:37
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
Definition:
AbstractXMLWriter.h:13
geant4-v9.6.0
source
visualization
HepRep
include
cheprep
GZIPOutputStreamBuffer.h
Generated by
1.9.6