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 BEGIN_NAMESPACE_OSGEO_FDO_CONNECTIONS 00022 public __gc __interface IConnection; 00023 END_NAMESPACE_OSGEO_FDO_CONNECTIONS 00024 00025 BEGIN_NAMESPACE_OSGEO_FDO_XML 00026 public __gc class XmlSpatialContextReader; 00027 public __gc class XmlSpatialContextWriter; 00028 public __gc class XmlSpatialContextFlags; 00029 00030 /// \ingroup (OSGeoFDOXml) 00031 /// \brief 00032 /// This static class provides the ability to serialize and deserialize spatial contexts 00033 /// to and from GML. 00034 public __gc __sealed class XmlSpatialContextSerializer 00035 { 00036 public: 00037 /// \brief 00038 /// Reads all Spatial Contexts from an XML document to an FDO connection. 00039 /// 00040 /// \param connection 00041 /// Input the FDO connection. 00042 /// \param reader 00043 /// Input XML document reader. 00044 /// 00045 static System::Void XmlDeserialize(NAMESPACE_OSGEO_FDO_CONNECTIONS::IConnection* connection, NAMESPACE_OSGEO_FDO_XML::XmlSpatialContextReader* reader); 00046 00047 /// \brief 00048 /// Reads all Spatial Contexts from an XML document to an FDO connection. 00049 /// 00050 /// \param connection 00051 /// Input the FDO connection. 00052 /// \param reader 00053 /// Input XML document reader. 00054 /// \param flags 00055 /// Input options for controlling the 00056 /// deserializing of the Spatial Contexts. If NULL then the 00057 /// default flags are used. 00058 /// 00059 static System::Void XmlDeserialize(NAMESPACE_OSGEO_FDO_CONNECTIONS::IConnection* connection, NAMESPACE_OSGEO_FDO_XML::XmlSpatialContextReader* reader, NAMESPACE_OSGEO_FDO_XML::XmlSpatialContextFlags* flags); 00060 00061 /// \brief 00062 /// writes all Spatial Contexts from the FDO connection to an XML document. 00063 /// 00064 /// \param connection 00065 /// Input the FDO connection. 00066 /// \param writer 00067 /// Input XML document writer. 00068 /// 00069 static System::Void XmlSerialize(NAMESPACE_OSGEO_FDO_CONNECTIONS::IConnection* connection, NAMESPACE_OSGEO_FDO_XML::XmlSpatialContextWriter* writer); 00070 00071 /// \brief 00072 /// writes all Spatial Contexts from the FDO connection to an XML document. 00073 /// 00074 /// \param connection 00075 /// Input the FDO connection. 00076 /// \param writer 00077 /// Input XML document writer. 00078 /// \param flags 00079 /// Input options for controlling the 00080 /// serializing of the Spatial Contexts. If NULL then the 00081 /// default flags are used. 00082 /// 00083 static System::Void XmlSerialize(NAMESPACE_OSGEO_FDO_CONNECTIONS::IConnection* connection, NAMESPACE_OSGEO_FDO_XML::XmlSpatialContextWriter* writer, NAMESPACE_OSGEO_FDO_XML::XmlSpatialContextFlags* flags); 00084 00085 private: 00086 XmlSpatialContextSerializer(){} 00087 }; 00088 00089 END_NAMESPACE_OSGEO_FDO_XML 00090 00091
Comments or suggestions? Send us feedback. |