IncludeSegment.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 #ifndef _DWFTK_INCLUDE_SEGMENT_H
00020 #define _DWFTK_INCLUDE_SEGMENT_H
00021 
00026 
00027 
00028 #ifndef DWFTK_READ_ONLY
00029 
00030 #include "dwf/Toolkit.h"
00031 #include "dwf/publisher/model/Segment.h"
00032 
00033 
00034 namespace DWFToolkit
00035 {
00036 
00058 class DWFIncludeSegment : public DWFSegment
00059                           _DWFTK_EXPORT_API_MEMORY_CONTROL_BASE_MEMBER
00060 {
00061 
00062 public:
00063 
00067     static const char* const kz_Include_Library;
00068 
00069 public:
00070 
00082     _DWFTK_API
00083     DWFIncludeSegment( DWFSegmentHandlerBuilder&    rSegmentBuilder,
00084                        DWFGeometryHandlerBuilder&   rGeometryBuilder,
00085                        DWFFeatureHandlerBuilder&    rFeatureBuilder,
00086                        DWFAttributeHandlerBuilder&  rAttributeBuilder,
00087                        DWFPublishedObject::Factory& rObjectFactory,
00088                        bool                         bUseOldObjectModel = false )
00089         throw();
00090 
00097     _DWFTK_API
00098     DWFIncludeSegment( const DWFIncludeSegment& rSegment )
00099         throw();
00100 
00107     _DWFTK_API
00108     DWFIncludeSegment& operator=( const DWFIncludeSegment& rSegment )
00109         throw();
00110 
00116     _DWFTK_API
00117     virtual ~DWFIncludeSegment()
00118         throw();
00119 
00135     _DWFTK_API
00136     void open( const DWFString* zName )
00137         throw( DWFException );
00138 
00154     _DWFTK_API
00155     void open( const DWFString& zName )
00156         throw( DWFException );
00157 
00171     _DWFTK_API
00172     virtual void setContentEntity( DWFEntity* pEntity )
00173         throw( DWFException );
00174 
00180     _DWFTK_API
00181     virtual void setContentObject( DWFObject* /*pObject*/ )
00182         throw( DWFException );
00183 
00184 private:
00185 
00186     //
00187     // Not Implemented
00188     //
00189 
00190     DWFIncludeSegment();
00191 };
00192 
00193 
00194     //
00195     // required for win32 dll external linkage
00196     //
00197 #ifdef  _DWFCORE_WIN32_SYSTEM
00198 #ifndef DWFTK_STATIC
00199 
00200 //DNT_Start
00201 _declspec(selectany) const char* const DWFIncludeSegment::kz_Include_Library = "?Include Library/";
00202 //DNT_End
00203 
00204 #endif
00205 #endif
00206 
00207 
00208 }
00209 
00210 
00211 #endif  
00212 #endif

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