iceoryx2
C++ Bindings
Loading...
Searching...
No Matches
iox2::AttributeVerifier Class Reference

#include <attribute_verifier.hpp>

Public Member Functions

 AttributeVerifier ()
 Creates a new empty set of [Attribute]s.
 AttributeVerifier (const AttributeVerifier &)=delete
 AttributeVerifier (AttributeVerifier &&) noexcept
 ~AttributeVerifier ()
auto operator= (const AttributeVerifier &) -> AttributeVerifier &=delete
auto operator= (AttributeVerifier &&) noexcept -> AttributeVerifier &
auto require (const Attribute::Key &key, const Attribute::Value &value) -> bb::Expected< void, AttributeDefinitionError >
 Requires a value for a specific key. A key is allowed to have multiple values.
auto require_key (const Attribute::Key &key) -> bb::Expected< void, AttributeDefinitionError >
 Requires that a specific key is defined.
auto attributes () const -> AttributeSetView
 Returns the underlying required [AttributeSet].
auto keys () const -> iox2::bb::StaticVector< Attribute::Key, IOX2_MAX_ATTRIBUTES_PER_SERVICE >
 Returns the underlying required keys.
auto verify_requirements (const AttributeSetView &rhs) const -> bb::Expected< void, Attribute::Key >
 Verifies if the [AttributeSet] contains all required keys and key-value pairs.

Friends

template<ServiceType>
class ServiceBuilderEvent
template<typename, typename, ServiceType>
class ServiceBuilderPublishSubscribe
template<typename, typename, typename, typename, ServiceType>
class ServiceBuilderRequestResponse
template<typename, ServiceType>
class ServiceBuilderBlackboardOpener

Detailed Description

Represents the set of [Attribute]s that are required when the [Service] is opened.

Definition at line 26 of file attribute_verifier.hpp.

Constructor & Destructor Documentation

◆ AttributeVerifier() [1/3]

iox2::AttributeVerifier::AttributeVerifier ( )

Creates a new empty set of [Attribute]s.

Referenced by AttributeVerifier(), AttributeVerifier(), operator=(), operator=(), and ~AttributeVerifier().

◆ AttributeVerifier() [2/3]

iox2::AttributeVerifier::AttributeVerifier ( const AttributeVerifier & )
delete

References AttributeVerifier().

◆ AttributeVerifier() [3/3]

iox2::AttributeVerifier::AttributeVerifier ( AttributeVerifier && )
noexcept

References AttributeVerifier().

◆ ~AttributeVerifier()

iox2::AttributeVerifier::~AttributeVerifier ( )

References AttributeVerifier().

Member Function Documentation

◆ attributes()

auto iox2::AttributeVerifier::attributes ( ) const->AttributeSetView

Returns the underlying required [AttributeSet].

References attributes().

Referenced by attributes().

◆ keys()

auto iox2::AttributeVerifier::keys ( ) const->iox2::bb::StaticVector< Attribute::Key, IOX2_MAX_ATTRIBUTES_PER_SERVICE >

Returns the underlying required keys.

References keys().

Referenced by keys().

◆ operator=() [1/2]

auto iox2::AttributeVerifier::operator= ( AttributeVerifier && ) ->AttributeVerifier &
noexcept

References AttributeVerifier().

◆ operator=() [2/2]

auto iox2::AttributeVerifier::operator= ( const AttributeVerifier & ) ->AttributeVerifier &=delete
delete

References AttributeVerifier().

◆ require()

auto iox2::AttributeVerifier::require ( const Attribute::Key & key,
const Attribute::Value & value )->bb::Expected< void, AttributeDefinitionError >

Requires a value for a specific key. A key is allowed to have multiple values.

References require().

Referenced by require().

◆ require_key()

auto iox2::AttributeVerifier::require_key ( const Attribute::Key & key) ->bb::Expected< void, AttributeDefinitionError >

Requires that a specific key is defined.

References require_key().

Referenced by require_key().

◆ verify_requirements()

auto iox2::AttributeVerifier::verify_requirements ( const AttributeSetView & rhs) const->bb::Expected< void, Attribute::Key >

Verifies if the [AttributeSet] contains all required keys and key-value pairs.

References verify_requirements().

Referenced by verify_requirements().

◆ ServiceBuilderBlackboardOpener

template<typename, ServiceType>
friend class ServiceBuilderBlackboardOpener
friend

Definition at line 61 of file attribute_verifier.hpp.

References ServiceBuilderBlackboardOpener.

Referenced by ServiceBuilderBlackboardOpener.

◆ ServiceBuilderEvent

template<ServiceType>
friend class ServiceBuilderEvent
friend

Definition at line 55 of file attribute_verifier.hpp.

References ServiceBuilderEvent.

Referenced by ServiceBuilderEvent.

◆ ServiceBuilderPublishSubscribe

template<typename, typename, ServiceType>
friend class ServiceBuilderPublishSubscribe
friend

Definition at line 57 of file attribute_verifier.hpp.

References ServiceBuilderPublishSubscribe.

Referenced by ServiceBuilderPublishSubscribe.

◆ ServiceBuilderRequestResponse

template<typename, typename, typename, typename, ServiceType>
friend class ServiceBuilderRequestResponse
friend

Definition at line 59 of file attribute_verifier.hpp.

References ServiceBuilderRequestResponse.

Referenced by ServiceBuilderRequestResponse.


The documentation for this class was generated from the following file: