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

Manager of connections. More...

#include <ConnectionManager.hh>

Inheritance diagram for gazebo::transport::ConnectionManager:
Inheritance graph

Public Member Functions

void Advertise (const std::string &topic, const std::string &msgType)
ConnectionPtr ConnectToRemoteHost (const std::string &host, unsigned int port)
 Connect to a remote server.
void Fini ()
 Finalize the conneciton manager.
void GetAllPublishers (std::list< msgs::Publish > &publishers)
 Explicitly update the publisher list.
void GetTopicNamespaces (std::list< std::string > &_namespaces)
 Get all the topic namespaces.
bool Init (const std::string &master_host, unsigned int master_port)
bool IsRunning () const
 Return true if running (not stopped)
void RegisterTopicNamespace (const std::string &_name)
 Register a new topic namespace.
void RemoveConnection (ConnectionPtr &conn)
 Remove a connection.
void Run ()
 Run the connection manager loop.
void RunUpdate ()
void Stop ()
 Stop the conneciton manager.
void Subscribe (const std::string &_topic, const std::string &_msgType, bool _latching)
void Unadvertise (const std::string &topic)
void Unsubscribe (const msgs::Subscribe &_sub)
void Unsubscribe (const std::string &_topic, const std::string &_msgType)

Protected Attributes

std::vector< event::ConnectionPtreventConnections

Additional Inherited Members

- Static Public Member Functions inherited from SingletonT< T >
static T * Instance ()
 Get an instance of the singleton.
- Protected Member Functions inherited from SingletonT< T >
 SingletonT ()
virtual ~SingletonT ()

Detailed Description

Manager of connections.

Member Function Documentation

void gazebo::transport::ConnectionManager::Advertise ( const std::string &  topic,
const std::string &  msgType 
ConnectionPtr gazebo::transport::ConnectionManager::ConnectToRemoteHost ( const std::string &  host,
unsigned int  port 

Connect to a remote server.

void gazebo::transport::ConnectionManager::Fini ( )

Finalize the conneciton manager.

void gazebo::transport::ConnectionManager::GetAllPublishers ( std::list< msgs::Publish > &  publishers)

Explicitly update the publisher list.

void gazebo::transport::ConnectionManager::GetTopicNamespaces ( std::list< std::string > &  _namespaces)

Get all the topic namespaces.

bool gazebo::transport::ConnectionManager::Init ( const std::string &  master_host,
unsigned int  master_port 
bool gazebo::transport::ConnectionManager::IsRunning ( ) const

Return true if running (not stopped)

void gazebo::transport::ConnectionManager::RegisterTopicNamespace ( const std::string &  _name)

Register a new topic namespace.

void gazebo::transport::ConnectionManager::RemoveConnection ( ConnectionPtr conn)

Remove a connection.

void gazebo::transport::ConnectionManager::Run ( )

Run the connection manager loop.

void gazebo::transport::ConnectionManager::RunUpdate ( )
void gazebo::transport::ConnectionManager::Stop ( )

Stop the conneciton manager.

void gazebo::transport::ConnectionManager::Subscribe ( const std::string &  _topic,
const std::string &  _msgType,
bool  _latching 
void gazebo::transport::ConnectionManager::Unadvertise ( const std::string &  topic)
void gazebo::transport::ConnectionManager::Unsubscribe ( const msgs::Subscribe &  _sub)
void gazebo::transport::ConnectionManager::Unsubscribe ( const std::string &  _topic,
const std::string &  _msgType 

Member Data Documentation

std::vector<event::ConnectionPtr> gazebo::transport::ConnectionManager::eventConnections

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