ZipWriter.h

00001 //
00002 //  Copyright (c) 2006 by Autodesk, Inc.
00003 //
00004 //  By using this code, you are agreeing to the terms and conditions of
00005 //  the License Agreement included in the documentation for this code.
00006 //
00007 //  AUTODESK MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AS TO THE CORRECTNESS
00008 //  OF THIS CODE OR ANY DERIVATIVE WORKS WHICH INCORPORATE IT. AUTODESK
00009 //  PROVIDES THE CODE ON AN "AS-IS" BASIS AND EXPLICITLY DISCLAIMS ANY
00010 //  LIABILITY, INCLUDING CONSEQUENTIAL AND INCIDENTAL DAMAGES FOR ERRORS,
00011 //  OMISSIONS, AND OTHER PROBLEMS IN THE CODE.
00012 //
00013 //  Use, duplication, or disclosure by the U.S. Government is subject to
00014 //  restrictions set forth in FAR 52.227-19 (Commercial Computer Software
00015 //  Restricted Rights) and DFAR 252.227-7013(c)(1)(ii) (Rights in Technical
00016 //  Data and Computer Software), as applicable.
00017 //
00018 //  $Header: //DWF/Development/Components/Internal/DWF Toolkit/v7.6/develop/global/src/dwf/opc/ZipWriter.h#2 $
00019 //  $DateTime: 2008/09/27 13:04:31 $
00020 //  $Author: klugj $
00021 //  $Change: 114631 $
00022 //  $Revision: #2 $
00023 //
00024 //
00025 
00026 #ifndef _DWFTK_OPCZIPWRITER_H
00027 #define _DWFTK_OPCZIPWRITER_H
00028 
00029 
00030 #include "dwf/opc/PhysicalLayerWriter.h"
00031 
00032 #include "dwfcore/ZipFileDescriptor.h"
00033 
00034 namespace DWFToolkit
00035 {
00036 
00037 class OPCZipWriter
00038     : public OPCPhysicalLayerWriter
00039     _DWFTK_EXPORT_API_MEMORY_CONTROL_BASE_MEMBER
00040 {
00041 
00042 public:
00043 
00051     _DWFTK_API
00052     OPCZipWriter(DWFZipFileDescriptor *pZipFileDescr)
00053         throw();
00054 
00060     _DWFTK_API
00061     virtual ~OPCZipWriter()
00062         throw();
00063 
00067     _DWFTK_API
00068     virtual void open()
00069         throw(DWFException);
00070 
00074     _DWFTK_API
00075     virtual void write( const DWFString &zName, DWFInputStream* pInpStream )
00076         throw(DWFException);
00077 
00078 
00083     _DWFTK_API
00084     virtual void write( const DWFString &zName, DWFInputStream* pInpStream, DWFZipFileDescriptor::teFileMode eZipMode )
00085         throw(DWFException);
00086 
00087 
00091     _DWFTK_API
00092     virtual void close()
00093         throw(DWFException);
00094 
00095 private:
00096     //
00097     // Not Implemented
00098     //
00099     OPCZipWriter();
00100     OPCZipWriter( const OPCZipWriter& );
00101     OPCZipWriter& operator=( const OPCZipWriter& );
00102 
00103 protected:
00104     DWFZipFileDescriptor *_pZipFileDescr;
00105 
00106 };
00107 
00108 }
00109 
00110 #endif

Generated on Tue Jan 6 22:40:06 2009 for Autodesk DWF Toolkit by  doxygen 1.4.5