Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages | Examples

PackageVersionExtension.h

Go to the documentation of this file.
00001 //
00002 //  Copyright (c) 1996-2005 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 #ifndef _DWFTK_PACKAGE_VERSION_EXTENSION_H
00020 #define _DWFTK_PACKAGE_VERSION_EXTENSION_H
00021 
00026 
00027 #ifndef DWFTK_READ_ONLY
00028 
00029 
00030 #include "dwfcore/String.h"
00031 #include "dwfcore/Exception.h"
00032 using namespace DWFCore;
00033 
00034 #include "dwf/Toolkit.h"
00035 #include "dwf/package/utility/DWFPackageFileDescriptor.h"
00036 namespace DWFToolkit
00037 {
00038 
00039 //
00040 // fwd decl
00041 //
00042 class DWFInterface;
00043 class DWFSection;
00044 class DWFGlobalSection;
00045 class DWFPackageWriter;
00046 class DWFXMLSerializer;
00047 class DWFPackageFileDescriptor;
00048 
00049 
00074 class DWFPackageVersionExtension 
00075 {
00076 
00077 public:
00078 
00084     _DWFTK_API
00085     virtual ~DWFPackageVersionExtension()
00086         throw(){;}
00087 
00094     _DWFTK_API
00095     virtual unsigned short major()
00096         throw() = 0;
00097 
00104     _DWFTK_API
00105     virtual unsigned short minor()
00106         throw() = 0;
00107 
00111     _DWFTK_API
00112     virtual bool addSection( DWFSection*   pSection,
00113                              DWFInterface* pInterface = NULL )
00114         throw( DWFException ) = 0;
00115 
00119     _DWFTK_API
00120     virtual bool addGlobalSection( DWFGlobalSection* pSection )
00121         throw( DWFException ) = 0;
00122 
00126     _DWFTK_API
00127     virtual bool write( const DWFString& zSourceProductVendor = L"",
00128                         const DWFString& zSourceProductName = L"",
00129                         const DWFString& zSourceProductVersion = L"",
00130                         const DWFString& zDWFProductVendor = L"",
00131                         const DWFString& zDWFProductVersion = L"",
00132                         DWFZipFileDescriptor::teFileMode eCompressionMode = DWFZipFileDescriptor::eZipSmallest )
00133         throw( DWFException ) = 0;
00134 
00135 
00147     _DWFTK_API
00148     virtual void prewriteManifest( DWFPackageWriter&            rPackageWriter, 
00149                                    DWFPackageFileDescriptor&    rPackageDescriptor,
00150                                    DWFXMLSerializer&            rXMLSerializer,
00151                                    const DWFString&             zPackagePassword )
00152         throw( DWFException ) = 0;
00153 
00165     _DWFTK_API
00166     virtual void postwriteManifest( DWFPackageWriter&            rPackageWriter, 
00167                                     DWFPackageFileDescriptor&    rPackageDescriptor,
00168                                     DWFXMLSerializer&            rXMLSerializer,
00169                                     const DWFString&             zPackagePassword )
00170         throw( DWFException ) = 0;
00171 
00183     _DWFTK_API
00184     virtual void postwriteSections( DWFPackageWriter&            rPackageWriter, 
00185                                     DWFPackageFileDescriptor&    rPackageDescriptor,
00186                                     DWFXMLSerializer&            rXMLSerializer,
00187                                     const DWFString&             zPackagePassword )
00188         throw( DWFException ) = 0;
00189 
00190 protected:
00191 
00197     _DWFTK_API
00198     DWFPackageVersionExtension()
00199         throw(){;}
00200 };
00201 
00202 }
00203 
00204 
00205 #endif
00206 #endif
00207 

Generated on Tue May 17 12:38:51 2005 for Autodesk DWF Toolkit by  doxygen 1.4.1