Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > dabb57319acb4393549d883bdd5bc220 > files > 56

libgdal0-devel-1.1.8-2mdk.ppc.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta name="robots" content="noindex">
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>cpl_minixml.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body bgcolor="#ffffff">
<!-- Generated by Doxygen 1.2.3-20001105 on Sat Dec 21 14:01:57 2002 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center>
<hr><h1>cpl_minixml.h</h1><div class="fragment"><pre>00001 <font class="comment">/**********************************************************************</font>
00002 <font class="comment"> * $Id: cpl_minixml_h-source.html,v 1.5 2002/12/21 19:13:12 warmerda Exp $</font>
00003 <font class="comment"> *</font>
00004 <font class="comment"> * Project:  CPL - Common Portability Library</font>
00005 <font class="comment"> * Purpose:  Declarations for MiniXML Handler.</font>
00006 <font class="comment"> * Author:   Frank Warmerdam, warmerdam@pobox.com</font>
00007 <font class="comment"> *</font>
00008 <font class="comment"> **********************************************************************</font>
00009 <font class="comment"> * Copyright (c) 2001, Frank Warmerdam</font>
00010 <font class="comment"> *</font>
00011 <font class="comment"> * Permission is hereby granted, free of charge, to any person obtaining a</font>
00012 <font class="comment"> * copy of this software and associated documentation files (the "Software"),</font>
00013 <font class="comment"> * to deal in the Software without restriction, including without limitation</font>
00014 <font class="comment"> * the rights to use, copy, modify, merge, publish, distribute, sublicense,</font>
00015 <font class="comment"> * and/or sell copies of the Software, and to permit persons to whom the</font>
00016 <font class="comment"> * Software is furnished to do so, subject to the following conditions:</font>
00017 <font class="comment"> * </font>
00018 <font class="comment"> * The above copyright notice and this permission notice shall be included</font>
00019 <font class="comment"> * in all copies or substantial portions of the Software.</font>
00020 <font class="comment"> * </font>
00021 <font class="comment"> * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</font>
00022 <font class="comment"> * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</font>
00023 <font class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL</font>
00024 <font class="comment"> * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</font>
00025 <font class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING</font>
00026 <font class="comment"> * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER </font>
00027 <font class="comment"> * DEALINGS IN THE SOFTWARE.</font>
00028 <font class="comment"> **********************************************************************</font>
00029 <font class="comment"> *</font>
00030 <font class="comment"> * $Log: cpl_minixml_h-source.html,v $
00030 <font class="comment"> * Revision 1.5  2002/12/21 19:13:12  warmerda
00030 <font class="comment"> * updated
00030 <font class="comment"> *</font>
00031 <font class="comment"> * Revision 1.6  2002/11/16 20:38:34  warmerda</font>
00032 <font class="comment"> * added support for literals like DOCTYPE</font>
00033 <font class="comment"> *</font>
00034 <font class="comment"> * Revision 1.5  2002/05/24 04:09:10  warmerda</font>
00035 <font class="comment"> * added clone and SetXMLValue functions</font>
00036 <font class="comment"> *</font>
00037 <font class="comment"> * Revision 1.4  2002/03/05 14:26:57  warmerda</font>
00038 <font class="comment"> * expanded tabs</font>
00039 <font class="comment"> *</font>
00040 <font class="comment"> * Revision 1.3  2002/01/23 20:45:06  warmerda</font>
00041 <font class="comment"> * handle &lt;?...?&gt; and comment elements</font>
00042 <font class="comment"> *</font>
00043 <font class="comment"> * Revision 1.2  2001/12/06 18:13:49  warmerda</font>
00044 <font class="comment"> * added CPLAddXMLChild and CPLCreateElmentAndValue</font>
00045 <font class="comment"> *</font>
00046 <font class="comment"> * Revision 1.1  2001/11/16 15:39:48  warmerda</font>
00047 <font class="comment"> * New</font>
00048 <font class="comment"> *</font>
00049 <font class="comment"> **********************************************************************/</font>
00050 
00051 <font class="preprocessor">#ifndef _CPL_MINIXML_H_INCLUDED</font>
00052 <font class="preprocessor"></font><font class="preprocessor">#define _CPL_MINIXML_H_INCLUDED</font>
00053 <font class="preprocessor"></font>
00054 <font class="preprocessor">#include "<a class="code" href="cpl_port_h.html">cpl_port.h</a>"</font>
00055 
00056 CPL_C_START
00057 
00058 <font class="keyword">typedef</font> <font class="keyword">enum</font> 
00059 {
00060     CXT_Element = 0,
00061     CXT_Text = 1,
00062     CXT_Attribute = 2,
00063     CXT_Comment = 3,
00064     CXT_Literal = 4
00065 } CPLXMLNodeType;
00066 
00067 <font class="keyword">typedef</font> <font class="keyword">struct </font>_CPLXMLNode
00068 {
00069     CPLXMLNodeType      eType;
00070     
00071     <font class="keywordtype">char</font>                *pszValue;
00072 
00073     <font class="keyword">struct </font>_CPLXMLNode  *psNext;
00074     <font class="keyword">struct </font>_CPLXMLNode  *psChild;
00075 } CPLXMLNode;
00076 
00077 
00078 CPLXMLNode CPL_DLL *CPLParseXMLString( <font class="keyword">const</font> <font class="keywordtype">char</font> * );
00079 <font class="keywordtype">void</font>       CPL_DLL  CPLDestroyXMLNode( CPLXMLNode * );
00080 CPLXMLNode CPL_DLL *CPLGetXMLNode( CPLXMLNode *poRoot, 
00081                                    <font class="keyword">const</font> <font class="keywordtype">char</font> *pszPath );
00082 <font class="keyword">const</font> <font class="keywordtype">char</font> CPL_DLL *CPLGetXMLValue( CPLXMLNode *poRoot, 
00083                                     <font class="keyword">const</font> <font class="keywordtype">char</font> *pszPath, 
00084                                     <font class="keyword">const</font> <font class="keywordtype">char</font> *pszDefault );
00085 CPLXMLNode CPL_DLL *CPLCreateXMLNode( CPLXMLNode *poParent, 
00086                                       CPLXMLNodeType eType,
00087                                       <font class="keyword">const</font> <font class="keywordtype">char</font> *pszText );
00088 <font class="keywordtype">char</font>       CPL_DLL *CPLSerializeXMLTree( CPLXMLNode *psNode );
00089 <font class="keywordtype">void</font>       CPL_DLL  CPLAddXMLChild( CPLXMLNode *psParent,
00090                                     CPLXMLNode *psChild );
00091 CPLXMLNode CPL_DLL *CPLCreateXMLElementAndValue( CPLXMLNode *psParent,
00092                                                  <font class="keyword">const</font> <font class="keywordtype">char</font> *pszName,
00093                                                  <font class="keyword">const</font> <font class="keywordtype">char</font> *pszValue );
00094 CPLXMLNode CPL_DLL *CPLCloneXMLTree( CPLXMLNode *psTree );
00095 <font class="keywordtype">int</font>        CPL_DLL CPLSetXMLValue( CPLXMLNode *psRoot,  <font class="keyword">const</font> <font class="keywordtype">char</font> *pszPath,
00096                                    <font class="keyword">const</font> <font class="keywordtype">char</font> *pszValue );
00097 
00098 CPL_C_END
00099 
00100 <font class="preprocessor">#endif </font><font class="comment">/* _CPL_MINIXML_H_INCLUDED */</font>
</div></pre><hr><address><small>Generated at Sat Dec 21 14:01:57 2002 for GDAL by
<a href="http://www.stack.nl/~dimitri/doxygen/index.html">
<img src="doxygen.gif" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.3-20001105 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>,
 &copy;&nbsp;1997-2000</small></address>
</body>
</html>