GZIPOutputStream.cc

Go to the documentation of this file.
00001 // Copyright FreeHEP, 2005.
00002 
00003 #include "cheprep/GZIPOutputStreamBuffer.h"
00004 #include "cheprep/GZIPOutputStream.h"
00005 
00010 namespace cheprep {
00011 
00012     using namespace std;
00013 
00014     GZIPOutputStream::GZIPOutputStream(ostream &os)
00015                 : std::ostream(NULL) {
00016       
00017         buffer = new GZIPOutputStreamBuffer(os.rdbuf()); 
00018         init(buffer);   
00019     }
00020 
00021 
00022     void GZIPOutputStream::setFilename(const string &filename) {
00023         buffer->setFilename(filename);
00024     }
00025 
00026     void GZIPOutputStream::setComment(const string &comment) {
00027         buffer->setComment(comment);
00028     }
00029 
00030     void GZIPOutputStream::close() {
00031         buffer->close();
00032     }
00033 
00034 
00035     GZIPOutputStream::~GZIPOutputStream() {
00036         delete buffer;
00037     }
00038 
00039 } // cheprep

Generated on Mon May 27 17:50:29 2013 for Geant4 by  doxygen 1.4.7