iceoryx2
C++ Language Bindings
Loading...
Searching...
No Matches
dynamic_config_event.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_DYNAMIC_CONFIG_EVENT_HPP
14#define IOX2_DYNAMIC_CONFIG_EVENT_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_listeners() const -> uint64_t;
37
39 auto number_of_notifiers() const -> uint64_t;
40
45 void list_notifiers(const iox2::bb::StaticFunction<CallbackProgression(NotifierDetailsView)>& callback) const;
46
51 void list_listeners(const iox2::bb::StaticFunction<CallbackProgression(ListenerDetailsView)>& callback) const;
52
53 private:
54 template <ServiceType>
55 friend class PortFactoryEvent;
56
57 explicit DynamicConfigEvent(iox2_port_factory_event_h handle);
58
59 iox2_port_factory_event_h m_handle = nullptr;
60};
61} // namespace iox2
62
63#endif
auto operator=(DynamicConfigEvent &&) -> DynamicConfigEvent &=delete
auto operator=(const DynamicConfigEvent &) -> DynamicConfigEvent &=delete
auto number_of_listeners() const -> uint64_t
Returns how many [Listener] ports are currently connected.
DynamicConfigEvent(DynamicConfigEvent &&)=default
void list_notifiers(const iox2::bb::StaticFunction< CallbackProgression(NotifierDetailsView)> &callback) const
void list_listeners(const iox2::bb::StaticFunction< CallbackProgression(ListenerDetailsView)> &callback) const
auto number_of_notifiers() const -> uint64_t
Returns how many [Notifier] ports are currently connected.
DynamicConfigEvent(const DynamicConfigEvent &)=delete
Contains the communication settings of the connected [Listener].
Contains the communication settings of the connected [Notifier].
Represents the port factory of a [Service] with [MessagingPattern::Event].