Geant4_10
GZIPOutputStream.h
Go to the documentation of this file.
1 // Copyright FreeHEP, 2005.
2 #ifndef CHEPREP_GZIPOUTPUTSTREAM_H
3 #define CHEPREP_GZIPOUTPUTSTREAM_H
4 
5 #include <string>
6 
8 
13 namespace cheprep {
14 
15  class GZIPOutputStream : public std::ostream {
16 
17  public:
18 
19  GZIPOutputStream(std::ostream &os);
20 
21  void setFilename(const std::string &filename);
22  void setComment(const std::string &comment);
23 
24  void close();
25 
26  virtual ~GZIPOutputStream();
27 
28  private:
29  GZIPOutputStreamBuffer *buffer;
30  };
31 
32 } // cheprep.
33 
34 #endif // CHEPREP_GZIPOUTPUTSTREAM_H
void setComment(const std::string &comment)
GZIPOutputStream(std::ostream &os)
void setFilename(const std::string &filename)