ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GZIPOutputStreamBuffer.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file GZIPOutputStreamBuffer.h
1 // Copyright FreeHEP, 2005.
2 #ifndef CHEPREP_GZIPOUTPUTSTREAMBUF_H
3 #define CHEPREP_GZIPOUTPUTSTREAMBUF_H
4 
5 #include <string>
6 
8 
12 namespace 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