29 #ifndef Pt_XmlRpc_Responder_h
30 #define Pt_XmlRpc_Responder_h
32 #include <Pt/XmlRpc/Api.h>
33 #include <Pt/XmlRpc/Fault.h>
34 #include <Pt/XmlRpc/Formatter.h>
35 #include <Pt/Remoting/Responder.h>
36 #include <Pt/Xml/InputSource.h>
37 #include <Pt/Xml/XmlReader.h>
38 #include <Pt/TextStream.h>
39 #include <Pt/NonCopyable.h>
61 bool isFailed()
const;
65 virtual void onReady();
68 virtual void onCancel();
77 virtual void onFault(
const Fault& fault) = 0;
86 virtual void onResult() = 0;
94 void beginMessage(std::istream& is);
119 void beginResult(std::ostream& os);
121 void beginFault(std::ostream& os,
const Fault& fault);
129 bool advanceResult();
145 void setFault(
int rc,
const char* msg);
174 Formatter _formatter;
185 #endif // Pt_XmlRpc_Responder_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
Remote service definition.
Definition: ServiceDefinition.h:19
Thread-safe event loop supporting I/O multiplexing and Timers.
Definition: EventLoop.h:72
Text output stream for unicode character conversion.
XML document node.
Definition: Node.h:50
Dispatches requests to a service procedure.
Definition: Responder.h:49
Dispatches requests to a service procedure.
Definition: Responder.h:48
Manages the decomposition of types during serialization.
Definition: Decomposer.h:43
Convert between unicode and UTF-8.
Definition: Utf8Codec.h:43