Geant4.10
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GZIPOutputStream.cc
Go to the documentation of this file.
1 // Copyright FreeHEP, 2005.
2 
5 
6 /**
7  * @author Mark Donszelmann
8  * @version $Id: GZIPOutputStream.cc 66373 2012-12-18 09:41:34Z gcosmo $
9  */
10 namespace cheprep {
11 
12  using namespace std;
13 
15  : std::ostream(NULL) {
16 
17  buffer = new GZIPOutputStreamBuffer(os.rdbuf());
18  init(buffer);
19  }
20 
21 
22  void GZIPOutputStream::setFilename(const string &filename) {
23  buffer->setFilename(filename);
24  }
25 
26  void GZIPOutputStream::setComment(const string &comment) {
27  buffer->setComment(comment);
28  }
29 
31  buffer->close();
32  }
33 
34 
36  delete buffer;
37  }
38 
39 } // cheprep
void setComment(const std::string &comment)
void setFilename(const std::string &filename)
GZIPOutputStream(std::ostream &os)
void setComment(const std::string &comment)
void setFilename(const std::string &filename)