29 #ifndef Pt_Remoting_Responder_h
30 #define Pt_Remoting_Responder_h
32 #include <Pt/Remoting/Api.h>
33 #include <Pt/System/EventLoop.h>
34 #include <Pt/SerializationContext.h>
35 #include <Pt/Composer.h>
36 #include <Pt/Decomposer.h>
37 #include <Pt/NonCopyable.h>
44 class ServiceDefinition;
45 class ServiceProcedure;
77 virtual bool isFailed()
const = 0;
118 #endif // Pt_Remoting_Responder_h
Core module.
Definition: Allocator.h:33
Manages the decomposition of types during serialization.
Definition: Decomposer.h:44
const ServiceProcedure * activeProcedure() const
The currently executing procedure.
Definition: Responder.h:74
void beginCall(System::EventLoop &loop)
Begins the service procedure call.
virtual ~Responder()
Destructor.
Remote service definition.
Definition: Api-ServiceDefinition.h:22
Pt::Decomposer * endCall()
Ends the service procedure call.
Context for the serialization of types.
Definition: Api-SerializationContext.h:22
virtual void onCancel()=0
Cancels all operations.
void cancel()
Resets to initial state.
Dispatches requests to a service procedure.
Definition: Responder.h:50
XML-RPC service procedure.
Definition: ServiceProcedure.h:45
Responder(ServiceDefinition &serviceDef)
Construct with Service.
virtual void onReady()=0
The service procedure has finished.
Thread-safe event loop supporting I/O multiplexing and Timers.
Definition: EventLoop.h:74
Composes types during serialization.
Definition: Composer.h:43
Protects derived classes from being copied.
Definition: NonCopyable.h:54
Pt::Composer ** setProcedure(const std::string &name)
Sets the service procedure.