6.01/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_01_H
00021 #define _DWFTK_PACKAGE_VERSION_EXTENSION_6_01_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 
00060 class DWFPackageVersionTypeInfoExtension : public DWF6PackageVersionExtension
00061                                            _DWFTK_EXPORT_API_MEMORY_CONTROL_BASE_MEMBER
00062 {
00063 
00064 public:
00065 
00070     static const wchar_t* const kzDocumentType_EPlot;
00075     static const wchar_t* const kzDocumentType_EModel;
00076 
00077 public:
00078 
00085     _DWFTK_API
00086     DWFPackageVersionTypeInfoExtension( const DWFString& zDocumentType )
00087         throw();
00088 
00094     _DWFTK_API
00095     virtual ~DWFPackageVersionTypeInfoExtension()
00096         throw();
00097 
00101     _DWFTK_API
00102     unsigned short major()
00103         throw()
00104     {
00105         return _DWF_FORMAT_VERSION_TYPEINFO_MAJOR;
00106     }
00107 
00111     _DWFTK_API
00112     unsigned short minor()
00113         throw()
00114     {
00115         return _DWF_FORMAT_VERSION_TYPEINFO_MINOR;
00116     }
00117 
00121     _DWFTK_API
00122     virtual bool addSection( DWFSection*   pSection,
00123                              DWFInterface* pInterface )
00124         throw( DWFException );
00125 
00129     _DWFTK_API
00130     virtual bool addGlobalSection( DWFGlobalSection* pSection )
00131         throw( DWFException );
00132 
00136     _DWFTK_API
00137     virtual bool write( const DWFString& zSourceProductVendor,
00138                         const DWFString& zSourceProductName,
00139                         const DWFString& zSourceProductVersion,
00140                         const DWFString& zDWFProductVendor,
00141                         const DWFString& zDWFProductVersion,
00142                         DWFZipFileDescriptor::teFileMode eCompressionMode )
00143         throw( DWFException );
00144 
00145 
00149     _DWFTK_API
00150     virtual void prewriteManifest( DWF6PackageWriter&            rPackageWriter, 
00151                                    DWFPackageFileDescriptor&    rPackageDescriptor,
00152                                    DWFXMLSerializer&            rXMLSerializer,
00153                                    const DWFString&             rPackagePassword )
00154         throw( DWFException );
00155 
00159     _DWFTK_API
00160     virtual void postwriteManifest( DWF6PackageWriter&            rPackageWriter, 
00161                                     DWFPackageFileDescriptor&    rPackageDescriptor,
00162                                     DWFXMLSerializer&            rXMLSerializer,
00163                                     const DWFString&             rPackagePassword )
00164         throw( DWFException );
00165 
00169     _DWFTK_API
00170     virtual void postwriteSections( DWF6PackageWriter&            rPackageWriter, 
00171                                     DWFPackageFileDescriptor&    rPackageDescriptor,
00172                                     DWFXMLSerializer&            rXMLSerializer,
00173                                     const DWFString&             rPackagePassword )
00174         throw( DWFException );
00175 
00176 private:
00177 
00178     DWFString   _zDocumentType;
00179 };
00180 
00181 
00182     //
00183     // required for win32 dll external linkage
00184     //
00185 #ifdef  _DWFCORE_WIN32_SYSTEM
00186 #ifndef DWFTK_STATIC
00187 
00188 _declspec(selectany) const wchar_t* const DWFPackageVersionTypeInfoExtension::kzDocumentType_EPlot     = DWFInterface::kzEPlot_ID;
00189 _declspec(selectany) const wchar_t* const DWFPackageVersionTypeInfoExtension::kzDocumentType_EModel    = DWFInterface::kzEModel_ID;
00190 
00191 #endif
00192 #endif
00193 
00194 
00195 }
00196 
00197 
00198 #endif
00199 #endif
00200 

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