A publisher of messages on a topic. More...
#include <Publisher.hh>
Public Member Functions | |
| Publisher (unsigned int _limit, bool _latch) | |
| Default Constructor. | |
| Publisher (const std::string &topic, const std::string &msg_type, unsigned int _limit, bool _latch) | |
| Use this constructor. | |
| virtual | ~Publisher () |
| Destructor. | |
| bool | HasConnections () const |
| void | SetPublication (PublicationPtr &_publication, int _i) |
| void | Publish (const google::protobuf::Message &_message, bool _block=false) |
| Publish a message on the topic. | |
| template<typename M > | |
| void | Publish (M _message, bool _block=false) |
| unsigned int | GetOutgoingCount () const |
| std::string | GetTopic () const |
| Get the topic name. | |
| std::string | GetMsgType () const |
| Get the message type. | |
| void | SendMessage () |
| Send latest message over the wire. For internal use only. | |
| bool | GetLatching () const |
| std::string | GetPrevMsg () const |
A publisher of messages on a topic.
| Publisher | ( | const std::string & | topic, |
| const std::string & | msg_type, | ||
| unsigned int | _limit, | ||
| bool | _latch | ||
| ) |
Use this constructor.
| topic | Name of topic |
| msg_type | Type of the message which is to be published |
1.7.5.1