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