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>
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);
83 virtual void onEndInvoke() = 0;
162 OnMethodResponseBegin,
186 Formatter _formatter;
198 #endif // Pt_XmlRpc_Client_h
Core module.
Definition: pt-gfx-images.dox:14
Manages the decomposition of types during serialization.
Definition: Decomposer.h:44
Reads XML as a Stream of XML Nodes.
Definition: XmlReader.h:80
Composes serializable types during serialization.
Definition: Composer.h:269
Convert between unicode and UTF-8.
Definition: Utf8Codec.h:44
void finishMessage()
Formats the XML-RPC message.
void processResult(std::istream &is)
Parses the XML-RPC result.
A client for remote procedure calls.
Definition: Client.h:53
void beginResult(std::istream &is)
Parses the XML-RPC result.
bool advanceMessage()
Formats the XML-RPC message.
void setFault(int rc, const char *msg)
Fails the current procedure.
virtual ~Client()
Destructor.
bool parseResult()
Parses the XML-RPC result.
bool isFailed() const
Indicates if the procedure has failed.
XML document node.
Definition: Node.h:51
Composes types during serialization.
Definition: Composer.h:43
A client for remote procedure calls.
Definition: Client.h:48
virtual void onBeginInvoke()=0
An asynchronous remote procedure is invoked.
virtual void onInvoke()=0
A synchronous remote procedure is called.
void beginMessage(std::ostream &os)
Formats the XML-RPC message.
virtual void onCancel()
Cancels the remote procedure call.
XML-RPC fault exception.
Definition: Fault.h:44