SectionBuilder.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_SECTION_BUILDER_H
00021 #define _DWFTK_SECTION_BUILDER_H
00022 
00023 
00028 
00029 #include "dwfcore/String.h"
00030 using namespace DWFCore;
00031 
00032 #include "dwf/package/Section.h"
00033 
00034 
00035 namespace DWFToolkit
00036 {
00037 
00038 
00051 class DWFSectionBuilder     _DWFTK_EXPORT_API_MEMORY_CONTROL_BASE
00052 {
00053 
00054 public:
00055 
00061     _DWFTK_API
00062     DWFSectionBuilder()
00063         throw();
00064 
00070     _DWFTK_API
00071     virtual ~DWFSectionBuilder()
00072         throw();
00073 
00091     _DWFTK_API
00092     DWFSection::Factory* addFactory( DWFSection::Factory* pFactory )
00093         throw( DWFException );
00094 
00104     _DWFTK_API
00105     DWFSection::Factory* removeFactory( const DWFString& zType )
00106         throw( DWFException );
00107 
00122     _DWFTK_API
00123     DWFSection* buildSection( const char**      ppAttributeList,
00124                               DWFPackageReader* pPackageReader )
00125         throw( DWFException );
00126 
00141     _DWFTK_API
00142     DWFSection* buildSection( const DWFString&  zType,
00143                               const DWFString&  zName,
00144                               const DWFString&  zTitle,
00145                               DWFPackageReader* pPackageReader )
00146         throw( DWFException );
00147 
00148 private:
00149 
00150     DWFSection::Factory::tMap   _oFactories;
00151     static DWFSection::Factory  _koDefaultFactory;
00152 
00153 private:
00154 
00155     DWFSectionBuilder( const DWFSectionBuilder& );
00156     DWFSectionBuilder& operator=( const DWFSectionBuilder& );
00157 };
00158 
00159 
00160 }
00161 
00162 
00163 #endif

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