Classes | Public Member Functions | Protected Attributes
ros::PublisherLink Class Reference

Handles a connection to a single publisher on a given topic. Receives messages from a publisher and hands them off to its parent Subscription. More...

#include <publisher_link.h>

Inheritance diagram for ros::PublisherLink:
Inheritance graph
[legend]

List of all members.

Classes

class  Stats

Public Member Functions

virtual void drop ()=0
const std::string & getCallerID ()
int getConnectionID () const
const std::string & getMD5Sum ()
const std::string & getPublisherXMLRPCURI ()
const StatsgetStats ()
virtual std::string getTransportType ()=0
virtual void handleMessage (const SerializedMessage &m, bool ser, bool nocopy)=0
 Handles handing off a received message to the subscription, where it will be deserialized and called back.
bool isLatched ()
 PublisherLink (const SubscriptionPtr &parent, const std::string &xmlrpc_uri, const TransportHints &transport_hints)
bool setHeader (const Header &header)
virtual ~PublisherLink ()

Protected Attributes

std::string caller_id_
unsigned int connection_id_
Header header_
bool latched_
std::string md5sum_
SubscriptionWPtr parent_
std::string publisher_xmlrpc_uri_
Stats stats_
TransportHints transport_hints_

Detailed Description

Handles a connection to a single publisher on a given topic. Receives messages from a publisher and hands them off to its parent Subscription.

Definition at line 56 of file publisher_link.h.


Constructor & Destructor Documentation

ros::PublisherLink::PublisherLink ( const SubscriptionPtr &  parent,
const std::string &  xmlrpc_uri,
const TransportHints transport_hints 
)

Definition at line 51 of file publisher_link.cpp.

Definition at line 59 of file publisher_link.cpp.


Member Function Documentation

virtual void ros::PublisherLink::drop ( ) [pure virtual]
const std::string& ros::PublisherLink::getCallerID ( ) [inline]

Definition at line 74 of file publisher_link.h.

int ros::PublisherLink::getConnectionID ( ) const [inline]

Definition at line 73 of file publisher_link.h.

const std::string & ros::PublisherLink::getMD5Sum ( )

Definition at line 106 of file publisher_link.cpp.

Definition at line 101 of file publisher_link.cpp.

const Stats& ros::PublisherLink::getStats ( ) [inline]

Definition at line 71 of file publisher_link.h.

virtual std::string ros::PublisherLink::getTransportType ( ) [pure virtual]
virtual void ros::PublisherLink::handleMessage ( const SerializedMessage m,
bool  ser,
bool  nocopy 
) [pure virtual]

Handles handing off a received message to the subscription, where it will be deserialized and called back.

Implemented in ros::TransportPublisherLink, and ros::IntraProcessPublisherLink.

bool ros::PublisherLink::isLatched ( ) [inline]

Definition at line 75 of file publisher_link.h.

bool ros::PublisherLink::setHeader ( const Header header)

Definition at line 62 of file publisher_link.cpp.


Member Data Documentation

std::string ros::PublisherLink::caller_id_ [protected]

Definition at line 98 of file publisher_link.h.

unsigned int ros::PublisherLink::connection_id_ [protected]

Definition at line 90 of file publisher_link.h.

Definition at line 99 of file publisher_link.h.

bool ros::PublisherLink::latched_ [protected]

Definition at line 97 of file publisher_link.h.

std::string ros::PublisherLink::md5sum_ [protected]

Definition at line 100 of file publisher_link.h.

SubscriptionWPtr ros::PublisherLink::parent_ [protected]

Definition at line 89 of file publisher_link.h.

Definition at line 91 of file publisher_link.h.

Definition at line 93 of file publisher_link.h.

Definition at line 95 of file publisher_link.h.


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


roscpp
Author(s): Morgan Quigley, Josh Faust, Brian Gerkey, Troy Straszheim
autogenerated on Mon Oct 6 2014 11:46:44