Skip to content

iox::popo::BasePublisher🔗

The BasePublisher class contains the common implementation for the different publisher specializations. More...

#include <base_publisher.hpp>

Public Types🔗

Name
using port_t PortType

Public Functions🔗

Name
BasePublisher(const BasePublisher & other)
BasePublisher & operator=(const BasePublisher & )
BasePublisher(BasePublisher && rhs)
BasePublisher & operator=(BasePublisher && rhs)
virtual ~BasePublisher()
uid_t getUid() const
uid Get the UID of the publisher.
capro::ServiceDescription getServiceDescription() const
getServiceDescription Get the service description of the publisher.
void offer()
offer Offer the service to be subscribed to.
void stopOffer()
stopOffer Stop offering the service.
bool isOffered() const
isOffered
bool hasSubscribers() const
hasSubscribers

Protected Functions🔗

Name
BasePublisher() =default
BasePublisher(const capro::ServiceDescription & service, const PublisherOptions & publisherOptions)
const port_t & port() const
port
port_t & port()
port

Protected Attributes🔗

Name
port_t m_port

Detailed Description🔗

template <typename port_t  =iox::PublisherPortUserType>
class iox::popo::BasePublisher;

The BasePublisher class contains the common implementation for the different publisher specializations.

Public Types Documentation🔗

using PortType🔗

using iox::popo::BasePublisher< port_t >::PortType =  port_t;

Public Functions Documentation🔗

function BasePublisher🔗

BasePublisher(
    const BasePublisher & other
)

function operator=🔗

BasePublisher & operator=(
    const BasePublisher & 
)

function BasePublisher🔗

BasePublisher(
    BasePublisher && rhs
)

function operator=🔗

BasePublisher & operator=(
    BasePublisher && rhs
)

function ~BasePublisher🔗

inline virtual ~BasePublisher()

function getUid🔗

inline uid_t getUid() const

uid Get the UID of the publisher.

Return: The publisher's UID.

function getServiceDescription🔗

inline capro::ServiceDescription getServiceDescription() const

getServiceDescription Get the service description of the publisher.

Return: The service description.

function offer🔗

inline void offer()

offer Offer the service to be subscribed to.

function stopOffer🔗

inline void stopOffer()

stopOffer Stop offering the service.

function isOffered🔗

inline bool isOffered() const

isOffered

Return: True if service is currently being offered.

function hasSubscribers🔗

inline bool hasSubscribers() const

hasSubscribers

Return: True if currently has subscribers to the service.

Protected Functions Documentation🔗

function BasePublisher🔗

BasePublisher() =default

function BasePublisher🔗

inline BasePublisher(
    const capro::ServiceDescription & service,
    const PublisherOptions & publisherOptions
)

function port🔗

const port_t & port() const

port

Return: const accessor of the underlying port

function port🔗

port_t & port()

port

Return: accessor of the underlying port

Protected Attributes Documentation🔗

variable m_port🔗

port_t m_port {nullptr};

Updated on 17 June 2021 at 11:15:27 CEST