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
8
9/**
10 * @author Mark Donszelmann
11 * @version $Id: GZIPOutputStreamBuffer.h,v 1.4 2005-06-02 21:28:45 duns Exp $
12 */
13namespace cheprep {
14
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
void setFilename(const std::string &filename)
void setComment(const std::string &comment)