RepHandler.hh
Go to the documentation of this file.
Interface class used to manage a replier handler.
Definition: RepHandler.hh:48
T endl(T... args)
std::string HandlerUuid() const
Get the unique UUID of this handler.
Definition: RepHandler.hh:77
RepHandler()=default
STL class.
A portable class for representing a Universally Unique Identifier.
Definition: Uuid.hh:41
virtual std::string ReqTypeName() const
Get the message type name used in the service request.
Definition: RepHandler.hh:176
void SetCallback(const std::function< bool(const Req &, Rep &)> &_cb)
Set the callback for this handler.
Definition: RepHandler.hh:112
virtual std::string RepTypeName() const
Get the message type name used in the service response.
Definition: RepHandler.hh:182
bool RunCallback(const std::string &_req, std::string &_rep)
Executes the callback registered for this handler.
Definition: RepHandler.hh:143
bool RunLocalCallback(const transport::ProtoMsg &_msgReq, transport::ProtoMsg &_msgRep)
Executes the local callback registered for this handler.
Definition: RepHandler.hh:119
*brief Advertise a new service without any output parameter *In this version the callback is a free function *param [in] _topic Topic name associated to the service *param [in] _cb Callback to handle the service request with the *following void(* _cb)(const RequestT &_req)
Definition: Node.hh:527
std::string hUuid
Unique handler's UUID.
Definition: RepHandler.hh:91
Definition: AdvertiseOptions.hh:27