Template Class CMsgPublisher#
Defined in File publisher.h
Inheritance Relationships#
Base Type#
public eCAL::CPublisher
(Class CPublisher)
Class Documentation#
-
template<typename T>
class CMsgPublisher : public eCAL::CPublisher# eCAL abstract message publisher class.
Abstract publisher template class for messages. For details see documentation of CPublisher class.
Public Functions
-
inline CMsgPublisher()#
Default Constructor. Using this constructor, the object is not actually in a usable state. Before being able to send data, one has to call the
Create()
function, first.
-
inline CMsgPublisher(const std::string &topic_name_, const struct SDataTypeInformation &topic_info_)#
Constructor, that automatically intializes the Publisher. This should be the preferred constructor.
- Parameters:
topic_name_ – Unique topic name.
topic_info_ – Struct that contains information of the datatype (name, encoding, description) of the topic.
-
inline explicit CMsgPublisher(const std::string &topic_name_)#
Constructor, that automatically intializes the Publisher. If no datatype information about the topic is available, this constructor can be used.
- Parameters:
topic_name_ – Unique topic name.
-
CMsgPublisher(const CMsgPublisher&) = delete#
Copy Constructor is not available.
-
CMsgPublisher &operator=(const CMsgPublisher&) = delete#
Copy Constructor is not available.
-
CMsgPublisher(CMsgPublisher&&) = default#
Move Constructor.
-
CMsgPublisher &operator=(CMsgPublisher&&) = default#
Move assignment.
-
~CMsgPublisher() override = default#
-
inline bool Create(const std::string &topic_name_, const struct SDataTypeInformation &topic_info_)#
Creates this object.
- Parameters:
topic_name_ – Unique topic name.
topic_info_ – Associated datatype description.
- Returns:
True if it succeeds, false if it fails.
-
inline bool Destroy()#
Destroys this object.
- Returns:
True if it succeeds, false if it fails.
-
inline CMsgPublisher()#