00001 #ifndef ZIPOUTPUTSTREAM_H
00002 #define ZIPOUTPUTSTREAM_H
00003
00004 #include "zipios++/zipios-config.h"
00005
00006 #include "zipios++/meta-iostreams.h"
00007
00008 #include <string>
00009
00010 #include "zipios++/ziphead.h"
00011 #include "zipios++/zipoutputstreambuf.h"
00012
00013 namespace zipios {
00014
00018 class ZipOutputStream : public std::ostream {
00019 public:
00020
00024 explicit ZipOutputStream( std::ostream &os ) ;
00025
00028 explicit ZipOutputStream( const std::string &filename ) ;
00029
00034 void closeEntry() ;
00035
00040 void close() ;
00041
00046 void finish() ;
00047
00051 void putNextEntry( const ZipCDirEntry &entry ) ;
00052
00056 void putNextEntry(const std::string& entryName);
00057
00059 void setComment( const std::string& comment ) ;
00060
00062 void setLevel( int level ) ;
00063
00066 void setMethod( StorageMethod method ) ;
00067
00069 virtual ~ZipOutputStream() ;
00070
00071 private:
00072 std::ofstream *ofs ;
00073 ZipOutputStreambuf *ozf ;
00074 };
00075
00076 }
00077
00078 #endif
00079
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101