18#ifndef IOX_POSH_POPO_UNTYPED_SUBSCRIBER_IMPL_HPP
19#define IOX_POSH_POPO_UNTYPED_SUBSCRIBER_IMPL_HPP
21#include "iceoryx_hoofs/cxx/expected.hpp"
22#include "iceoryx_hoofs/cxx/unique_ptr.hpp"
23#include "iceoryx_posh/capro/service_description.hpp"
24#include "iceoryx_posh/iceoryx_posh_types.hpp"
25#include "iceoryx_posh/internal/popo/base_subscriber.hpp"
37template <
typename BaseSubscriberType = BaseSubscriber<>>
38class UntypedSubscriberImpl :
public BaseSubscriberType
41 using BaseSubscriber = BaseSubscriberType;
42 using SelfType = UntypedSubscriberImpl<BaseSubscriberType>;
46 UntypedSubscriberImpl(
const UntypedSubscriberImpl& other) =
delete;
47 UntypedSubscriberImpl& operator=(
const UntypedSubscriberImpl&) =
delete;
48 UntypedSubscriberImpl(UntypedSubscriberImpl&& rhs) =
delete;
49 UntypedSubscriberImpl& operator=(UntypedSubscriberImpl&& rhs) =
delete;
50 virtual ~UntypedSubscriberImpl()
noexcept;
58 cxx::expected<const void*, ChunkReceiveResult>
take() noexcept;
68 void release(const
void* const userPayload) noexcept;
71 using BaseSubscriber::
port;
77#include "iceoryx_posh/internal/popo/untyped_subscriber_impl.inl"
class for the identification of a communication event including information on the service,...
Definition service_description.hpp:81
const port_t & port() const noexcept
const accessor of the underlying port
void release(const void *const userPayload) noexcept
cxx::expected< const void *, ChunkReceiveResult > take() noexcept
Take the chunk from the top of the receive queue.
Definition untyped_subscriber_impl.hpp:32
This struct is used to configure the subscriber.
Definition subscriber_options.hpp:33