All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
gazebo::transport::Publication Class Reference

A publication for a topic. More...

#include <Publication.hh>

Public Member Functions

 Publication (const std::string &topic, const std::string &msgType)
 Constructor.
 
virtual ~Publication ()
 Destructor.
 
void AddPublisher (PublisherPtr _pub)
 
void AddSubscription (const CallbackHelperPtr &callback)
 
void AddSubscription (const NodePtr &_node)
 
void AddTransport (const PublicationTransportPtr &publink)
 
unsigned int GetCallbackCount () const
 
bool GetLocallyAdvertised () const
 Return true if the topic has been advertised from this process.
 
std::string GetMsgType () const
 Get the type of message.
 
unsigned int GetNodeCount () const
 
unsigned int GetRemoteSubscriptionCount ()
 
unsigned int GetTransportCount () const
 
bool HasTransport (const std::string &_host, unsigned int _port)
 
void LocalPublish (const std::string &data)
 Publish data.
 
void Publish (const google::protobuf::Message &msg, const boost::function< void()> &cb=NULL)
 
void RemoveSubscription (const NodePtr &_node)
 Remove a subscription.
 
void RemoveSubscription (const std::string &host, unsigned int port)
 Remove a subscription.
 
void RemoveTransport (const std::string &host, unsigned int port)
 
void SetLocallyAdvertised (bool _value)
 Set whether this topic has been advertised from this process.
 

Detailed Description

A publication for a topic.

This facilitates transport of messages

Constructor & Destructor Documentation

gazebo::transport::Publication::Publication ( const std::string &  topic,
const std::string &  msgType 
)

Constructor.

virtual gazebo::transport::Publication::~Publication ( )
virtual

Destructor.

Member Function Documentation

void gazebo::transport::Publication::AddPublisher ( PublisherPtr  _pub)
void gazebo::transport::Publication::AddSubscription ( const CallbackHelperPtr callback)
void gazebo::transport::Publication::AddSubscription ( const NodePtr _node)
void gazebo::transport::Publication::AddTransport ( const PublicationTransportPtr publink)
unsigned int gazebo::transport::Publication::GetCallbackCount ( ) const
bool gazebo::transport::Publication::GetLocallyAdvertised ( ) const

Return true if the topic has been advertised from this process.

Referenced by gazebo::transport::TopicManager::Advertise().

std::string gazebo::transport::Publication::GetMsgType ( ) const

Get the type of message.

unsigned int gazebo::transport::Publication::GetNodeCount ( ) const
unsigned int gazebo::transport::Publication::GetRemoteSubscriptionCount ( )
unsigned int gazebo::transport::Publication::GetTransportCount ( ) const
bool gazebo::transport::Publication::HasTransport ( const std::string &  _host,
unsigned int  _port 
)
void gazebo::transport::Publication::LocalPublish ( const std::string &  data)

Publish data.

void gazebo::transport::Publication::Publish ( const google::protobuf::Message &  msg,
const boost::function< void()> &  cb = NULL 
)
void gazebo::transport::Publication::RemoveSubscription ( const NodePtr _node)

Remove a subscription.

void gazebo::transport::Publication::RemoveSubscription ( const std::string &  host,
unsigned int  port 
)

Remove a subscription.

void gazebo::transport::Publication::RemoveTransport ( const std::string &  host,
unsigned int  port 
)
void gazebo::transport::Publication::SetLocallyAdvertised ( bool  _value)

Set whether this topic has been advertised from this process.

Referenced by gazebo::transport::TopicManager::Advertise().


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