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>
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 Stats & | getStats () |
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_ |
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.
ros::PublisherLink::PublisherLink | ( | const SubscriptionPtr & | parent, | |
const std::string & | xmlrpc_uri, | |||
const TransportHints & | transport_hints | |||
) |
Definition at line 51 of file publisher_link.cpp.
ros::PublisherLink::~PublisherLink | ( | ) | [virtual] |
Definition at line 59 of file publisher_link.cpp.
virtual void ros::PublisherLink::drop | ( | ) | [pure virtual] |
Implemented in ros::IntraProcessPublisherLink, and ros::TransportPublisherLink.
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 107 of file publisher_link.cpp.
const std::string & ros::PublisherLink::getPublisherXMLRPCURI | ( | ) |
Definition at line 102 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] |
Implemented in ros::IntraProcessPublisherLink, and ros::TransportPublisherLink.
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::IntraProcessPublisherLink, and ros::TransportPublisherLink.
bool ros::PublisherLink::isLatched | ( | ) | [inline] |
Definition at line 75 of file publisher_link.h.
bool ros::PublisherLink::setHeader | ( | const Header & | header | ) |
Definition at line 63 of file publisher_link.cpp.
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.
Header ros::PublisherLink::header_ [protected] |
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.
std::string ros::PublisherLink::publisher_xmlrpc_uri_ [protected] |
Definition at line 91 of file publisher_link.h.
Stats ros::PublisherLink::stats_ [protected] |
Definition at line 93 of file publisher_link.h.
TransportHints ros::PublisherLink::transport_hints_ [protected] |
Definition at line 95 of file publisher_link.h.