The BaseClient class contains the common implementation for the different clients.
More...
#include <iceoryx_posh/internal/popo/base_client.hpp>
|
using | SelfType = BaseClient< PortT, TriggerHandleT > |
|
using | PortType = PortT |
|
|
| BaseClient (const capro::ServiceDescription &service, const ClientOptions &clientOptions) noexcept |
|
void | invalidateTrigger (const uint64_t uniqueTriggerId) noexcept |
| Only usable by the WaitSet/Listener, not for public use. Invalidates the internal triggerHandle. More...
|
|
void | enableState (TriggerHandleT &&triggerHandle, const ClientState clientState) noexcept |
| Only usable by the WaitSet/Listener, not for public use. Attaches the triggerHandle to the internal trigger. More...
|
|
WaitSetIsConditionSatisfiedCallback | getCallbackForIsStateConditionSatisfied (const ClientState clientState) const noexcept |
| Only usable by the WaitSet/Listener, not for public use. Returns method pointer to the event corresponding hasTriggered method callback. More...
|
|
void | disableState (const ClientState clientState) noexcept |
| Only usable by the WaitSet/Listener, not for public use. Resets the internal triggerHandle. More...
|
|
void | enableEvent (TriggerHandleT &&triggerHandle, const ClientEvent clientEvent) noexcept |
| Only usable by the WaitSet/Listener, not for public use. Attaches the triggerHandle to the internal trigger. More...
|
|
void | disableEvent (const ClientEvent clientEvent) noexcept |
| Only usable by the WaitSet/Listener, not for public use. Resets the internal triggerHandle. More...
|
|
const PortT & | port () const noexcept |
| const accessor of the underlying port
|
|
PortT & | port () noexcept |
| accessor of the underlying port
|
|
|
PortT | m_port |
|
TriggerHandleT | m_trigger |
|
|
class | NotificationAttorney |
|
template<typename PortT = ClientPortUser, typename TriggerHandleT = TriggerHandle>
class iox::popo::BaseClient< PortT, TriggerHandleT >
The BaseClient class contains the common implementation for the different clients.
- Parameters
-
[in] | PortT | type of the underlying port, required for testing |
[in] | TriggerHandleT | type of the underlying trigger handle, required for testing |
- Note
- Not intended for public usage! Use the
Client
or UntypedClient
instead!
◆ disableEvent()
template<typename PortT = ClientPortUser, typename TriggerHandleT = TriggerHandle>
Only usable by the WaitSet/Listener, not for public use. Resets the internal triggerHandle.
- Parameters
-
[in] | clientEvent | the event which should be detached |
◆ disableState()
template<typename PortT = ClientPortUser, typename TriggerHandleT = TriggerHandle>
Only usable by the WaitSet/Listener, not for public use. Resets the internal triggerHandle.
- Parameters
-
[in] | clientState | the state which should be detached |
◆ enableEvent()
template<typename PortT = ClientPortUser, typename TriggerHandleT = TriggerHandle>
void iox::popo::BaseClient< PortT, TriggerHandleT >::enableEvent |
( |
TriggerHandleT && |
triggerHandle, |
|
|
const ClientEvent |
clientEvent |
|
) |
| |
|
protectednoexcept |
Only usable by the WaitSet/Listener, 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] | clientEvent | the event which should be attached |
◆ enableState()
template<typename PortT = ClientPortUser, typename TriggerHandleT = TriggerHandle>
void iox::popo::BaseClient< PortT, TriggerHandleT >::enableState |
( |
TriggerHandleT && |
triggerHandle, |
|
|
const ClientState |
clientState |
|
) |
| |
|
protectednoexcept |
Only usable by the WaitSet/Listener, 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] | clientState | the state which should be attached |
◆ getCallbackForIsStateConditionSatisfied()
template<typename PortT = ClientPortUser, typename TriggerHandleT = TriggerHandle>
WaitSetIsConditionSatisfiedCallback iox::popo::BaseClient< PortT, TriggerHandleT >::getCallbackForIsStateConditionSatisfied |
( |
const ClientState |
clientState | ) |
const |
|
protectednoexcept |
Only usable by the WaitSet/Listener, not for public use. Returns method pointer to the event corresponding hasTriggered method callback.
- Parameters
-
[in] | clientState | the state to which the hasTriggeredCallback is required |
◆ getConnectionState()
template<typename PortT = ClientPortUser, typename TriggerHandleT = TriggerHandle>
Get current connection state.
- Returns
- The current connection state.
◆ getServiceDescription()
template<typename PortT = ClientPortUser, typename TriggerHandleT = TriggerHandle>
Get the service description of the client.
- Returns
- A reference to the service description.
◆ getUid()
template<typename PortT = ClientPortUser, typename TriggerHandleT = TriggerHandle>
Get the unique ID of the client.
- Returns
- The client's unique ID.
◆ hasMissedResponses()
template<typename PortT = ClientPortUser, typename TriggerHandleT = TriggerHandle>
Check if response has been missed since the last call of this method.
- Returns
- True if response has been missed.
Response may be missed due to overflowing receive queue.
◆ hasResponses()
template<typename PortT = ClientPortUser, typename TriggerHandleT = TriggerHandle>
Check if response are available.
- Returns
- True if responses are available.
◆ invalidateTrigger()
template<typename PortT = ClientPortUser, typename TriggerHandleT = TriggerHandle>
Only usable by the WaitSet/Listener, not for public use. Invalidates the internal triggerHandle.
- Parameters
-
[in] | uniqueTriggerId | the id of the corresponding trigger |
The documentation for this class was generated from the following file: