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 } // namespace.
00048 
00049 #endif
00050 
00055 /*
00056   Zipios++ - a small C++ library that provides easy access to .zip files.
00057   Copyright (C) 2000  Thomas Søndergaard
00058   
00059   This library is free software; you can redistribute it and/or
00060   modify it under the terms of the GNU Lesser General Public
00061   License as published by the Free Software Foundation; either
00062   version 2 of the License, or (at your option) any later version.
00063   
00064   This library is distributed in the hope that it will be useful,
00065   but WITHOUT ANY WARRANTY; without even the implied warranty of
00066   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00067   Lesser General Public License for more details.
00068   
00069   You should have received a copy of the GNU Lesser General Public
00070   License along with this library; if not, write to the Free Software
00071   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
00072 */

Generated on Wed Nov 23 19:00:17 2011 for FreeCAD by  doxygen 1.6.1