DWFPackageFileDescriptor.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_FILE_DESCRIPTOR_H
00021 #define _DWFTK_PACKAGE_FILE_DESCRIPTOR_H
00022 
00027 
00028 
00029 #ifndef DWFTK_READ_ONLY
00030 
00031 #include "dwfcore/ZipFileDescriptor.h"
00032 using namespace DWFCore;
00033 
00034 #include "dwf/Toolkit.h"
00035 
00036 
00037 //
00038 //
00039 //
00040 namespace DWFToolkit
00041 {
00042 
00054 class DWFPackageFileDescriptor : public DWFZipFileDescriptor
00055                                  _DWFTK_EXPORT_API_MEMORY_CONTROL_BASE_MEMBER
00056 {
00057 
00058 public:
00059 
00069     _DWFTK_API
00070     DWFPackageFileDescriptor( const DWFFile&                   rFile,
00071                               DWFZipFileDescriptor::teFileMode eMode = DWFZipFileDescriptor::eZipSmallest,
00072                               unsigned short                   nVersionMajor = _DWF_FORMAT_VERSION_CURRENT_MAJOR,
00073                               unsigned short                   nVersionMinor = _DWF_FORMAT_VERSION_CURRENT_MINOR )
00074         throw();
00075 
00081     _DWFTK_API
00082     virtual ~DWFPackageFileDescriptor()
00083         throw();
00084 
00088     _DWFTK_API
00089     void open()
00090         throw( DWFException );
00091 
00092 private:
00093 
00094     unsigned short _nMajor;
00095     unsigned short _nMinor;
00096 
00097 private:
00098 
00099     DWFPackageFileDescriptor();
00100     DWFPackageFileDescriptor( const DWFPackageFileDescriptor& );
00101     DWFPackageFileDescriptor& operator=( const DWFPackageFileDescriptor& );
00102 };
00103 
00104 }
00105 
00106 
00107 #endif
00108 #endif

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