Classes | Public Member Functions | Protected Attributes | List of all members
ros::PublisherLink Class Referenceabstract

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]

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 getTransportInfo ()=0
 
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. More...
 
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

◆ PublisherLink()

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

Definition at line 51 of file publisher_link.cpp.

◆ ~PublisherLink()

ros::PublisherLink::~PublisherLink ( )
virtual

Definition at line 60 of file publisher_link.cpp.

Member Function Documentation

◆ drop()

virtual void ros::PublisherLink::drop ( )
pure virtual

◆ getCallerID()

const std::string& ros::PublisherLink::getCallerID ( )
inline

Definition at line 74 of file publisher_link.h.

◆ getConnectionID()

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

Definition at line 73 of file publisher_link.h.

◆ getMD5Sum()

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

Definition at line 107 of file publisher_link.cpp.

◆ getPublisherXMLRPCURI()

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

Definition at line 102 of file publisher_link.cpp.

◆ getStats()

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

Definition at line 71 of file publisher_link.h.

◆ getTransportInfo()

virtual std::string ros::PublisherLink::getTransportInfo ( )
pure virtual

◆ getTransportType()

virtual std::string ros::PublisherLink::getTransportType ( )
pure virtual

◆ handleMessage()

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.

◆ isLatched()

bool ros::PublisherLink::isLatched ( )
inline

Definition at line 75 of file publisher_link.h.

◆ setHeader()

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

Definition at line 63 of file publisher_link.cpp.

Member Data Documentation

◆ caller_id_

std::string ros::PublisherLink::caller_id_
protected

Definition at line 99 of file publisher_link.h.

◆ connection_id_

unsigned int ros::PublisherLink::connection_id_
protected

Definition at line 91 of file publisher_link.h.

◆ header_

Header ros::PublisherLink::header_
protected

Definition at line 100 of file publisher_link.h.

◆ latched_

bool ros::PublisherLink::latched_
protected

Definition at line 98 of file publisher_link.h.

◆ md5sum_

std::string ros::PublisherLink::md5sum_
protected

Definition at line 101 of file publisher_link.h.

◆ parent_

SubscriptionWPtr ros::PublisherLink::parent_
protected

Definition at line 90 of file publisher_link.h.

◆ publisher_xmlrpc_uri_

std::string ros::PublisherLink::publisher_xmlrpc_uri_
protected

Definition at line 92 of file publisher_link.h.

◆ stats_

Stats ros::PublisherLink::stats_
protected

Definition at line 94 of file publisher_link.h.

◆ transport_hints_

TransportHints ros::PublisherLink::transport_hints_
protected

Definition at line 96 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, Dirk Thomas
autogenerated on Mon Feb 28 2022 23:33:27