18#ifndef IOX_POSH_POPO_BASE_PUBLISHER_HPP
19#define IOX_POSH_POPO_BASE_PUBLISHER_HPP
21#include "iceoryx_hoofs/cxx/expected.hpp"
22#include "iceoryx_hoofs/cxx/optional.hpp"
23#include "iceoryx_posh/internal/popo/ports/publisher_port_user.hpp"
24#include "iceoryx_posh/internal/popo/sample_deleter.hpp"
25#include "iceoryx_posh/popo/sample.hpp"
31using uid_t = UniquePortId;
38template <
typename port_t = iox::PublisherPortUserType>
42 using PortType = port_t;
92 const port_t&
port() const noexcept;
100 port_t m_port{
nullptr};
106#include "iceoryx_posh/internal/popo/base_publisher.inl"
The BasePublisher class contains the common implementation for the different publisher specialization...
Definition: base_publisher.hpp:40
bool hasSubscribers() const noexcept
hasSubscribers
capro::ServiceDescription getServiceDescription() const noexcept
getServiceDescription Get the service description of the publisher.
uid_t getUid() const noexcept
uid Get the UID of the publisher.
void stopOffer() noexcept
stopOffer Stop offering the service.
bool isOffered() const noexcept
isOffered
void offer() noexcept
offer Offer the service to be subscribed to.
const port_t & port() const noexcept
port
This struct is used to configure the publisher.
Definition: publisher_options.hpp:33