base class for all types of subscriber
More...
#include <base_subscriber.hpp>
|
class | NotificationAttorney |
|
template<typename port_t = iox::SubscriberPortUserType>
class iox::popo::BaseSubscriber< port_t >
base class for all types of subscriber
- Parameters
-
[in] | port_t | type of the underlying port, required for testing |
◆ SelfType
template<typename port_t = iox::SubscriberPortUserType>
Only usable by the WaitSet, not for public use. Invalidates the internal triggerHandle.
- Parameters
-
[in] | uniqueTriggerId | the id of the corresponding trigger |
Only usable by the WaitSet, not for public use
◆ disableEvent()
template<typename port_t >
Only usable by the WaitSet, not for public use. Resets the internal triggerHandle.
- Parameters
-
[in] | subscriberEvent | the event which should be detached |
◆ disableState()
template<typename port_t >
Only usable by the WaitSet, not for public use. Resets the internal triggerHandle.
- Parameters
-
[in] | subscriberState | the state which should be detached |
◆ enableEvent()
template<typename port_t >
Only usable by the WaitSet, not for public use. Attaches the triggerHandle to the internal trigger.
- Parameters
-
[in] | triggerHandle | rvalue reference to the triggerHandle. This class takes the ownership of that handle. |
[in] | subscriberEvent | the event which should be attached |
◆ enableState()
template<typename port_t = iox::SubscriberPortUserType>
Only usable by the WaitSet, not for public use. Attaches the triggerHandle to the internal trigger.
- Parameters
-
[in] | triggerHandle | rvalue reference to the triggerHandle. This class takes the ownership of that handle. |
[in] | subscriberState | the state which should be attached |
◆ getCallbackForIsStateConditionSatisfied()
template<typename port_t >
WaitSetIsConditionSatisfiedCallback iox::popo::BaseSubscriber< port_t >::getCallbackForIsStateConditionSatisfied |
( |
const SubscriberState |
subscriberState | ) |
const |
|
inlineprotectednoexcept |
Only usable by the WaitSet, not for public use. Returns method pointer to the event corresponding hasTriggered method callback.
- Parameters
-
[in] | subscriberState | the state to which the hasTriggeredCallback is required |
◆ getServiceDescription()
template<typename port_t >
getServiceDescription Get the service description of the subscriber.
todo #25 make this a reference.
- Returns
- The service description.
◆ getSubscriptionState()
template<typename port_t >
getSubscriptionState Get current subscription state.
- Returns
- The current subscription state.
◆ getUid()
template<typename port_t >
uid Get the unique ID of the subscriber.
- Returns
- The subscriber's unique ID.
◆ hasData()
template<typename port_t >
Check if data is available.
- Returns
- True if data is available.
◆ hasMissedData()
template<typename port_t >
Check if data has been missed since the last call of this method.
- Returns
- True if data has been missed.
Data may be missed due to overflowing receive queue.
◆ subscribe()
template<typename port_t >
subscribe Initiate subscription.
- Returns
The documentation for this class was generated from the following files: