47 #ifndef _MIRA_SERVICEINTERFACEHANDLER_H_ 48 #define _MIRA_SERVICEINTERFACEHANDLER_H_ 72 typedef boost::function<void (const std::string&, const std::string&)>
Callback;
79 const std::string& service);
90 std::queue<std::pair<std::string, std::string>> mNewServiceQueue;
91 std::multimap<std::string, Callback> mCallbacks;
Abstract interface for handler(s) that get called upon new services with a special interface get avai...
boost::function< void(const std::string &, const std::string &)> Callback
Definition: ServiceInterfaceHandler.h:72
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
Dispatcher class that allows registration of handler functions that need to be called from within the...
virtual void newServiceInterface(const std::string &interface, const std::string &service)
Implemented from AbstractInterfaceCallbackHandler.
virtual void run(DispatcherThread *dispatcher)
Implemented from IRunnable.
void registerCallback(const std::string &interface, Callback cb)
boost::shared_ptr< ServiceInterfaceHandler > ServiceInterfaceHandlerPtr
Definition: ServiceInterfaceHandler.h:94
Definition: Runnable.h:91
Class that can be used whenever you want to have ONE thread where several handlers are assigned to...
Definition: DispatcherThread.h:130
ServiceInterfaceHandler implements a AbstractInterfaceCallbackHandler.
Definition: ServiceInterfaceHandler.h:66
Abstract interface for derived handler(s).
Definition: AbstractInterfaceCallbackHandler.h:62
Base class for modules that want to use diagnostics and set the current status.
Definition: Status.h:136
ServiceInterfaceHandler(DispatcherThread *dispatcher, DiagnosticsModulePtr module=NULL)
Definition: ServiceInterfaceHandler.h:74