Represents all service attributes. They can be set when the service is created.
More...
#include <attribute_set.hpp>
Represents all service attributes. They can be set when the service is created.
Definition at line 78 of file attribute_set.hpp.
◆ AttributeSet() [1/2]
◆ AttributeSet() [2/2]
◆ ~AttributeSet()
| iox2::AttributeSet::~AttributeSet |
( |
| ) |
|
◆ iter_key_values()
Returns all values to a specific key.
◆ key_value()
Returns a value of a key at a specific index. The index enumerates the values of the key if the key has multiple values. The values are always stored at the same position during the lifetime of the service but they can change when the process is recreated by another process when the system restarts. If the key does not exist or it does not have a value at the specified index, it returns [None].
◆ number_of_attributes()
| auto iox2::AttributeSet::number_of_attributes |
( |
| ) |
const -> uint64_t |
◆ number_of_key_values()
| auto iox2::AttributeSet::number_of_key_values |
( |
const Attribute::Key & |
key | ) |
const -> uint64_t |
Returns the number of values stored under a specific key. If the key does not exist it returns 0.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ operator[]()
| auto iox2::AttributeSet::operator[] |
( |
uint64_t |
index | ) |
const -> AttributeView |
Returns a [AttributeView] at a specific index. The number of indices is returned via [AttributeSet::len()].
◆ AttributeSetView
The documentation for this class was generated from the following file: