RSB
0.7.0
|
Callback object used to register one method for a server. More...
#include <Server.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. | |
Public Member Functions inherited from rsb::patterns::Server::CallbackBase | |
virtual std::string | getRequestType () const |
virtual std::string | getReplyType () const |
Public Member Functions inherited from rsb::patterns::Server::IntlCallback | |
virtual | ~IntlCallback () |
virtual AnnotatedData | intlCall (const std::string &methodName, boost::shared_ptr< void > input)=0 |
Private Member Functions | |
AnnotatedData | intlCall (const std::string &methodName, boost::shared_ptr< void > input) |
Additional Inherited Members | |
Protected Member Functions inherited from rsb::patterns::Server::CallbackBase | |
CallbackBase (const std::string &requestType, const std::string &replyType) | |
Protected Attributes inherited from rsb::patterns::Server::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 |
|
inline |
|
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 |
|
inlineprivate |