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
8
9/**
10 * @author Mark Donszelmann
11 */
12namespace cheprep {
13
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
void setFilename(const std::string &filename)
void setComment(const std::string &comment)