29 #ifndef ROSCPP_SUBSCRIBER_LINK_H
30 #define ROSCPP_SUBSCRIBER_LINK_H
32 #include "ros/common.h"
59 : bytes_sent_(0), message_data_sent_(0), messages_sent_(0) { }
65 const std::string&
getTopic()
const {
return topic_; }
73 virtual void enqueueMessage(
const SerializedMessage& m,
bool ser,
bool nocopy) = 0;
75 virtual void drop() = 0;
77 virtual std::string getTransportType() = 0;
78 virtual std::string getTransportInfo() = 0;
81 virtual void getPublishTypes(
bool& ser,
bool& nocopy,
const std::type_info& ti) { (void)ti; ser =
true; nocopy =
false; }
83 const std::string& getMD5Sum();
84 const std::string& getDataType();
85 const std::string& getMessageDefinition();
88 bool verifyDatatype(
const std::string &
datatype);
99 #endif // ROSCPP_SUBSCRIBER_LINK_H