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

#include <Server.h>

Inheritance diagram for rsb::patterns::Server<>::Callback< void, ReplyType >:
Inheritance graph
Collaboration diagram for rsb::patterns::Server<>::Callback< void, ReplyType >:
Collaboration graph

Public Member Functions

 Callback (const std::string &requestType=rsc::runtime::typeName(typeid(void)), const std::string &replyType=rsc::runtime::typeName(typeid(ReplyType)))
 
virtual boost::shared_ptr
< ReplyType > 
call (const std::string &methodName)=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 ReplyType>
class rsb::patterns::Server<>::Callback< void, ReplyType >

Definition at line 200 of file Server.h.

Constructor & Destructor Documentation

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

Definition at line 203 of file Server.h.

Member Function Documentation

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

Implement this method to perform actions.

Parameters
methodNamecalled method
Returns
result data for the method
Exceptions
std::exceptionall exceptions based on this type are automatically caught and delivered to the remote server
template<class ReplyType >
AnnotatedData rsb::patterns::Server<>::Callback< void, ReplyType >::intlCall ( const std::string &  methodName,
boost::shared_ptr< void >  input 
)
inlineprivatevirtual

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

Definition at line 222 of file Server.h.


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