iceoryx2
C++ Language Bindings
Loading...
Searching...
No Matches
dynamic_config_request_response.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_REQUEST_RESPONSE_HPP
14#define IOX2_DYNAMIC_CONFIG_REQUEST_RESPONSE_HPP
15
20#include "iox2/service_type.hpp"
21
22#include <cstdint>
23
24namespace iox2 {
25
30 public:
32 // NOTE: can be changed to '= delete' when C++17 becomes mandatory and we can rely on RVO
37
39 auto number_of_clients() const -> uint64_t;
40
42 auto number_of_servers() const -> uint64_t;
43
48 void list_servers(const iox2::bb::StaticFunction<CallbackProgression(ServerDetailsView)>& callback) const;
49
54 void list_clients(const iox2::bb::StaticFunction<CallbackProgression(ClientDetailsView)>& callback) const;
55
56 private:
57 template <ServiceType, typename, typename, typename, typename>
59
60 explicit DynamicConfigRequestResponse(iox2_port_factory_request_response_h handle);
61
62 iox2_port_factory_request_response_h m_handle = nullptr;
63};
64} // namespace iox2
65#endif
Contains the communication settings of the connected [Client].
void list_servers(const iox2::bb::StaticFunction< CallbackProgression(ServerDetailsView)> &callback) const
auto number_of_clients() const -> uint64_t
Returns how many [crate::port::client::Client] ports are currently connected.
DynamicConfigRequestResponse(const DynamicConfigRequestResponse &)=delete
DynamicConfigRequestResponse(DynamicConfigRequestResponse &&)=default
auto operator=(DynamicConfigRequestResponse &&) -> DynamicConfigRequestResponse &=delete
auto operator=(const DynamicConfigRequestResponse &) -> DynamicConfigRequestResponse &=delete
void list_clients(const iox2::bb::StaticFunction< CallbackProgression(ClientDetailsView)> &callback) const
auto number_of_servers() const -> uint64_t
Returns how many [crate::port::server::Server] ports are currently connected.
Contains the communication settings of the connected [Server].