ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GZIPOutputStream.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file GZIPOutputStream.cc
1 // Copyright FreeHEP, 2005.
2 
5 
9 namespace cheprep {
10 
11  using namespace std;
12 
14  : std::ostream(NULL) {
15 
16  buffer = new GZIPOutputStreamBuffer(os.rdbuf());
17  init(buffer);
18  }
19 
20 
22  buffer->setFilename(filename);
23  }
24 
25  void GZIPOutputStream::setComment(const string &comment) {
26  buffer->setComment(comment);
27  }
28 
30  buffer->close();
31  }
32 
33 
35  delete buffer;
36  }
37 
38 } // cheprep