📄 pxmlrpc_8h-source.html
字号:
<!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>pxmlrpc.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center><hr><h1>pxmlrpc.h</h1><a href="pxmlrpc_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment"> * pxmlrpc.h</span>00003 <span class="comment"> *</span>00004 <span class="comment"> * XML/RPC support</span>00005 <span class="comment"> *</span>00006 <span class="comment"> * Portable Windows Library</span>00007 <span class="comment"> *</span>00008 <span class="comment"> * Copyright (c) 2002 Equivalence Pty. Ltd.</span>00009 <span class="comment"> *</span>00010 <span class="comment"> * The contents of this file are subject to the Mozilla Public License</span>00011 <span class="comment"> * Version 1.0 (the "License"); you may not use this file except in</span>00012 <span class="comment"> * compliance with the License. You may obtain a copy of the License at</span>00013 <span class="comment"> * http://www.mozilla.org/MPL/</span>00014 <span class="comment"> *</span>00015 <span class="comment"> * Software distributed under the License is distributed on an "AS IS"</span>00016 <span class="comment"> * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See</span>00017 <span class="comment"> * the License for the specific language governing rights and limitations</span>00018 <span class="comment"> * under the License.</span>00019 <span class="comment"> *</span>00020 <span class="comment"> * The Original Code is Portable Windows Library.</span>00021 <span class="comment"> *</span>00022 <span class="comment"> * The Initial Developer of the Original Code is Equivalence Pty. Ltd.</span>00023 <span class="comment"> *</span>00024 <span class="comment"> * Contributor(s): ______________________________________.</span>00025 <span class="comment"> *</span>00026 <span class="comment"> * $Log: pxmlrpc.h,v $</span>00027 <span class="comment"> * Revision 1.20 2004/05/17 06:05:20 csoutheren</span>00028 <span class="comment"> * Changed "make docs" to use doxygen</span>00029 <span class="comment"> * Added new config file and main page</span>00030 <span class="comment"> *</span>00031 <span class="comment"> * Revision 1.19 2003/04/15 07:08:36 robertj</span>00032 <span class="comment"> * Changed read and write from streams for base array classes so operates in</span>00033 <span class="comment"> * the same way for both PIntArray and PArray<int> etc</span>00034 <span class="comment"> *</span>00035 <span class="comment"> * Revision 1.18 2003/04/15 03:00:41 robertj</span>00036 <span class="comment"> * Added array support to XML/RPC</span>00037 <span class="comment"> * Fixed XML/RPC parsing when lots of white space in raw XML, caused by</span>00038 <span class="comment"> * big fix to base XML parser not returning internal data elements.</span>00039 <span class="comment"> *</span>00040 <span class="comment"> * Revision 1.17 2003/01/28 05:08:07 robertj</span>00041 <span class="comment"> * Fixed copy constructor on function arguments and return value</span>00042 <span class="comment"> *</span>00043 <span class="comment"> * Revision 1.16 2002/12/16 06:57:15 robertj</span>00044 <span class="comment"> * Added ability to specify certain elemets (by name) that are exempt from</span>00045 <span class="comment"> * the indent formatting. Useful for XML/RPC where leading white space is</span>00046 <span class="comment"> * not ignored by all servers.</span>00047 <span class="comment"> * Improved the macros for defining RPC functions.</span>00048 <span class="comment"> *</span>00049 <span class="comment"> * Revision 1.15 2002/12/13 01:04:56 robertj</span>00050 <span class="comment"> * Added copy constructor and assignment operator to XML/RPC structs</span>00051 <span class="comment"> *</span>00052 <span class="comment"> * Revision 1.14 2002/12/10 04:44:43 robertj</span>00053 <span class="comment"> * Added support in PTime for ISO 8601 format.</span>00054 <span class="comment"> *</span>00055 <span class="comment"> * Revision 1.13 2002/12/09 04:06:18 robertj</span>00056 <span class="comment"> * Added macros for defining multi-argument functions</span>00057 <span class="comment"> *</span>00058 <span class="comment"> * Revision 1.12 2002/12/04 02:09:26 robertj</span>00059 <span class="comment"> * Changed macro name prefix to PXMLRPC</span>00060 <span class="comment"> *</span>00061 <span class="comment"> * Revision 1.11 2002/12/04 00:31:13 robertj</span>00062 <span class="comment"> * Fixed GNU compatibility</span>00063 <span class="comment"> *</span>00064 <span class="comment"> * Revision 1.10 2002/12/04 00:15:56 robertj</span>00065 <span class="comment"> * Large enhancement to create automatically encoding and decoding structures</span>00066 <span class="comment"> * using macros to build a class.</span>00067 <span class="comment"> *</span>00068 <span class="comment"> * Revision 1.9 2002/11/06 22:47:24 robertj</span>00069 <span class="comment"> * Fixed header comment (copyright etc)</span>00070 <span class="comment"> *</span>00071 <span class="comment"> * Revision 1.8 2002/10/02 08:54:34 craigs</span>00072 <span class="comment"> * Added support for XMLRPC server</span>00073 <span class="comment"> *</span>00074 <span class="comment"> * Revision 1.7 2002/09/16 01:08:59 robertj</span>00075 <span class="comment"> * Added #define so can select if #pragma interface/implementation is used on</span>00076 <span class="comment"> * platform basis (eg MacOS) rather than compiler, thanks Robert Monaghan.</span>00077 <span class="comment"> *</span>00078 <span class="comment"> * Revision 1.6 2002/08/13 03:02:07 robertj</span>00079 <span class="comment"> * Removed previous fix for memory leak, as object was already deleted.</span>00080 <span class="comment"> *</span>00081 <span class="comment"> * Revision 1.5 2002/08/13 01:55:00 craigs</span>00082 <span class="comment"> * Fixed memory leak on PXMLRPCRequest class</span>00083 <span class="comment"> *</span>00084 <span class="comment"> * Revision 1.4 2002/08/06 01:04:03 robertj</span>00085 <span class="comment"> * Fixed missing pragma interface/implementation</span>00086 <span class="comment"> *</span>00087 <span class="comment"> * Revision 1.3 2002/07/12 05:51:14 craigs</span>00088 <span class="comment"> * Added structs to XMLRPC response types</span>00089 <span class="comment"> *</span>00090 <span class="comment"> * Revision 1.2 2002/03/27 00:50:44 craigs</span>00091 <span class="comment"> * Fixed problems with parsing faults and creating structs</span>00092 <span class="comment"> *</span>00093 <span class="comment"> * Revision 1.1 2002/03/26 07:06:50 craigs</span>00094 <span class="comment"> * Initial version</span>00095 <span class="comment"> *</span>00096 <span class="comment"> */</span>00097 00098 <span class="preprocessor">#ifndef _PXMLRPC_H</span>00099 <span class="preprocessor"></span><span class="preprocessor">#define _PXMLRPC_H</span>00100 <span class="preprocessor"></span>00101 <span class="preprocessor">#ifdef P_USE_PRAGMA</span>00102 <span class="preprocessor"></span><span class="preprocessor">#pragma interface</span>00103 <span class="preprocessor"></span><span class="preprocessor">#endif</span>00104 <span class="preprocessor"></span>00105 <span class="preprocessor">#include <<a class="code" href="pxml_8h.html">ptclib/pxml.h</a>></span>00106 <span class="preprocessor">#include <<a class="code" href="url_8h.html">ptclib/url.h</a>></span>00107 00108 00109 <span class="keyword">class </span><a class="code" href="classPXMLRPCBlock.html">PXMLRPCBlock</a>;00110 <span class="keyword">class </span><a class="code" href="classPXMLRPCVariableBase.html">PXMLRPCVariableBase</a>;00111 <span class="keyword">class </span><a class="code" href="classPXMLRPCStructBase.html">PXMLRPCStructBase</a>;00112 00113 00115 <a name="l00116"></a><a class="code" href="classPXMLRPC.html">00116</a> <span class="keyword">class </span><a class="code" href="classPXMLRPC.html">PXMLRPC</a> : <span class="keyword">public</span> <a class="code" href="classPObject.html">PObject</a>00117 {00118 <a class="code" href="object_8h.html#a27">PCLASSINFO</a>(<a class="code" href="classPXMLRPC.html">PXMLRPC</a>, <a class="code" href="classPObject.html">PObject</a>);00119 <span class="keyword">public</span>:00120 <span class="keyword">enum</span> {00121 <a class="code" href="classPXMLRPC.html#s21s0">CannotCreateRequestXML</a> = 100,00122 <a class="code" href="classPXMLRPC.html#s21s1">CannotParseResponseXML</a>,00123 <a class="code" href="classPXMLRPC.html#s21s2">CannotParseRequestXML</a>,00124 <a class="code" href="classPXMLRPC.html#s21s3">HTTPPostFailed</a>,00125 <a class="code" href="classPXMLRPC.html#s21s4">CannotReadResponseContentBody</a>,00126 <a class="code" href="classPXMLRPC.html#s21s5">ResponseRootNotMethodResponse</a>,00127 <a class="code" href="classPXMLRPC.html#s21s6">ResponseEmpty</a>,00128 <a class="code" href="classPXMLRPC.html#s21s7">ResponseUnknownFormat</a>,00129 <a class="code" href="classPXMLRPC.html#s21s8">ParamNotValue</a>,00130 <a class="code" href="classPXMLRPC.html#s21s9">ScalarWithoutElement</a>,00131 <a class="code" href="classPXMLRPC.html#s21s10">ParamNotStruct</a>,00132 <a class="code" href="classPXMLRPC.html#s21s11">MemberIncomplete</a>,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -