29 #ifndef Pt_XmlRpc_Client_h
30 #define Pt_XmlRpc_Client_h
32 #include <Pt/XmlRpc/Api.h>
33 #include <Pt/XmlRpc/Fault.h>
34 #include <Pt/XmlRpc/Formatter.h>
35 #include <Pt/Remoting/Client.h>
36 #include <Pt/Xml/InputSource.h>
37 #include <Pt/Xml/XmlReader.h>
38 #include <Pt/Composer.h>
39 #include <Pt/Decomposer.h>
40 #include <Pt/Utf8Codec.h>
41 #include <Pt/TextStream.h>
42 #include <Pt/NonCopyable.h>
65 bool isFailed()
const;
68 virtual void onBeginCall(
Composer& r, Pt::Remoting::RemoteCall& method,
Decomposer** argv,
unsigned argc);
70 virtual void onEndCall();
72 virtual void onCall(
Composer& r, Pt::Remoting::RemoteCall& method,
Decomposer** argv,
unsigned argc);
74 virtual void onCancel();
81 virtual void onBeginInvoke() = 0;
83 virtual void onEndInvoke() = 0;
90 virtual void onInvoke() = 0;
98 void beginMessage(std::ostream& os);
106 bool advanceMessage();
114 void finishMessage();
121 void beginResult(std::istream& is);
144 void processResult(std::istream& is);
152 void setFault(
int rc,
const char* msg);
162 OnMethodResponseBegin,
186 Formatter _formatter;
198 #endif // Pt_XmlRpc_Client_h
XML-RPC fault exception.
Definition: Fault.h:43
Composes types during serialization.
Definition: Composer.h:42
Reads XML as a Stream of XML Nodes.
Definition: XmlReader.h:79
A client for remote procedure calls.
Definition: Client.h:52
Manages the composition of types during serialization.
Definition: Composer.h:268
A client for remote procedure calls.
Definition: Client.h:47
Text output stream for unicode character conversion.
XML document node.
Definition: Node.h:50
Manages the decomposition of types during serialization.
Definition: Decomposer.h:43
Convert between unicode and UTF-8.
Definition: Utf8Codec.h:43