PartContainer.h

00001 //
00002 //  Copyright (c) 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 //  $Header: //DWF/Development/Components/Internal/DWF Toolkit/v7.6/develop/global/src/dwf/opc/PartContainer.h#2 $
00019 //  $DateTime: 2008/06/18 18:08:14 $
00020 //  $Author: gaoje $
00021 //  $Change: 101166 $
00022 //  $Revision: #2 $
00023 //
00024 //
00025 
00026 #ifndef _DWFTK_OPCPARTCONTAINER_H
00027 #define _DWFTK_OPCPARTCONTAINER_H
00028 
00029 #include "dwfcore/Owner.h"
00030 using namespace DWFCore;
00031 
00032 #include "dwf/Toolkit.h"
00033 #include "dwf/opc/Part.h"
00034 
00035 namespace DWFToolkit
00036 {
00037 
00038 
00048 class OPCPartContainer : public DWFOwner
00049                        _DWFTK_EXPORT_API_MEMORY_CONTROL_BASE_MEMBER
00050 {
00051 
00052 public:
00053 
00057     _DWFTK_API
00058     OPCPartContainer()
00059         throw();
00060 
00064     _DWFTK_API
00065     virtual ~OPCPartContainer()
00066         throw();
00067 
00076     _DWFTK_API
00077     void addPart( OPCPart* pPart, bool bOwn = false )
00078         throw();
00079 
00094     _DWFTK_API
00095     bool insertPart( OPCPart* pPart, OPCPart* pAfterPart, bool bOwn = false )
00096         throw();
00097 
00109     _DWFTK_API
00110     bool removePart( OPCPart* pPart, bool bOwnerDelete = true )
00111         throw();
00112 
00113     _DWFTK_API
00114     OPCPart::tIterator* parts()
00115         throw();
00116 
00117     _DWFTK_API
00118     OPCPart* part( DWFString zURI )
00119         throw();
00120 
00121 protected:
00122 
00123     _DWFTK_API
00124     virtual void notifyOwnableDeletion( DWFOwnable& rOwnable )
00125         throw( DWFException );
00126 
00127 private:
00128 
00129     OPCPart::tList _oParts;
00130 
00131 };
00132 
00133 }
00134 
00135 #endif

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