FDO .NET API Reference Feature Data Objects

mgXmlCharDataHandler.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 FdoXmlCharDataHandler;
00024 
00025 BEGIN_NAMESPACE_OSGEO_COMMON_XML
00026 
00027 /// \ingroup (OSGeoFDOCommonXml)
00028 /// \brief
00029 /// XmlCharDataHandler is convenience class for reading XML element content.
00030 /// When XmlReader encounters the start of an element with simple content, an object
00031 /// of this class can be constructed and pushed onto the XmlReader's SAX handler 
00032 /// stack. When the end of the element is reached, the object will contain all of
00033 /// the element's content.
00034 public __gc __sealed class XmlCharDataHandler : public NAMESPACE_OSGEO_COMMON_XML::XmlSaxHandler
00035 {
00036 public:
00037     /// \brief
00038     /// Constructs a Char Data Handler.
00039     /// 
00040     XmlCharDataHandler();
00041 
00042     /// \brief
00043     /// Gets the element content that has been read sofar. When the end of the
00044     /// element is reached, this will contain all of the element content.
00045     /// 
00046     /// \return
00047     /// Returns the element content.
00048     /// 
00049     __property System::String* get_RetString();
00050     
00051     /// \brief
00052     /// Constructs a DataHandler based on an unmanaged instance of the object
00053     /// 
00054     /// \param unmanaged 
00055     /// Input A Pointer to the unmanaged object.
00056     /// 
00057     /// \param autoDelete 
00058     /// Input Indicates if the constructed object should be automatically deleted 
00059     /// once it no longer referenced.
00060     /// 
00061     XmlCharDataHandler(System::IntPtr unmanaged, System::Boolean autoDelete);
00062 
00063 /// \cond DOXYGEN-IGNORE
00064 public private:
00065     inline FdoXmlCharDataHandler* GetImpObj();
00066 /// \endcond
00067 };
00068 END_NAMESPACE_OSGEO_COMMON_XML
00069 
00070 

Comments or suggestions? Send us feedback.