Public Member Functions
Publisher Class Reference

A publisher of messages on a topic. More...

#include <Publisher.hh>

List of all members.

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

Detailed Description

A publisher of messages on a topic.


Constructor & Destructor Documentation

Publisher ( const std::string &  topic,
const std::string &  msg_type,
unsigned int  _limit,
bool  _latch 
)

Use this constructor.

Parameters:
topicName of topic
msg_typeType of the message which is to be published

The documentation for this class was generated from the following file: