6.0/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_0_H
00021 #define _DWFTK_PACKAGE_VERSION_EXTENSION_6_0_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 
00047 class DWFPackageVersion60Extension : public DWF6PackageVersionExtension
00048                                      _DWFTK_EXPORT_API_MEMORY_CONTROL_BASE_MEMBER
00049 {
00050 
00051 public:
00052 
00058     _DWFTK_API
00059     DWFPackageVersion60Extension()
00060         throw();
00061 
00067     _DWFTK_API
00068     virtual ~DWFPackageVersion60Extension()
00069         throw();
00070 
00074     _DWFTK_API
00075     unsigned short major()
00076         throw()
00077     {
00078         return _DWF_FORMAT_VERSION_PACKAGE_MAJOR;
00079     }
00080 
00084     _DWFTK_API
00085     unsigned short minor()
00086         throw()
00087     {
00088         return _DWF_FORMAT_VERSION_PACKAGE_MINOR;
00089     }
00090 
00094     _DWFTK_API
00095     virtual bool addSection( DWFSection*   pSection,
00096                              DWFInterface* pInterface )
00097         throw( DWFException );
00098 
00102     _DWFTK_API
00103     virtual bool addGlobalSection( DWFGlobalSection* pSection )
00104         throw( DWFException );
00105 
00109     _DWFTK_API
00110     virtual bool write( const DWFString& zSourceProductVendor,
00111                         const DWFString& zSourceProductName,
00112                         const DWFString& zSourceProductVersion,
00113                         const DWFString& zDWFProductVendor,
00114                         const DWFString& zDWFProductVersion,
00115                         DWFZipFileDescriptor::teFileMode eCompressionMode )
00116         throw( DWFException );
00117 
00118 
00122     _DWFTK_API
00123     virtual void prewriteManifest( DWF6PackageWriter&            rPackageWriter, 
00124                                    DWFPackageFileDescriptor&    rPackageDescriptor,
00125                                    DWFXMLSerializer&            rXMLSerializer,
00126                                    const DWFString&             rPackagePassword )
00127         throw( DWFException );
00128 
00132     _DWFTK_API
00133     virtual void postwriteManifest( DWF6PackageWriter&            rPackageWriter, 
00134                                     DWFPackageFileDescriptor&    rPackageDescriptor,
00135                                     DWFXMLSerializer&            rXMLSerializer,
00136                                     const DWFString&             rPackagePassword )
00137         throw( DWFException );
00138 
00142     _DWFTK_API
00143     virtual void postwriteSections( DWF6PackageWriter&            rPackageWriter, 
00144                                     DWFPackageFileDescriptor&    rPackageDescriptor,
00145                                     DWFXMLSerializer&            rXMLSerializer,
00146                                     const DWFString&             rPackagePassword )
00147         throw( DWFException );
00148 };
00149 
00150 }
00151 
00152 
00153 #endif
00154 #endif
00155 

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