FDO .NET API Reference Feature Data Objects

mgXmlContext.h

Go to the documentation of this file.
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 class FdoXmlContext;
00022 
00023 BEGIN_NAMESPACE_OSGEO_FDO_XML
00024 public __gc class XmlFlags;
00025 
00026 /// \ingroup (OSGeoFDOXml)
00027 /// \brief
00028 /// Default context for deserializing from XML documents via
00029 /// XmlDeserializable.
00030 public __gc class XmlContext : public NAMESPACE_OSGEO_COMMON_XML::XmlSaxContext
00031 {
00032 public:
00033     /// \brief
00034     /// Constructs a context for parsing FDO Deserializable items
00035     /// 
00036     /// \param flags 
00037     /// Input controls the reading of the elements from the document.
00038     /// 
00039     /// \param xmlReader 
00040     /// Input the XML reader.
00041     /// 
00042     XmlContext(NAMESPACE_OSGEO_FDO_XML::XmlFlags* flags, NAMESPACE_OSGEO_COMMON_XML::XmlReader* xmlReader);
00043 
00044     /// \brief
00045     /// Decodes any element name that was encoded to be XML-compatible.
00046     /// 
00047     /// \param name 
00048     /// Input the name to Decode.
00049     /// 
00050     System::String* DecodeName (System::String* name);
00051 
00052     /// \brief
00053     /// Retrieves the current XML flags.
00054     /// 
00055     /// \return
00056     /// Returns the XML flags associated to the Context
00057     /// 
00058     NAMESPACE_OSGEO_FDO_XML::XmlFlags* GetFlags();
00059 
00060 public private:
00061     XmlContext(System::IntPtr unmanaged, System::Boolean autoDelete) : NAMESPACE_OSGEO_COMMON_XML::XmlSaxContext(unmanaged, autoDelete)
00062     {
00063         
00064     }
00065 
00066     inline FdoXmlContext* GetImpObj();
00067 };
00068 
00069 END_NAMESPACE_OSGEO_FDO_XML
00070 
00071 

Comments or suggestions? Send us feedback.