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

Interface.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 
00020 #ifndef _DWFTK_INTERFACE_H
00021 #define _DWFTK_INTERFACE_H
00022 
00023 
00028 
00029 #include "dwfcore/STL.h"
00030 
00031 
00032 #include "dwf/Toolkit.h"
00033 #include "dwf/package/XML.h"
00034 #include "dwf/package/reader/PackageReader.h"
00035 #include "dwf/package/writer/PackageWriter.h"
00036 
00037 
00038 namespace DWFToolkit
00039 {
00040 
00048 class DWFInterface : public DWFToolkitMemory
00049                    , public DWFXMLBuildable
00050 
00051 #ifndef DWFTK_READ_ONLY
00052                    , public DWFXMLSerializable
00053 #endif
00054 {
00055 
00056 public:
00057 
00061     static const wchar_t* const kzEPlot_Name;
00065     static const wchar_t* const kzEPlot_HRef;
00069     static const wchar_t* const kzEPlot_ID;
00073     static const wchar_t* const kzEModel_Name;
00077     static const wchar_t* const kzEModel_HRef;
00081     static const wchar_t* const kzEModel_ID;
00082 
00083 public:
00084 
00088     typedef vector<DWFInterface*>    tList;
00089 
00090 public:
00091 
00097     _DWFTK_API
00098     DWFInterface()
00099         throw();
00100 
00110     _DWFTK_API
00111     DWFInterface( const DWFString& zName,
00112                   const DWFString& zHRef,
00113                   const DWFString& zObjectID )
00114         throw();
00115 
00121     _DWFTK_API
00122     virtual ~DWFInterface()
00123         throw();
00124 
00134     _DWFTK_API
00135     const DWFString& name() const
00136         throw()
00137     {
00138         return _zName;
00139     }
00140 
00147     _DWFTK_API
00148     const DWFString& href() const
00149         throw()
00150     {
00151         return _zHRef;
00152     }
00153 
00160     _DWFTK_API
00161     const DWFString& objectID() const
00162         throw()
00163     {
00164         return _zObjectID;
00165     }
00166 
00170     _DWFTK_API
00171     virtual void parseAttributeList( const char** ppAttributeList )
00172         throw( DWFException );
00173 
00174 #ifndef DWFTK_READ_ONLY
00175 
00179     _DWFTK_API
00180     void serializeXML( DWFXMLSerializer& rSerializer, unsigned int nFlags )
00181         throw( DWFException );
00182 
00183 #endif
00184 
00185 private:
00186 
00187     DWFString _zName;
00188     DWFString _zHRef;
00189     DWFString _zObjectID;
00190 };
00191 
00192 
00193     //
00194     // required for win32 dll external linkage
00195     //
00196 #ifdef  _DWFCORE_WIN32_SYSTEM
00197 #ifndef DWFTK_STATIC
00198 
00199 _declspec(selectany) const wchar_t* const DWFInterface::kzEPlot_Name    = L"ePlot";
00200 _declspec(selectany) const wchar_t* const DWFInterface::kzEPlot_HRef    = L"http://www.autodesk.com/viewers";
00201 _declspec(selectany) const wchar_t* const DWFInterface::kzEPlot_ID      = L"715941D4-1AC2-4545-8185-BC40E053B551";
00202 
00203 _declspec(selectany) const wchar_t* const DWFInterface::kzEModel_Name   = L"eModel";
00204 _declspec(selectany) const wchar_t* const DWFInterface::kzEModel_HRef   = L"http://www.autodesk.com/viewers";
00205 _declspec(selectany) const wchar_t* const DWFInterface::kzEModel_ID     = L"75E513A9-6C41-4C91-BAA6-81E593FAAC10";
00206 
00207 #endif
00208 #endif
00209 
00210 }
00211 
00212 #endif

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