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

A callback which allows any kind of reply type but is restricted to a single request type. More...

#include <Server.h>

Inheritance diagram for rsb::patterns::Server<>::AnyReplyTypeCallback< RequestType >:
Inheritance graph
Collaboration diagram for rsb::patterns::Server<>::AnyReplyTypeCallback< RequestType >:
Collaboration graph

Public Member Functions

 AnyReplyTypeCallback (const std::string &requestType=rsc::runtime::typeName(typeid(RequestType)))
 
virtual AnnotatedData 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<>::AnyReplyTypeCallback< RequestType >

A callback which allows any kind of reply type but is restricted to a single request type.

Author
jwienke
Template Parameters
RequestTyperequest type class

Definition at line 100 of file Server.h.

Constructor & Destructor Documentation

template<class RequestType >
rsb::patterns::Server<>::AnyReplyTypeCallback< RequestType >::AnyReplyTypeCallback ( const std::string &  requestType = rsc::runtime::typeName(typeid(RequestType)))
inline

Definition at line 103 of file Server.h.

Member Function Documentation

template<class RequestType >
virtual AnnotatedData rsb::patterns::Server<>::AnyReplyTypeCallback< RequestType >::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
Returns
result data for the method with type name added
Exceptions
std::exceptionall exceptions based on this type are automatically caught and delivered to the remote server
template<class RequestType >
AnnotatedData rsb::patterns::Server<>::AnyReplyTypeCallback< RequestType >::intlCall ( const std::string &  methodName,
boost::shared_ptr< void >  input 
)
inlineprivatevirtual

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

Definition at line 121 of file Server.h.


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