MIRA
Public Types | Public Member Functions | Protected Attributes | List of all members
ServiceInterfaceHandler Class Reference

ServiceInterfaceHandler implements a AbstractInterfaceCallbackHandler. More...

#include <fw/ServiceInterfaceHandler.h>

Inheritance diagram for ServiceInterfaceHandler:
Inheritance graph
[legend]

Public Types

typedef boost::function< void(const std::string &, const std::string &)> Callback
 

Public Member Functions

 ServiceInterfaceHandler (DispatcherThread *dispatcher, DiagnosticsModulePtr module=NULL)
 
virtual void newServiceInterface (const std::string &interface, const std::string &service)
 Implemented from AbstractInterfaceCallbackHandler. More...
 
virtual void run (DispatcherThread *dispatcher)
 Implemented from IRunnable. More...
 
void registerCallback (const std::string &interface, Callback cb)
 
void setDiagnosticsModule (DiagnosticsModulePtr module)
 
DiagnosticsModulePtr getDiagnosticsModule ()
 

Protected Attributes

DiagnosticsModulePtr mDiagnosticsModule
 

Detailed Description

ServiceInterfaceHandler implements a AbstractInterfaceCallbackHandler.

It can be added to a DispatcherThread as a signal handler to allow handling of the announcement of new services that implement a special interface in the thread of the dispatcher.

Member Typedef Documentation

◆ Callback

typedef boost::function<void (const std::string&, const std::string&)> Callback

Constructor & Destructor Documentation

◆ ServiceInterfaceHandler()

ServiceInterfaceHandler ( DispatcherThread dispatcher,
DiagnosticsModulePtr  module = NULL 
)
inline

Member Function Documentation

◆ newServiceInterface()

virtual void newServiceInterface ( const std::string &  interface,
const std::string &  service 
)
virtual

◆ run()

virtual void run ( DispatcherThread dispatcher)
virtual

Implemented from IRunnable.

Implements IRunnable.

◆ registerCallback()

void registerCallback ( const std::string &  interface,
Callback  cb 
)

◆ setDiagnosticsModule()

void setDiagnosticsModule ( DiagnosticsModulePtr  module)
inlineinherited

◆ getDiagnosticsModule()

DiagnosticsModulePtr getDiagnosticsModule ( )
inlineinherited

Member Data Documentation

◆ mDiagnosticsModule

DiagnosticsModulePtr mDiagnosticsModule
protectedinherited

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