47 #ifndef _MIRA_ABSTRACTDEFERREDINVOKER_H_ 48 #define _MIRA_ABSTRACTDEFERREDINVOKER_H_ 51 #include <boost/shared_ptr.hpp> 59 class AbstractDeferredInvoker;
85 const std::string& service,
const std::string& method) :
103 virtual void invoke() = 0;
const std::string & getCallId() const
Returns the unique ID of the RPC call that is about to be invoked by this invoker.
Definition: AbstractDeferredInvoker.h:93
std::string mMethodName
Definition: AbstractDeferredInvoker.h:115
const std::string & getMethodName() const
Returns the name of the method that is invoked.
Definition: AbstractDeferredInvoker.h:109
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
Abstract interface for DeferredInvoker which is a class to support different RPC backends.
Definition: AbstractDeferredInvoker.h:80
std::string mCallId
Definition: AbstractDeferredInvoker.h:113
const std::string & getServiceName() const
Returns the name of the service where the method is invoked.
Definition: AbstractDeferredInvoker.h:106
AbstractDeferredInvoker(const std::string &callId, const std::string &service, const std::string &method)
Definition: AbstractDeferredInvoker.h:84
Handler that is called when a deferred RPC call was executed and finished and therefore when the resp...
Definition: AbstractDeferredInvoker.h:67
virtual void invoke()=0
Invokes the RPC call that is represented by this DeferredInvoker.
virtual void onRPCfinished(AbstractDeferredInvoker *invoker)=0
called upon finish of the RPC call, the ID of the call is passed as parameter.
virtual ~DeferredInvokerFinishHandler()
Definition: AbstractDeferredInvoker.h:70
boost::shared_ptr< AbstractDeferredInvoker > AbstractDeferredInvokerPtr
Definition: AbstractDeferredInvoker.h:119
std::string mServiceName
Definition: AbstractDeferredInvoker.h:114
void setFinishHandler(DeferredInvokerFinishHandler *handler)
Sets a handler that is called after the RPC call was invoked and has finished.
Definition: AbstractDeferredInvoker.h:98
DeferredInvokerFinishHandler * mFinishHandler
Definition: AbstractDeferredInvoker.h:116
virtual ~AbstractDeferredInvoker()
Definition: AbstractDeferredInvoker.h:88