iceoryx2
C++ Bindings
Loading...
Searching...
No Matches
subscriber_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_SUBSCRIBER_DETAILS_HPP
14#define IOX2_SUBSCRIBER_DETAILS_HPP
15
18#include "iox2/port_name.hpp"
21
22namespace iox2 {
25 public:
28 ~SubscriberDetailsView() noexcept = default;
29
30 auto operator=(const SubscriberDetailsView&) -> SubscriberDetailsView& = delete;
31 auto operator=(SubscriberDetailsView&& rhs) noexcept -> SubscriberDetailsView&;
32
35
37 auto node_id() const -> UniqueNodeId;
38
41
43 auto buffer_size() const -> uint64_t;
44
46 auto history_request() const -> uint64_t;
47
48 private:
49 template <typename T, typename>
50 friend auto internal::list_ports_callback(void* context, T port_details_view) -> iox2_callback_progression_e;
51
52 explicit SubscriberDetailsView(iox2_subscriber_details_ptr handle);
53 iox2_subscriber_details_ptr m_handle = nullptr;
54};
55} // namespace iox2
56
57#endif
Non-owning view of a [PortName].
Definition port_name.hpp:25
auto node_id() const -> UniqueNodeId
The [NodeId] of the [Node] under which the [Subscriber] was created.
auto subscriber_name() const -> PortNameView
The [PortNameView] of the [Subscriber], empty when it was created without a name.
auto subscriber_id() const -> UniqueSubscriberId
The [UniqueSubscriberId] of the [Subscriber].
SubscriberDetailsView(const SubscriberDetailsView &)=delete
~SubscriberDetailsView() noexcept=default
auto history_request() const -> uint64_t
The history request for the subscriber.
SubscriberDetailsView(SubscriberDetailsView &&rhs) noexcept
auto buffer_size() const -> uint64_t
The receive buffer size for incoming samples.
friend auto internal::list_ports_callback(void *context, T port_details_view) -> iox2_callback_progression_e
The system-wide unique id of a [Node].
The system-wide unique id of a [Subscriber].