MIRA
|
Implements AbstractChannelSubscriber for a concrete data type. More...
#include <fw/ChannelSubscriber.h>
Public Types | |
typedef ConcreteChannel< T > | ChannelType |
Public Member Functions | |
ChannelSubscriber (DispatcherThread *dispatcher, boost::function< void(ChannelRead)> invokeFn, DiagnosticsModulePtr diagnosticsModule=NULL) | |
AbstractChannelPtr | getChannel () |
Returns the channel this subscriber is attached to. More... | |
void | attachChannel (ChannelType *channel) |
Attaches this subscriber to the specified channel. More... | |
virtual void | detachChannel () |
Detaches this subscriber from the channel. More... | |
virtual void | run (DispatcherThread *dispatcher) |
Called from dispatcher thread this runnable is attached to, whenever the runnable should be executed. More... | |
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... | |
DispatcherThread * | getDispatcher () |
void | setDiagnosticsModule (DiagnosticsModulePtr module) |
DiagnosticsModulePtr | getDiagnosticsModule () |
Protected Attributes | |
DispatcherThread * | mDispatcher |
bool | mEnabled |
Is the subscriber enabled. More... | |
DiagnosticsModulePtr | mDiagnosticsModule |
Implements AbstractChannelSubscriber for a concrete data type.
For internals on the signaling process see Channel.
typedef ConcreteChannel<T> ChannelType |
|
inline |
|
inlinevirtual |
Returns the channel this subscriber is attached to.
Implements AbstractChannelSubscriber.
|
inline |
Attaches this subscriber to the specified channel.
This is called from Channel::addSubscriber.
|
inlinevirtual |
Detaches this subscriber from the channel.
Implements AbstractChannelSubscriber.
|
inlinevirtual |
Called from dispatcher thread this runnable is attached to, whenever the runnable should be executed.
Implements IRunnable.
|
virtualinherited |
Is called from the subscribed Channel whenever data changes.
|
virtualinherited |
|
inlineinherited |
Enable or disable the subscriber.
Disabled subscribers may not get informed upon changes in their subscribed channel.
|
inlineinherited |
Returns if this subscriber is enabled.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
protectedinherited |
|
protectedinherited |
Is the subscriber enabled.
|
protectedinherited |