iceoryx_doc  1.0.1
publisher_port_data.hpp
1 // Copyright (c) 2020 by Robert Bosch GmbH. All rights reserved.
2 // Copyright (c) 2020 - 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_PUBLISHER_PORT_DATA_HPP
18 #define IOX_POSH_POPO_PORTS_PUBLISHER_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/mepoo/memory_manager.hpp"
23 #include "iceoryx_posh/internal/popo/building_blocks/chunk_distributor_data.hpp"
24 #include "iceoryx_posh/internal/popo/building_blocks/chunk_sender_data.hpp"
25 #include "iceoryx_posh/internal/popo/building_blocks/locking_policy.hpp"
26 #include "iceoryx_posh/internal/popo/ports/base_port_data.hpp"
27 #include "iceoryx_posh/internal/popo/ports/subscriber_port_data.hpp"
28 #include "iceoryx_posh/mepoo/memory_info.hpp"
29 #include "iceoryx_posh/popo/publisher_options.hpp"
30 
31 #include <atomic>
32 #include <cstdint>
33 
34 namespace iox
35 {
36 namespace popo
37 {
39 {
40  PublisherPortData(const capro::ServiceDescription& serviceDescription,
41  const RuntimeName_t& runtimeName,
42  mepoo::MemoryManager* const memoryManager,
43  const PublisherOptions& publisherOptions,
44  const mepoo::MemoryInfo& memoryInfo = mepoo::MemoryInfo()) noexcept;
45 
49  using ChunkSenderData_t =
51 
52  ChunkSenderData_t m_chunkSenderData;
53  std::atomic_bool m_offeringRequested{false};
54  std::atomic_bool m_offered{false};
55 };
56 
57 } // namespace popo
58 } // namespace iox
59 
60 #endif // IOX_POSH_POPO_PORTS_PUBLISHER_PORT_DATA_HPP
class for the identification of a communication event including information on the service,...
Definition: service_description.hpp:86
Definition: memory_manager.hpp:45
Definition: service_description.hpp:29
Stores properties of the memory to be used when we distinguish between different types of memory on e...
Definition: memory_info.hpp:28
Defines different base port data.
Definition: base_port_data.hpp:34
Definition: chunk_distributor_data.hpp:40
Definition: chunk_queue_data.hpp:35
This struct is used to configure the publisher.
Definition: publisher_options.hpp:30
Definition: publisher_port_data.hpp:39