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
17
18namespace iox2 {
26
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
48auto operator<<(std::ostream& stream, const iox2::AttributeView& value) -> std::ostream&;
49
50#endif
auto key() const -> Attribute::Key
Acquires the service attribute key.
auto value() const -> Attribute::Value
Acquires the service attribute value.