47 #ifndef _MIRA_SERVICEINTERFACEHANDLER_H_ 48 #define _MIRA_SERVICEINTERFACEHANDLER_H_ 73 typedef boost::function<void (const std::string&, const std::string&)>
Callback;
79 virtual void newServiceInterface(
const std::string& interface,
80 const std::string& service);
85 void registerCallback(
const std::string& interface, Callback cb);
91 std::queue<std::pair<std::string, std::string>> mNewServiceQueue;
92 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:73
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
Framework export macro declaration.
Dispatcher class that allows registration of handler functions that need to be called from within the...
#define MIRA_FRAMEWORK_EXPORT
Definition: FrameworkExports.h:61
boost::shared_ptr< ServiceInterfaceHandler > ServiceInterfaceHandlerPtr
Definition: ServiceInterfaceHandler.h:95
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:131
ServiceInterfaceHandler implements a AbstractInterfaceCallbackHandler.
Definition: ServiceInterfaceHandler.h:67
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:138
ServiceInterfaceHandler(DispatcherThread *dispatcher, DiagnosticsModulePtr module=NULL)
Definition: ServiceInterfaceHandler.h:75