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>
77 virtual bool isFailed()
const = 0;
Composes types during serialization.
Definition Composer.h:101
Manages the decomposition of types during serialization.
Definition Decomposer.h:121
NonCopyable()
Default constructor.
Definition NonCopyable.h:63
void cancel()
Resets to initial state.
Pt::Decomposer * endCall()
Ends the service procedure call.
Pt::Decomposer * call()
Synchronous call without EventLoop.
virtual ~Responder()
Destructor.
virtual void onCancel()=0
Cancels all operations.
const ServiceProcedure * activeProcedure() const
The currently executing procedure.
Definition Responder.h:74
Responder(ServiceDefinition &serviceDef)
Construct with Service.
virtual void onReady()=0
The service procedure has finished.
Pt::Composer ** setProcedure(const std::string &name)
Sets the service procedure.
void beginCall(System::EventLoop &loop)
Begins the service procedure call.
Remote service definition.
Definition ServiceDefinition.h:59
Service procedure.
Definition ServiceProcedure.h:46
Context for the serialization of types.
Definition Api-SerializationContext.h:26
Event loop of a thread or process.
Definition EventLoop.h:83
Remote services and clients.
Definition HttpService.h:39
Core module.
Definition Allocator.h:33