Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
9 /**
10  * @author Mark Donszelmann
11  * @version $Id: GZIPOutputStream.h 66373 2012-12-18 09:41:34Z gcosmo $
12  */
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)