29 #ifndef PT_REMOTING_SERVICEPROCEDURE_H
30 #define PT_REMOTING_SERVICEPROCEDURE_H
32 #include <Pt/Remoting/Api.h>
33 #include <Pt/Remoting/Responder.h>
34 #include <Pt/System/EventLoop.h>
35 #include <Pt/Decomposer.h>
36 #include <Pt/Composer.h>
55 { _responder->setReady(); }
59 {
return onBeginArgs(); }
63 { onBeginCall(loop); }
67 {
return onEndCall(); }
77 virtual Composer** onBeginArgs() = 0;
90 class ServiceProcedureDef
93 virtual ~ServiceProcedureDef()
96 ServiceProcedure* createProcedure(Responder& r)
const
97 {
return this->onCreateProcedure(r); }
100 ServiceProcedureDef()
103 virtual ServiceProcedure* onCreateProcedure(Responder& r)
const = 0;
110 #endif // PT_REMOTING_SERVICEPROCEDURE_H
112 #include <Pt/Remoting/BasicProcedure.h>
113 #include <Pt/Remoting/ActiveProcedure.h>
XML-RPC service procedure.
Definition: ServiceProcedure.h:44
ServiceProcedure(Responder &r)
Constructor.
Definition: ServiceProcedure.h:72
Composes types during serialization.
Definition: Composer.h:42
void setReady()
Indicates that the procedure has finished.
Definition: ServiceProcedure.h:54
Thread-safe event loop supporting I/O multiplexing and Timers.
Definition: EventLoop.h:72
virtual ~ServiceProcedure()
Destructor.
Definition: ServiceProcedure.h:49
Dispatches requests to a service procedure.
Definition: Responder.h:49
Manages the decomposition of types during serialization.
Definition: Decomposer.h:43