47 #ifndef _MIRA_ABSTRACTCHANNELSUBSCRIBER_H_ 48 #define _MIRA_ABSTRACTCHANNELSUBSCRIBER_H_ 51 #include <boost/shared_ptr.hpp> 61 class AbstractChannel;
79 mDispatcher(dispatcher), mEnabled(true) {}
86 virtual void signal();
88 virtual void unsignal();
94 void enable(
bool enabled) { mEnabled = enabled; }
110 virtual void detachChannel() = 0;
virtual ~AbstractChannelSubscriber()
Definition: AbstractChannelSubscriber.h:81
bool isEnabled() const
Returns if this subscriber is enabled.
Definition: AbstractChannelSubscriber.h:99
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
AbstractChannelSubscriber(DispatcherThread *dispatcher, DiagnosticsModulePtr diagnosticsModule)
Constructs a subscriber and enables it by default.
Definition: AbstractChannelSubscriber.h:77
void enable(bool enabled)
Enable or disable the subscriber.
Definition: AbstractChannelSubscriber.h:94
#define MIRA_FRAMEWORK_EXPORT
Definition: FrameworkExports.h:61
DispatcherThread * mDispatcher
Definition: AbstractChannelSubscriber.h:116
Definition: AbstractChannel.h:70
bool mEnabled
Is the subscriber enabled.
Definition: AbstractChannelSubscriber.h:117
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
boost::shared_ptr< AbstractChannelSubscriber > AbstractChannelSubscriberPtr
Definition: AbstractChannelSubscriber.h:120
DispatcherThread * getDispatcher()
Definition: AbstractChannelSubscriber.h:112
Definition: AbstractChannelSubscriber.h:70
Base class for modules that want to use diagnostics and set the current status.
Definition: Status.h:138