Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > contrib > by-pkgid > 68d373e54fb21da3730c08bede406633 > files > 871

libCommonC++1.9_3-devel-1.9.4-2mdk.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>xml.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body bgcolor="#ffffff">
<!-- Generated by Doxygen 1.2.10 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</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="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
<hr><h1>xml.h</h1><a href="xml_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">// Copyright (C) 2001 Open Source Telecom Corporation.</font>
00002 <font class="comment">//  </font>
00003 <font class="comment">// This program is free software; you can redistribute it and/or modify</font>
00004 <font class="comment">// it under the terms of the GNU General Public License as published by</font>
00005 <font class="comment">// the Free Software Foundation; either version 2 of the License, or</font>
00006 <font class="comment">// (at your option) any later version.</font>
00007 <font class="comment">// </font>
00008 <font class="comment">// This program is distributed in the hope that it will be useful,</font>
00009 <font class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</font>
00010 <font class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</font>
00011 <font class="comment">// GNU General Public License for more details.</font>
00012 <font class="comment">// </font>
00013 <font class="comment">// You should have received a copy of the GNU General Public License</font>
00014 <font class="comment">// along with this program; if not, write to the Free Software </font>
00015 <font class="comment">// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</font>
00016 <font class="comment">// </font>
00017 <font class="comment">// As a special exception to the GNU General Public License, permission is </font>
00018 <font class="comment">// granted for additional uses of the text contained in its release </font>
00019 <font class="comment">// of APE.</font>
00020 <font class="comment">// </font>
00021 <font class="comment">// The exception is that, if you link the APE library with other files</font>
00022 <font class="comment">// to produce an executable, this does not by itself cause the</font>
00023 <font class="comment">// resulting executable to be covered by the GNU General Public License.</font>
00024 <font class="comment">// Your use of that executable is in no way restricted on account of</font>
00025 <font class="comment">// linking the APE library code into it.</font>
00026 <font class="comment">//</font>
00027 <font class="comment">// This exception does not however invalidate any other reasons why</font>
00028 <font class="comment">// the executable file might be covered by the GNU General Public License.</font>
00029 <font class="comment">//</font>
00030 <font class="comment">// This exception applies only to the code released under the </font>
00031 <font class="comment">// name APE.  If you copy code from other releases into a copy of</font>
00032 <font class="comment">// APE, as the General Public License permits, the exception does</font>
00033 <font class="comment">// not apply to the code that you add in this way.  To avoid misleading</font>
00034 <font class="comment">// anyone as to the status of such modified files, you must delete</font>
00035 <font class="comment">// this exception notice from them.</font>
00036 <font class="comment">// </font>
00037 <font class="comment">// If you write modifications of your own for APE, it is your choice</font>
00038 <font class="comment">// whether to permit this exception to apply to your modifications.</font>
00039 <font class="comment">// If you do not wish that, delete this exception notice.  </font>
00040 
00041 <font class="preprocessor">#ifndef CCXX_XML_H_</font>
00042 <font class="preprocessor"></font><font class="preprocessor">#define CCXX_XML_H_</font>
00043 <font class="preprocessor"></font>
00044 <font class="preprocessor">#ifndef CCXX_CONFIG_H_</font>
00045 <font class="preprocessor"></font><font class="preprocessor">#include &lt;cc++/config.h&gt;</font>
00046 <font class="preprocessor">#endif</font>
00047 <font class="preprocessor"></font>
00048 <font class="preprocessor">#ifndef CCXX_THREAD_H_</font>
00049 <font class="preprocessor"></font><font class="preprocessor">#include &lt;<a class="code" href="thread_8h.html">cc++/thread.h</a>&gt;</font>
00050 <font class="preprocessor">#endif</font>
00051 <font class="preprocessor"></font>
00052 <font class="preprocessor">#ifndef CCXX_SLOG_H_</font>
00053 <font class="preprocessor"></font><font class="preprocessor">#include &lt;<a class="code" href="slog_8h.html">cc++/slog.h</a>&gt;</font>
00054 <font class="preprocessor">#endif</font>
00055 <font class="preprocessor"></font>
00056 <font class="preprocessor">#ifdef  CCXX_NAMESPACES</font>
00057 <font class="preprocessor"></font><font class="keyword">namespace </font>ost {
00058 <font class="preprocessor">#endif</font>
00059 <font class="preprocessor"></font>
<a name="l00070"></a><a class="code" href="classost_1_1_x_m_l_stream.html">00070</a> <font class="keyword">class </font>XMLStream
00071 {
00072 <font class="keyword">public</font>:
<a name="l00082"></a><a class="code" href="classost_1_1_x_m_l_stream.html#a0">00082</a>         <font class="keyword">virtual</font> <font class="keywordtype">bool</font> <a class="code" href="classost_1_1_x_m_l_stream.html#a0">Open</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *resource)<font class="keyword"></font>
00083 <font class="keyword">                </font>{<font class="keywordflow">return</font> <font class="keyword">true</font>;};
00084 
<a name="l00089"></a><a class="code" href="classost_1_1_x_m_l_stream.html#a1">00089</a>         <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classost_1_1_x_m_l_stream.html#a1">Close</a>(<font class="keywordtype">void</font>)<font class="keyword"></font>
00090 <font class="keyword">                </font>{<font class="keywordflow">return</font>;};
00091 
<a name="l00097"></a><a class="code" href="classost_1_1_x_m_l_stream.html#a2">00097</a>         <font class="keyword">virtual</font> slog_level_t <a class="code" href="classost_1_1_x_m_l_stream.html#a2">getLogging</a>(<font class="keywordtype">void</font>)<font class="keyword"></font>
00098 <font class="keyword">                </font>{<font class="keywordflow">return</font> SLOG_CRITICAL;};
00099 
<a name="l00106"></a><a class="code" href="classost_1_1_x_m_l_stream.html#a3">00106</a>         <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classost_1_1_x_m_l_stream.html#a3">comment</a>(<font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> *text)<font class="keyword"></font>
00107 <font class="keyword">                </font>{<font class="keywordflow">return</font>;};
00108 
00116         <font class="keyword">virtual</font> <font class="keywordtype">int</font> <a class="code" href="classost_1_1_x_m_l_stream.html#a4">Read</a>(<font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> *buffer, <font class="keywordtype">int</font> len) = 0;
00117 
00125         <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classost_1_1_x_m_l_stream.html#a5">characters</a>(<font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> *text, <font class="keywordtype">unsigned</font> len) = 0;
00126 
<a name="l00130"></a><a class="code" href="classost_1_1_x_m_l_stream.html#a6">00130</a>         <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classost_1_1_x_m_l_stream.html#a6">startDocument</a>(<font class="keywordtype">void</font>)<font class="keyword"></font>
00131 <font class="keyword">                </font>{<font class="keywordflow">return</font>;};
00132 
<a name="l00136"></a><a class="code" href="classost_1_1_x_m_l_stream.html#a7">00136</a>         <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classost_1_1_x_m_l_stream.html#a7">endDocument</a>(<font class="keywordtype">void</font>)<font class="keyword"></font>
00137 <font class="keyword">                </font>{<font class="keywordflow">return</font>;};
00138 
00145         <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classost_1_1_x_m_l_stream.html#a8">startElement</a>(<font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> *name, <font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> **attr) = 0;
00146 
00152         <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classost_1_1_x_m_l_stream.html#a9">endElement</a>(<font class="keyword">const</font> <font class="keywordtype">unsigned</font> <font class="keywordtype">char</font> *name) = 0;
00153 
00160         <font class="keywordtype">bool</font> <a class="code" href="classost_1_1_x_m_l_stream.html#a10">Parse</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *resource = NULL);
00161 };
00162 
<a name="l00172"></a><a class="code" href="classost_1_1_x_m_l_r_p_c.html">00172</a> <font class="keyword">class </font>XMLRPC : <font class="keyword">public</font> XMLStream
00173 {
00174 <font class="keyword">private</font>:
00175         <font class="keywordtype">char</font> *buffer;
00176         strstream *strbuf;
00177         size_t bufsize;
00178         <font class="keywordtype">bool</font> structflag;
00179         <font class="keywordtype">bool</font> reply, fault;
00180         <font class="keywordtype">unsigned</font> array;
00181         
00182 <font class="keyword">protected</font>:
00192         <font class="keyword">virtual</font> <font class="keywordtype">bool</font> <a class="code" href="classost_1_1_x_m_l_r_p_c.html#b0">Post</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *resource, <font class="keyword">const</font> <font class="keywordtype">char</font> *msg);               
00193         
00197         <font class="keywordtype">void</font> <a class="code" href="classost_1_1_x_m_l_r_p_c.html#b1">begStruct</a>(<font class="keywordtype">void</font>);
00198 
00199 <font class="keyword">public</font>:
00205         <a class="code" href="classost_1_1_x_m_l_r_p_c.html#a0">XMLRPC</a>(size_t bufsize);
00206         
00210         <font class="keyword">virtual</font> <a class="code" href="classost_1_1_x_m_l_r_p_c.html#a1">~XMLRPC</a>();
00211 
00215         <font class="keywordtype">void</font> <a class="code" href="classost_1_1_x_m_l_r_p_c.html#a2">begArray</a>(<font class="keywordtype">void</font>);
00216 
00220         <font class="keywordtype">void</font> <a class="code" href="classost_1_1_x_m_l_r_p_c.html#a3">endArray</a>(<font class="keywordtype">void</font>);
00221         
00227         <font class="keywordtype">void</font> <a class="code" href="classost_1_1_x_m_l_r_p_c.html#a4">Invoke</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *method);
00228 
00234         <font class="keywordtype">void</font> <a class="code" href="classost_1_1_x_m_l_r_p_c.html#a5">Response</a>(<font class="keywordtype">bool</font> fault);
00235         
00241         <font class="keywordtype">void</font> <a class="code" href="classost_1_1_x_m_l_r_p_c.html#a6">addParam</a>(<font class="keywordtype">bool</font> value);
00242 
00249         <font class="keywordtype">void</font> <a class="code" href="classost_1_1_x_m_l_r_p_c.html#a7">addMember</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *name, <font class="keywordtype">bool</font> value);
00250 
00256         <font class="keywordtype">void</font> <a class="code" href="classost_1_1_x_m_l_r_p_c.html#a6">addParam</a>(<font class="keywordtype">long</font> value);
00257 
00264         <font class="keywordtype">void</font> <a class="code" href="classost_1_1_x_m_l_r_p_c.html#a7">addMember</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *name, <font class="keywordtype">long</font> value);
00265 
00271         <font class="keywordtype">void</font> <a class="code" href="classost_1_1_x_m_l_r_p_c.html#a6">addParam</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *string);
00272 
00279         <font class="keywordtype">void</font> <a class="code" href="classost_1_1_x_m_l_r_p_c.html#a7">addMember</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *name, <font class="keyword">const</font> <font class="keywordtype">char</font> *value);
00280 
00284         <font class="keywordtype">void</font> <a class="code" href="classost_1_1_x_m_l_r_p_c.html#a12">endStruct</a>(<font class="keywordtype">void</font>);
00285         
00292         <font class="keywordtype">bool</font> <a class="code" href="classost_1_1_x_m_l_r_p_c.html#a13">Send</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *resource);
00293 };
00294         
00295 <font class="preprocessor">#ifdef  CCXX_NAMESPACES</font>
00296 <font class="preprocessor"></font>};
00297 <font class="preprocessor">#endif</font>
00298 <font class="preprocessor"></font>
00299 <font class="preprocessor">#endif</font>
00300 <font class="preprocessor"></font>
</pre></div><hr><address><small>Generated at Fri Jan 4 18:51:46 2002 for CommonC++ by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.gif" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.10 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>,
 &copy;&nbsp;1997-2001</small></address>
</body>
</html>