Template Class CMsgPublisher¶
Defined in File publisher.h
Inheritance Relationships¶
Base Type¶
public eCAL::CPublisher(Class CPublisher)
Class Documentation¶
-
template<typename
T>
classCMsgPublisher: 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()¶ Constructor.
-
inline
CMsgPublisher(const std::string &topic_name_, const std::string &topic_type_ = "", const std::string &topic_desc_ = "")¶ Constructor.
- Parameters
topic_name_ – Unique topic name.
topic_type_ – Type name (optional for type checking).
topic_desc_ – Type description (optional for description checking).
-
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.
-
virtual
~CMsgPublisher() = default¶
-
inline bool
Create(const std::string &topic_name_, const std::string &topic_type_ = "", const std::string &topic_desc_ = "")¶ Creates this object.
- Parameters
topic_name_ – Unique topic name.
topic_type_ – Type name (optional for type checking).
topic_desc_ – Type description (optional for description checking).
- 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