FDO .NET API Reference Feature Data Objects

mgXmlSkipElementHandler.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 #include "Common\Xml\mgXmlSaxHandler.h"
00022 
00023 class FdoXmlSkipElementHandler;
00024 
00025 BEGIN_NAMESPACE_OSGEO_COMMON_XML
00026 
00027 /// \ingroup (OSGeoFDOCommonXml)
00028 /// \brief
00029 /// XmlSkipHandler can be used to skip an XML element, when reading an 
00030 /// XML document via XmlReader. It is a XmlSaxHandler with no callback 
00031 /// implementations. Therefore, if another XmlSaxHandler's XmlStartElement
00032 /// callback returns a XmlSkipElementHandler then there are no more SAX events
00033 /// until the end of the current element is reached.
00034 public __gc __sealed class XmlSkipElementHandler : public NAMESPACE_OSGEO_COMMON_XML::XmlSaxHandler
00035 {
00036 public:
00037     /// \brief
00038     /// Constructs a SAX Handler for skipping an element.
00039     /// 
00040     /// \return
00041     /// Returns XmlSkipElementHandler
00042     /// 
00043     XmlSkipElementHandler();
00044 
00045     /// \brief
00046     /// Constructs a XmlSkipElementHandler based on an unmanaged instance of the object
00047     /// 
00048     /// \param unmanaged 
00049     /// Input A Pointer to the unmanaged object.
00050     /// 
00051     /// \param autoDelete 
00052     /// Input Indicates if the constructed object should be automatically deleted 
00053     /// once it no longer referenced.
00054     /// 
00055     XmlSkipElementHandler(System::IntPtr unmanaged, System::Boolean autoDelete);
00056 
00057 /// \cond DOXYGEN-IGNORE
00058 public private:
00059     inline FdoXmlSkipElementHandler* GetImpObj();
00060 /// \endcond
00061 };
00062 
00063 END_NAMESPACE_OSGEO_COMMON_XML
00064 
00065 

Comments or suggestions? Send us feedback.