RSB  0.19.0
rsb::patterns::LocalServer<>::Callback< RequestType, void > Class Template Referenceabstract

#include <LocalServer.h>

Inheritance diagram for rsb::patterns::LocalServer<>::Callback< RequestType, void >:
Inheritance graph
Collaboration diagram for rsb::patterns::LocalServer<>::Callback< RequestType, void >:
Collaboration graph

Public Member Functions

 Callback (const std::string &requestType=rsc::runtime::typeName(typeid(RequestType)), const std::string &replyType=rsc::runtime::typeName(typeid(void)))
 
virtual void 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
 

Detailed Description

template<>
template<class RequestType>
class rsb::patterns::LocalServer<>::Callback< RequestType, void >

Definition at line 187 of file LocalServer.h.

Constructor & Destructor Documentation

template<class RequestType >
rsb::patterns::LocalServer<>::Callback< RequestType, void >::Callback ( const std::string &  requestType = rsc::runtime::typeName(typeid(RequestType)),
const std::string &  replyType = rsc::runtime::typeName(typeid(void)) 
)
inline

Definition at line 190 of file LocalServer.h.

Member Function Documentation

template<class RequestType >
virtual void rsb::patterns::LocalServer<>::Callback< RequestType, void >::call ( const std::string &  methodName,
boost::shared_ptr< RequestType >  input 
)
pure virtual

Implement this method to perform actions.

Parameters
methodNamecalled method
inputinput data for the method
Exceptions
std::exceptionall exceptions based on this type are automatically caught and delivered to the remote server
template<class RequestType >
EventPtr rsb::patterns::LocalServer<>::Callback< RequestType, void >::intlCall ( const std::string &  methodName,
EventPtr  request 
)
inlineprivatevirtual

Implements rsb::patterns::LocalServer<>::IntlCallback.

Definition at line 209 of file LocalServer.h.


The documentation for this class was generated from the following file: