iceoryx2
C++ Language Bindings
Loading...
Searching...
No Matches
static_config.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_STATIC_CONFIG_HPP
14#define IOX2_STATIC_CONFIG_HPP
15
22
23namespace iox2 {
26 public:
27 StaticConfig(const StaticConfig&) = delete;
28 StaticConfig(StaticConfig&& rhs) noexcept;
30
31 auto operator=(const StaticConfig&) -> StaticConfig& = delete;
32 auto operator=(StaticConfig&& rhs) noexcept -> StaticConfig&;
33
36
38 auto id() const -> const char*;
39
41 auto name() const -> const char*;
42
45
52
58 auto event() const -> StaticConfigEvent;
59
66
73
74 private:
75 template <ServiceType>
76 friend class Service;
77 template <ServiceType>
78 friend auto list_callback(const iox2_static_config_t*, void*) -> iox2_callback_progression_e;
79 explicit StaticConfig(iox2_static_config_t value);
80 void drop();
81
82 iox2_static_config_t m_value;
83};
84} // namespace iox2
85
86auto operator<<(std::ostream& stream, const iox2::StaticConfig& value) -> std::ostream&;
87
88#endif
Defines a common set of static service configuration details every service shares.
friend auto list_callback(const iox2_static_config_t *, void *) -> iox2_callback_progression_e
StaticConfig(StaticConfig &&rhs) noexcept
auto request_response() const -> StaticConfigRequestResponse
auto blackboard() const -> StaticConfigBlackboard
auto publish_subscribe() const -> StaticConfigPublishSubscribe
auto operator=(StaticConfig &&rhs) noexcept -> StaticConfig &
auto messaging_pattern() const -> MessagingPattern
Returns the [MessagingPattern] of the [Service].
auto operator=(const StaticConfig &) -> StaticConfig &=delete
auto event() const -> StaticConfigEvent
auto name() const -> const char *
Returns the [ServiceName] of the [Service].
StaticConfig(const StaticConfig &)=delete
auto attributes() const -> AttributeSetView
Returns the attributes of the [Service].