iceoryx2
C++ Language Bindings
Loading...
Searching...
No Matches
attribute.hpp
Go to the documentation of this file.
1
// Copyright (c) 2024 Contributors to the Eclipse Foundation
2
//
3
// See the NOTICE file(s) distributed with this work for additional
4
// information regarding copyright ownership.
5
//
6
// This program and the accompanying materials are made available under the
7
// terms of the Apache Software License 2.0 which is available at
8
// https://www.apache.org/licenses/LICENSE-2.0, or the MIT license
9
// which is available at https://opensource.org/licenses/MIT.
10
//
11
// SPDX-License-Identifier: Apache-2.0 OR MIT
12
13
#ifndef IOX2_ATTRIBUTE_HPP
14
#define IOX2_ATTRIBUTE_HPP
15
16
#include "
iox2/internal/iceoryx2.hpp
"
17
18
namespace
iox2
{
21
class
Attribute
{
22
public
:
23
using
Key
=
iox2::bb::StaticString<IOX2_ATTRIBUTE_KEY_LENGTH>
;
24
using
Value
=
iox2::bb::StaticString<IOX2_ATTRIBUTE_VALUE_LENGTH>
;
25
};
26
32
class
AttributeView
{
33
public
:
35
auto
key
() const ->
Attribute
::Key;
36
38
auto
value
() const ->
Attribute
::Value;
39
40
private:
41
friend class
AttributeSetView
;
42
explicit
AttributeView
(iox2_attribute_h_ref handle);
43
44
iox2_attribute_h_ref m_handle =
nullptr
;
45
};
46
}
// namespace iox2
47
48
auto operator<<(std::ostream& stream, const
iox2
::AttributeView&
value
) -> std::ostream&;
49
50
#endif
iox2::AttributeSetView
Definition
attribute_set.hpp:30
iox2::AttributeView
Definition
attribute.hpp:32
iox2::AttributeView::key
auto key() const -> Attribute::Key
Acquires the service attribute key.
iox2::AttributeView::value
auto value() const -> Attribute::Value
Acquires the service attribute value.
iox2::Attribute
Definition
attribute.hpp:21
iox2::bb::StaticString
Definition
static_string.hpp:80
iceoryx2.hpp
iox2
Definition
active_request.hpp:26
iox2
attribute.hpp
Generated by
1.9.8