iceoryx2
C++ Language Bindings
Loading...
Searching...
No Matches
dynamic_config_blackboard.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_DYNAMIC_CONFIG_BLACKBOARD_HPP
14#define IOX2_DYNAMIC_CONFIG_BLACKBOARD_HPP
15
20
21#include <cstdint>
22
23namespace iox2 {
27 public:
29 // NOTE: can be changed to '= delete' when C++17 becomes mandatory and we can rely on RVO
34
36 auto number_of_readers() const -> uint64_t;
37
39 auto number_of_writers() const -> uint64_t;
40
45 void list_readers(const iox2::bb::StaticFunction<CallbackProgression(ReaderDetailsView)>& callback) const;
46
51 void list_writers(const iox2::bb::StaticFunction<CallbackProgression(WriterDetailsView)>& callback) const;
52
53 private:
54 template <ServiceType, typename>
56
57 explicit DynamicConfigBlackboard(iox2_port_factory_blackboard_h handle);
58
59 iox2_port_factory_blackboard_h m_handle = nullptr;
60};
61} // namespace iox2
62
63#endif
auto operator=(DynamicConfigBlackboard &&) -> DynamicConfigBlackboard &=delete
DynamicConfigBlackboard(DynamicConfigBlackboard &&)=default
void list_readers(const iox2::bb::StaticFunction< CallbackProgression(ReaderDetailsView)> &callback) const
auto number_of_readers() const -> uint64_t
Returns how many [Reader] ports are currently connected.
auto number_of_writers() const -> uint64_t
Returns how many [Writer] ports are currently connected.
void list_writers(const iox2::bb::StaticFunction< CallbackProgression(WriterDetailsView)> &callback) const
DynamicConfigBlackboard(const DynamicConfigBlackboard &)=delete
auto operator=(const DynamicConfigBlackboard &) -> DynamicConfigBlackboard &=delete
Represents the port factory of a [Service] with [MessagingPattern::Blackboard].
Contains the communication settings of the connected [Reader].
Contains the communication settings of the connected [Writer].