iceoryx2
C++ Bindings
Loading...
Searching...
No Matches
writer_details.hpp
Go to the documentation of this file.
1// Copyright (c) 2025 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_WRITER_DETAILS_HPP
14#define IOX2_WRITER_DETAILS_HPP
15
18#include "iox2/port_name.hpp"
21
22namespace iox2 {
25 public:
28 ~WriterDetailsView() noexcept = default;
29
30 auto operator=(const WriterDetailsView&) -> WriterDetailsView& = delete;
31 auto operator=(WriterDetailsView&& rhs) noexcept -> WriterDetailsView&;
32
34 auto writer_id() const -> UniqueWriterId;
35
37 auto node_id() const -> UniqueNodeId;
38
40 auto writer_name() const -> PortNameView;
41
42 private:
43 template <typename T, typename>
44 friend auto internal::list_ports_callback(void* context, T port_details_view) -> iox2_callback_progression_e;
45
46 explicit WriterDetailsView(iox2_writer_details_ptr handle);
47 iox2_writer_details_ptr m_handle = nullptr;
48};
49} // namespace iox2
50
51#endif
Non-owning view of a [PortName].
Definition port_name.hpp:25
The system-wide unique id of a [Node].
The system-wide unique id of a [Writer].
auto writer_id() const -> UniqueWriterId
The [UniqueWriterId] of the [Writer].
~WriterDetailsView() noexcept=default
WriterDetailsView(const WriterDetailsView &)=delete
auto node_id() const -> UniqueNodeId
The [NodeId] of the [Node] under which the [Writer] was created.
friend auto internal::list_ports_callback(void *context, T port_details_view) -> iox2_callback_progression_e
auto writer_name() const -> PortNameView
The [PortNameView] of the [Writer], empty when it was created without a name.
WriterDetailsView(WriterDetailsView &&rhs) noexcept