RepHandler.hh
bool RunLocalCallback(const transport::ProtoMsg &_msgReq, transport::ProtoMsg &_msgRep)
Executes the local callback registered for this handler.
Definition: RepHandler.hh:132
RepHandler()=default
Definition: AdvertiseOptions.hh:28
STL class.
virtual std::string RepTypeName() const =0
Get the message type name used in the service response.
std::string HandlerUuid() const
Get the unique UUID of this handler.
Definition: RepHandler.hh:81
virtual bool RunCallback(const std::string &_req, std::string &_rep)=0
Executes the callback registered for this handler.
A portable class for representing a Universally Unique Identifier.
Definition: Uuid.hh:45
void SetCallback(const std::function< bool(const Req &, Rep &)> &_cb)
Set the callback for this handler.
Definition: RepHandler.hh:125
virtual std::string ReqTypeName() const
Get the message type name used in the service request.
Definition: RepHandler.hh:189
virtual std::string RepTypeName() const
Get the message type name used in the service response.
Definition: RepHandler.hh:195
virtual bool RunLocalCallback(const transport::ProtoMsg &_msgReq, transport::ProtoMsg &_msgRep)=0
Executes the local callback registered for this handler.
std::string hUuid
Unique handler's UUID.
Definition: RepHandler.hh:101
T endl(T... args)
Interface class used to manage a replier handler.
Definition: RepHandler.hh:52
virtual std::string ReqTypeName() const =0
Get the message type name used in the service request.
bool RunCallback(const std::string &_req, std::string &_rep)
Executes the callback registered for this handler.
Definition: RepHandler.hh:156