FDO API Reference Feature Data Objects

ElementMappingCollection.h

Go to the documentation of this file.
00001 #ifndef FDO_XMLELEMENTMAPPINGCOLLECTION
00002 #define FDO_XMLELEMENTMAPPINGCOLLECTION
00003 
00004 //
00005 // Copyright (C) 2004-2006  Autodesk, Inc.
00006 // 
00007 // This library is free software; you can redistribute it and/or
00008 // modify it under the terms of version 2.1 of the GNU Lesser
00009 // General Public License as published by the Free Software Foundation.
00010 // 
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 // 
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00019 //
00020 
00021 #ifdef _WIN32
00022 #pragma once
00023 #endif
00024 
00025 #include <FdoStd.h>
00026 #include <Fdo/Xml/ElementMapping.h>
00027 #include <Fdo/Commands/Schema/PhysicalElementMapping.h>
00028 
00029 class FdoXmlClassMapping;
00030 
00031 /// \brief
00032 /// FdoXmlElementMappingCollection is a collection of Element Mapping objects.
00033 class FdoXmlElementMappingCollection : public FdoPhysicalElementMappingCollection<FdoXmlElementMapping>
00034 {
00035 public:
00036     /// \brief
00037     /// Constructs an empty XML element mapping collection.
00038     /// 
00039     /// \param parent 
00040     /// Input the parent FdoXmlSchemaMapping or FdoXmlClassMapping.
00041     /// 
00042     /// \return
00043     /// Returns FdoXmlElementMappingCollection
00044     /// 
00045     FDO_API static FdoXmlElementMappingCollection* Create(FdoPhysicalElementMapping* parent);
00046 
00047 protected:
00048 /// \cond DOXYGEN-IGNORE
00049     FdoXmlElementMappingCollection() : FdoPhysicalElementMappingCollection<FdoXmlElementMapping>()
00050     {
00051     }
00052 
00053     FdoXmlElementMappingCollection(FdoPhysicalElementMapping* parent) : FdoPhysicalElementMappingCollection<FdoXmlElementMapping>(parent)
00054     {
00055     }
00056     virtual ~FdoXmlElementMappingCollection()
00057     {
00058     }
00059 
00060     virtual void Dispose();
00061 /// \endcond
00062 };
00063 
00064 /// \brief
00065 /// FdoXmlElementMappingsP is a FdoPtr on FdoXmlElementMappingCollection, provided for convenience.
00066 typedef FdoPtr<FdoXmlElementMappingCollection> FdoXmlElementMappingsP;
00067 
00068 #endif
00069 
00070 

Comments or suggestions? Send us feedback.