RSB
0.16.1
|
Callback object used to register one method for a server. More...
#include <LocalServer.h>
Public Member Functions | |
Callback (const std::string &requestType=rsc::runtime::typeName(typeid(RequestType)), const std::string &replyType=rsc::runtime::typeName(typeid(ReplyType))) | |
virtual boost::shared_ptr< ReplyType > | call (const std::string &methodName, boost::shared_ptr< RequestType > input)=0 |
Implement this method to perform actions. More... | |
Public Member Functions inherited from rsb::patterns::LocalServer<>::CallbackBase | |
virtual const std::string & | getRequestType () const |
virtual const std::string & | getReplyType () const |
Public Member Functions inherited from rsb::patterns::LocalServer<>::IntlCallback | |
virtual | ~IntlCallback () |
Private Member Functions | |
EventPtr | intlCall (const std::string &methodName, EventPtr request) |
Additional Inherited Members | |
Protected Member Functions inherited from rsb::patterns::LocalServer<>::CallbackBase | |
CallbackBase (const std::string &requestType, const std::string &replyType) | |
Protected Attributes inherited from rsb::patterns::LocalServer<>::CallbackBase | |
std::string | requestType |
std::string | replyType |
Callback object used to register one method for a server.
RequestType | the data type of the request payload |
ReplyType | the data type of the reply payload |
Definition at line 152 of file LocalServer.h.
|
inline |
Definition at line 155 of file LocalServer.h.
|
pure virtual |
Implement this method to perform actions.
methodName | called method |
input | input data for the method |
std::exception | all exceptions based on this type are automatically caught and delivered to the remote server |
|
inlineprivatevirtual |
Implements rsb::patterns::LocalServer<>::IntlCallback.
Definition at line 175 of file LocalServer.h.