Template Class BasePublisher
Defined in File base_publisher.hpp
Inheritance Relationships
Derived Types
public iox::popo::PublisherImpl< T, mepoo::NoUserHeader >(Template Class PublisherImpl)public iox::popo::PublisherImpl< T, H, BasePublisherType >(Template Class PublisherImpl)public iox::popo::UntypedPublisherImpl< BasePublisherType >(Template Class UntypedPublisherImpl)
Class Documentation
-
template<typename port_t = iox::PublisherPortUserType>
class BasePublisher The BasePublisher class contains the common implementation for the different publisher specializations.
Note
Not intended for public usage! Use the
PublisherorUntypedPublisherinstead!Subclassed by iox::popo::PublisherImpl< T, mepoo::NoUserHeader >, iox::popo::PublisherImpl< T, H, BasePublisherType >, iox::popo::UntypedPublisherImpl< BasePublisherType >
Public Functions
-
BasePublisher(const BasePublisher &other) = delete
-
BasePublisher &operator=(const BasePublisher&) = delete
-
BasePublisher(BasePublisher &&rhs) = delete
-
BasePublisher &operator=(BasePublisher &&rhs) = delete
-
virtual ~BasePublisher() noexcept
-
capro::ServiceDescription getServiceDescription() const noexcept
getServiceDescription Get the service description of the publisher.
- Returns:
The service description.
-
void offer() noexcept
offer Offer the service to be subscribed to.
-
void stopOffer() noexcept
stopOffer Stop offering the service.
-
bool isOffered() const noexcept
isOffered
- Returns:
True if service is currently being offered.
-
bool hasSubscribers() const noexcept
hasSubscribers
- Returns:
True if currently has subscribers to the service.
Protected Functions
-
BasePublisher() = default
-
BasePublisher(const capro::ServiceDescription &service, const PublisherOptions &publisherOptions)
-
BasePublisher(const BasePublisher &other) = delete