47 #ifndef _MIRA_ABSTRACTCHANNELSUBSCRIBER_H_ 48 #define _MIRA_ABSTRACTCHANNELSUBSCRIBER_H_ 51 #include <boost/shared_ptr.hpp> 61 class AbstractChannel;
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
virtual AbstractChannel * getChannel()=0
Returns the channel we are subscribed on, or NULL otherwise.
virtual void signal()
Is called from the subscribed Channel whenever data changes.
void enable(bool enabled)
Enable or disable the subscriber.
Definition: AbstractChannelSubscriber.h:94
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:130
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:136
virtual void detachChannel()=0
Is called by AbstractChannel::removeSubscriber() when the subscriber detaches from the channel it is ...