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

An adapter to use boost functions without out return values as calblacks. More...

#include <LocalServer.h>

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

Public Types

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

Public Member Functions

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

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

An adapter to use boost functions without out return values as calblacks.

Author
jwienke

Definition at line 297 of file LocalServer.h.

Member Typedef Documentation

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

Type of functions that can be accepted.

Definition at line 302 of file LocalServer.h.

Constructor & Destructor Documentation

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

Definition at line 304 of file LocalServer.h.

Member Function Documentation

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

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

Definition at line 312 of file LocalServer.h.

Member Data Documentation

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

Definition at line 322 of file LocalServer.h.


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