6.11/PackageVersionExtension.h

Go to the documentation of this file.
00001 //
00002 //  Copyright (c) 1996-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 
00019 
00020 #ifndef _DWFTK_PACKAGE_VERSION_EXTENSION_6_11_H
00021 #define _DWFTK_PACKAGE_VERSION_EXTENSION_6_11_H
00022 
00023 
00028 
00029 #ifndef DWFTK_READ_ONLY
00030 
00031 #include "dwf/Version.h"
00032 #include "dwf/package/writer/DWF6PackageVersionExtension.h"
00033 namespace DWFToolkit
00034 {
00035 
00048 class DWFPackageVersion611Extension : public DWF6PackageVersionExtension
00049                                      _DWFTK_EXPORT_API_MEMORY_CONTROL_BASE_MEMBER
00050 {
00051 
00052 public:
00053 
00060     _DWFTK_API
00061     DWFPackageVersion611Extension( const DWFString& zDocumentType )
00062         throw();
00063 
00069     _DWFTK_API
00070     virtual ~DWFPackageVersion611Extension()
00071         throw();
00072 
00076     _DWFTK_API
00077     unsigned short major()
00078         throw()
00079     {
00080         return _DWF_FORMAT_VERSION_ECOMPOSITE_MAJOR;
00081     }
00082 
00086     _DWFTK_API
00087     unsigned short minor()
00088         throw()
00089     {
00090         return _DWF_FORMAT_VERSION_ECOMPOSITE_MINOR;
00091     }
00092 
00096     _DWFTK_API
00097     virtual bool addSection( DWFSection*   pSection,
00098                              DWFInterface* pInterface )
00099         throw( DWFException );
00100 
00104     _DWFTK_API
00105     virtual bool addGlobalSection( DWFGlobalSection* pSection )
00106         throw( DWFException );
00107 
00111     _DWFTK_API
00112     virtual bool write( const DWFString& zSourceProductVendor,
00113                         const DWFString& zSourceProductName,
00114                         const DWFString& zSourceProductVersion,
00115                         const DWFString& zDWFProductVendor,
00116                         const DWFString& zDWFProductVersion,
00117                         DWFZipFileDescriptor::teFileMode eCompressionMode )
00118         throw( DWFException );
00119 
00120 
00124     _DWFTK_API
00125     virtual void prewriteManifest( DWF6PackageWriter&            rPackageWriter, 
00126                                    DWFPackageFileDescriptor&    rPackageDescriptor,
00127                                    DWFXMLSerializer&            rXMLSerializer,
00128                                    const DWFString&             rPackagePassword )
00129         throw( DWFException );
00130 
00134     _DWFTK_API
00135     virtual void postwriteManifest( DWF6PackageWriter&            rPackageWriter, 
00136                                     DWFPackageFileDescriptor&    rPackageDescriptor,
00137                                     DWFXMLSerializer&            rXMLSerializer,
00138                                     const DWFString&             rPackagePassword )
00139         throw( DWFException );
00140 
00144     _DWFTK_API
00145     virtual void postwriteSections( DWF6PackageWriter&            rPackageWriter, 
00146                                     DWFPackageFileDescriptor&    rPackageDescriptor,
00147                                     DWFXMLSerializer&            rXMLSerializer,
00148                                     const DWFString&             rPackagePassword )
00149         throw( DWFException );
00150 
00151 
00152 protected:
00153         DWFString   _zDocumentType;
00154 
00155 };
00156 
00157 }
00158 
00159 
00160 #endif
00161 #endif
00162 

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