|
MIRA
|
#include <fw/AbstractChannelSubscriber.h>

Public Member Functions | |
| AbstractChannelSubscriber (DispatcherThread *dispatcher, DiagnosticsModulePtr diagnosticsModule) | |
| Constructs a subscriber and enables it by default. More... | |
| virtual | ~AbstractChannelSubscriber () |
| virtual void | signal () |
| Is called from the subscribed Channel whenever data changes. More... | |
| virtual void | unsignal () |
| void | enable (bool enabled) |
| Enable or disable the subscriber. More... | |
| bool | isEnabled () const |
| Returns if this subscriber is enabled. More... | |
| virtual AbstractChannel * | getChannel ()=0 |
| Returns the channel we are subscribed on, or NULL otherwise. More... | |
| virtual void | detachChannel ()=0 |
| Is called by AbstractChannel::removeSubscriber() when the subscriber detaches from the channel it is subscribed on. More... | |
| DispatcherThread * | getDispatcher () |
| void | setDiagnosticsModule (DiagnosticsModulePtr module) |
| DiagnosticsModulePtr | getDiagnosticsModule () |
Protected Member Functions | |
| virtual void | run (DispatcherThread *dispatcher)=0 |
| Called from dispatcher thread this runnable is attached to, whenever the runnable should be executed. More... | |
Protected Attributes | |
| DispatcherThread * | mDispatcher |
| bool | mEnabled |
| Is the subscriber enabled. More... | |
| DiagnosticsModulePtr | mDiagnosticsModule |
Abstract base class for all typed ChannelSubscriber. This base class is used by SubscriberHandler to store different ChannelSubscriber within the same queue.
|
inline |
Constructs a subscriber and enables it by default.
|
inlinevirtual |
|
virtual |
Is called from the subscribed Channel whenever data changes.
|
virtual |
|
inline |
Enable or disable the subscriber.
Disabled subscribers may not get informed upon changes in their subscribed channel.
|
inline |
Returns if this subscriber is enabled.
|
pure virtual |
Returns the channel we are subscribed on, or NULL otherwise.
Implemented in ChannelSubscriber< T, ChannelRead >.
|
pure virtual |
Is called by AbstractChannel::removeSubscriber() when the subscriber detaches from the channel it is subscribed on.
Implemented in ChannelSubscriber< T, ChannelRead >.
|
inline |
|
inlineinherited |
|
inlineinherited |
|
protectedpure virtualinherited |
Called from dispatcher thread this runnable is attached to, whenever the runnable should be executed.
Implemented in DispatcherThread::Timer, FunctionRunnable< F >, ChannelSubscriber< T, ChannelRead >, ServiceInterfaceHandler, and RPCHandler::InvokerRunnable.
|
protected |
|
protected |
Is the subscriber enabled.
|
protectedinherited |
1.8.14