RSB  0.9.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
rsb::patterns::Server<>::Callback< RequestType, void > Class Template Referenceabstract

#include <Server.h>

Inheritance diagram for rsb::patterns::Server<>::Callback< RequestType, void >:
Inheritance graph
Collaboration diagram for rsb::patterns::Server<>::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::Server<>::CallbackBase
virtual const std::string & getRequestType () const
 
virtual const std::string & getReplyType () const
 
- Public Member Functions inherited from rsb::patterns::Server<>::IntlCallback
virtual ~IntlCallback ()
 

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
 

Detailed Description

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

Definition at line 169 of file Server.h.

Constructor & Destructor Documentation

template<class RequestType >
rsb::patterns::Server<>::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 172 of file Server.h.

Member Function Documentation

template<class RequestType >
virtual void rsb::patterns::Server<>::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 >
AnnotatedData rsb::patterns::Server<>::Callback< RequestType, void >::intlCall ( const std::string &  methodName,
boost::shared_ptr< void >  input 
)
inlineprivatevirtual

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

Definition at line 191 of file Server.h.


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