gzipoutputstream.h
Go to the documentation of this file.00001 #ifndef GZIPOUTPUTSTREAM_H
00002 #define GZIPOUTPUTSTREAM_H
00003 
00004 #include "zipios-config.h"
00005 
00006 #include "meta-iostreams.h"
00007 
00008 #include <string>
00009 
00010 #include "gzipoutputstreambuf.h"
00011 
00012 namespace zipios {
00013 
00017 class BaseExport GZIPOutputStream : public std::ostream {
00018 public:
00019 
00023   explicit GZIPOutputStream( std::ostream &os ) ;
00024 
00028   explicit GZIPOutputStream( const std::string &filename ) ;
00029 
00030   void setFilename( const string &filename );
00031   void setComment( const string &comment );
00032   
00034   void close() ;
00035 
00037   void finish() ;
00038 
00040   virtual ~GZIPOutputStream() ;
00041 
00042 private:
00043   std::ofstream *ofs ;
00044   GZIPOutputStreambuf *ozf ;
00045 };
00046  
00047 } 
00048 
00049 #endif
00050 
00055 
00056 
00057 
00058 
00059 
00060 
00061 
00062 
00063 
00064 
00065 
00066 
00067 
00068 
00069 
00070 
00071 
00072