FDO .NET API Reference | Feature Data Objects |
00001 /* 00002 * Copyright (C) 2004-2006 Autodesk, Inc. 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of version 2.1 of the GNU Lesser 00006 * General Public License as published by the Free Software Foundation. 00007 * 00008 * This library is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 * Lesser General Public License for more details. 00012 * 00013 * You should have received a copy of the GNU Lesser General Public 00014 * License along with this library; if not, write to the Free Software 00015 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00016 * 00017 */ 00018 00019 #pragma once 00020 00021 #include "FDO\Commands\Schema\mgIPhysicalPropertyMapping.h" 00022 #include "FDO\Commands\Schema\mgPhysicalElementMapping.h" 00023 00024 class FdoPhysicalPropertyMapping; 00025 00026 BEGIN_NAMESPACE_OSGEO_COMMON_XML 00027 public __gc class XmlSaxContext; 00028 public __gc class XmlAttributeCollection; 00029 public __gc class XmlWriter; 00030 END_NAMESPACE_OSGEO_COMMON_XML 00031 00032 BEGIN_NAMESPACE_OSGEO_FDO_XML 00033 public __gc class XmlFlags; 00034 END_NAMESPACE_OSGEO_FDO_XML 00035 00036 BEGIN_NAMESPACE_OSGEO_FDO_COMMANDS_SCHEMA 00037 00038 /// \ingroup (OSGeoFDOCommandsSchema) 00039 /// \brief 00040 /// PhysicalPropertyMapping is an abstract class that acts as a base class for all 00041 /// Physical Schema Mapping property overrides. 00042 public __gc class PhysicalPropertyMapping : public NAMESPACE_OSGEO_FDO_COMMANDS_SCHEMA::PhysicalElementMapping, public NAMESPACE_OSGEO_FDO_COMMANDS_SCHEMA::IPhysicalPropertyMapping 00043 { 00044 public: 00045 /// \brief 00046 /// Initializes this Physical Property Mapping from its XML attributes. Called when 00047 /// this element is deserialized from XML. This function decodes any 00048 /// encoded property names (See _writeXml). Can be extended to handle 00049 /// particular XML attributes for derived classes. 00050 /// 00051 /// \param context 00052 /// Input context contain information about the current deserialization operation 00053 /// \param attributes 00054 /// Input the XML attributes. 00055 /// 00056 /// \return 00057 /// Returns nothing 00058 /// 00059 System::Void InitFromXml(NAMESPACE_OSGEO_COMMON_XML::XmlSaxContext* context, NAMESPACE_OSGEO_COMMON_XML::XmlAttributeCollection* attributes); 00060 00061 /// \brief 00062 /// Writes this Physical Property Mapping to XML. Called when 00063 /// this element is serialized to XML. This function converts (encodes) 00064 /// property names to be valid XML element names. Can be extended to handle 00065 /// particular XML attributes and sub-elements for derived classes. 00066 /// <p><b>Note:</b> Schema Override elements that do not require name encoding 00067 /// should be based on PhysicalElementMapping instead of this class. 00068 /// 00069 /// \param xmlWriter 00070 /// Input write the element to this XML writer 00071 /// \param flags 00072 /// Input flags that control the writing of the element. 00073 /// 00074 /// \return 00075 /// Returns nothing 00076 /// 00077 System::Void WriteXml(NAMESPACE_OSGEO_COMMON_XML::XmlWriter* xmlWriter, NAMESPACE_OSGEO_FDO_XML::XmlFlags* flags); 00078 00079 /// \cond DOXYGEN-IGNORE 00080 public protected: 00081 PhysicalPropertyMapping(System::IntPtr unmanaged, System::Boolean autoDelete); 00082 /// \endcond 00083 00084 public private: 00085 inline FdoPhysicalPropertyMapping* GetImpObj(); 00086 }; 00087 00088 END_NAMESPACE_OSGEO_FDO_COMMANDS_SCHEMA 00089 00090
Comments or suggestions? Send us feedback. |