Class Publisher

Class Documentation

class Publisher

Public Functions

inline explicit Publisher(const ExperimentConfiguration &ec)
virtual ~Publisher() = default
inline virtual void prepare()

Prepare for communication This is called once, after all Publishers and Subscribers are created, and before any messages are sent. This is a good place to put blocking operations that do not belong in the constructor, such as participant discovery.

virtual void publish_copy(const TimestampProvider &timestamp_provider, std::uint64_t sample_id) = 0
virtual void publish_loaned(const TimestampProvider &timestamp_provider, std::uint64_t sample_id) = 0

Protected Functions

template<typename T>
inline void init_msg(T &msg, const TimestampProvider &timestamp_provider, std::uint64_t sample_id)

Protected Attributes

const ExperimentConfiguration &m_ec