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 "Runtime\Disposable.h" 00022 00023 class FdoXmlSaxContext; 00024 00025 BEGIN_NAMESPACE_OSGEO_COMMON_XML 00026 00027 public __gc class XmlReader; 00028 00029 /// \ingroup (OSGeoFDOCommonXml) 00030 /// \brief 00031 /// XmlSaxContext provides contextual information to the 00032 /// SaxHandler callback implementations when an XML document parse 00033 /// is in progress. This class provides very rudimentary functionality such as 00034 /// error reporting and access to the XmlReader doing the parse. Applications 00035 /// can pass extra information by sub-classing from this class. 00036 public __gc class XmlSaxContext : public NAMESPACE_OSGEO_RUNTIME::Disposable 00037 { 00038 public: 00039 /// \brief 00040 /// Constructs the default Sax Context 00041 /// 00042 /// \param reader 00043 /// Input the XmlReader that is parsing the XML document. 00044 /// 00045 /// \return 00046 /// Returns XmlSaxContext 00047 /// 00048 XmlSaxContext(NAMESPACE_OSGEO_COMMON_XML::XmlReader* reader); 00049 00050 /// \brief 00051 /// Gets the XmlReader that is parsing the XML document. 00052 /// 00053 /// \return 00054 /// Returns XmlReader 00055 /// 00056 __property NAMESPACE_OSGEO_COMMON_XML::XmlReader* get_Reader(); 00057 00058 /// \brief 00059 /// Constructs an XmlSaxContext object based on an unmanaged instance of the object 00060 /// 00061 /// \param unmanaged 00062 /// Input A Pointer to the unmanaged object. 00063 /// 00064 /// \param autoDelete 00065 /// Input Indicates if the constructed object should be automatically deleted 00066 /// once it no longer referenced. 00067 /// 00068 XmlSaxContext(System::IntPtr unmanaged, System::Boolean autoDelete); 00069 00070 /// \cond DOXYGEN-IGNORE 00071 protected: 00072 System::Void ReleaseUnmanagedObject(); 00073 00074 public private: 00075 inline FdoXmlSaxContext* GetImpObj(); 00076 }; 00077 /// \endcond 00078 00079 END_NAMESPACE_OSGEO_COMMON_XML 00080 00081
Comments or suggestions? Send us feedback. |