RSB  0.19.0
rsb::patterns::LocalServer<>::FunctionCallback< void, ReplyType > Class Template Reference

An adapter to use boost functions without a call argument for callbacks. More...

#include <LocalServer.h>

Inheritance diagram for rsb::patterns::LocalServer<>::FunctionCallback< void, ReplyType >:
Inheritance graph
Collaboration diagram for rsb::patterns::LocalServer<>::FunctionCallback< void, ReplyType >:
Collaboration graph

Public Types

typedef boost::function< typename boost::shared_ptr< ReplyType >void)> FunctionType
 Type of functions that can be accepted. More...
 

Public Member Functions

 FunctionCallback (FunctionType function, const std::string &requestType=rsc::runtime::typeName(typeid(void)), const std::string &replyType=rsc::runtime::typeName(typeid(ReplyType)))
 
- 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 &, EventPtr)
 

Private Attributes

FunctionType function
 

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 ReplyType>
class rsb::patterns::LocalServer<>::FunctionCallback< void, ReplyType >

An adapter to use boost functions without a call argument for callbacks.

Author
jwienke

Definition at line 331 of file LocalServer.h.

Member Typedef Documentation

template<class ReplyType >
typedef boost::function< typename boost::shared_ptr<ReplyType>void)> rsb::patterns::LocalServer<>::FunctionCallback< void, ReplyType >::FunctionType

Type of functions that can be accepted.

Definition at line 337 of file LocalServer.h.

Constructor & Destructor Documentation

template<class ReplyType >
rsb::patterns::LocalServer<>::FunctionCallback< void, ReplyType >::FunctionCallback ( FunctionType  function,
const std::string &  requestType = rsc::runtime::typeName(                        typeid(void)),
const std::string &  replyType = rsc::runtime::typeName(typeid(ReplyType)) 
)
inlineexplicit

Definition at line 339 of file LocalServer.h.

Member Function Documentation

template<class ReplyType >
EventPtr rsb::patterns::LocalServer<>::FunctionCallback< void, ReplyType >::intlCall ( const std::string &  ,
EventPtr   
)
inlineprivatevirtual

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

Definition at line 347 of file LocalServer.h.

Member Data Documentation

template<class ReplyType >
FunctionType rsb::patterns::LocalServer<>::FunctionCallback< void, ReplyType >::function
private

Definition at line 356 of file LocalServer.h.


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