iceoryx_doc  1.0.1
base_port_data.hpp
1 // Copyright (c) 2019 by Robert Bosch GmbH. All rights reserved.
2 // Copyright (c) 2021 by Apex.AI Inc. All rights reserved.
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16 // SPDX-License-Identifier: Apache-2.0
17 #ifndef IOX_POSH_POPO_PORTS_BASE_PORT_DATA_HPP
18 #define IOX_POSH_POPO_PORTS_BASE_PORT_DATA_HPP
19 
20 #include "iceoryx_posh/capro/service_description.hpp"
21 #include "iceoryx_posh/iceoryx_posh_types.hpp"
22 #include "iceoryx_posh/internal/capro/capro_message.hpp"
23 #include "iceoryx_posh/internal/popo/building_blocks/typed_unique_id.hpp"
24 #include "iceoryx_utils/internal/relocatable_pointer/relative_pointer.hpp"
25 
26 #include <atomic>
27 
28 namespace iox
29 {
30 namespace popo
31 {
34 {
36  BasePortData() = default;
37 
42  BasePortData(const capro::ServiceDescription& serviceDescription,
43  const RuntimeName_t& runtimeName,
44  const NodeName_t& nodeName) noexcept;
45 
46  BasePortData(const BasePortData&) = delete;
47  BasePortData& operator=(const BasePortData&) = delete;
48  BasePortData(BasePortData&&) = delete;
49  BasePortData& operator=(BasePortData&&) = delete;
50  ~BasePortData() = default;
51 
52  capro::ServiceDescription m_serviceDescription;
53  RuntimeName_t m_runtimeName;
54  NodeName_t m_nodeName;
55  UniquePortId m_uniqueId;
56  std::atomic_bool m_toBeDestroyed{false};
57 };
58 
59 } // namespace popo
60 } // namespace iox
61 
62 #endif // IOX_POSH_POPO_PORTS_BASE_PORT_DATA_HPP
class for the identification of a communication event including information on the service,...
Definition: service_description.hpp:86
Definition: service_description.hpp:29
Defines different base port data.
Definition: base_port_data.hpp:34
BasePortData()=default
Constructor for base port data members.
BasePortData(const capro::ServiceDescription &serviceDescription, const RuntimeName_t &runtimeName, const NodeName_t &nodeName) noexcept
Constructor.