FDO API Reference Feature Data Objects

SpatialContextSerializer.h

Go to the documentation of this file.
00001 #ifndef FDO_XML_SPATIALCONTEXTSERIALIZER_H
00002 #define FDO_XML_SPATIALCONTEXTSERIALIZER_H
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/SpatialContextReader.h>
00027 #include <Fdo/Xml/SpatialContextWriter.h>
00028 #include <Fdo/Connections/IConnection.h>
00029 
00030 /// \brief
00031 /// This static class provides the ability to serialize and deserialize spatial contexts
00032 /// to and from GML.
00033 class FdoXmlSpatialContextSerializer
00034 {
00035 public:
00036     /// \brief
00037     /// reads all Spatial Contexts from an XML document to an FDO 
00038     /// connection.
00039     /// 
00040     /// \param connection 
00041     /// Input the FDO connection.
00042     /// \param reader 
00043     /// Input XML document reader.
00044     /// \param flags 
00045     /// Input options for controlling the 
00046     /// deserializing of the Spatial Contexts. If NULL then the 
00047     /// default flags are used.
00048     /// 
00049     FDO_API static void XmlDeserialize( 
00050         FdoIConnection*                 connection, 
00051         FdoXmlSpatialContextReader*     reader,
00052         FdoXmlSpatialContextFlags*      flags = NULL
00053     );
00054 
00055     /// \brief
00056     /// writes all Spatial Contexts from the FDO connection to 
00057     /// an XML document.
00058     /// 
00059     /// \param connection 
00060     /// Input the FDO connection.
00061     /// \param writer 
00062     /// Input XML document writer.
00063     /// \param flags 
00064     /// Input options for controlling the 
00065     /// serializing of the Spatial Contexts. If NULL then the 
00066     /// default flags are used.
00067     /// 
00068     FDO_API static void XmlSerialize( 
00069         FdoIConnection*                 connection, 
00070         FdoXmlSpatialContextWriter*     writer,
00071         FdoXmlSpatialContextFlags*      flags = NULL
00072     );
00073 
00074 };
00075 
00076 #endif
00077 
00078 

Comments or suggestions? Send us feedback.