Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
13 namespace 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)
GZIPOutputStreamBuffer(std::streambuf *outbuf)