35 #ifndef ROSBAG_MESSAGE_INSTANCE_H 36 #define ROSBAG_MESSAGE_INSTANCE_H 65 std::string
const& getTopic()
const;
66 std::string
const& getDataType()
const;
67 std::string
const& getMD5Sum()
const;
68 std::string
const& getMessageDefinition()
const;
72 std::string getCallerId()
const;
73 bool isLatching()
const;
90 template<
typename Stream>
91 void write(
Stream& stream)
const;
94 uint32_t size()
const;
108 namespace message_traits {
130 namespace serialization
136 template<
typename Stream>
157 return md5sum == std::string(
"*") || md5sum == getMD5Sum();
165 return bag_->instantiateBuffer<T>(index_entry_);
168 template<
typename Stream>
170 bag_->readMessageDataIntoStream(index_entry_, stream);
ConnectionInfo const * connection_info_
IndexEntry const index_entry_
static uint32_t serializedLength(const rosbag::MessageInstance &m)
static const char * value(const rosbag::MessageInstance &m)
std::string const & getMD5Sum() const
bool isType() const
Test whether the underlying message of the specified type.
A class pointing into a bag file.
uint32_t size() const
Size of serialized message.
boost::shared_ptr< T > instantiate() const
Templated call to instantiate a message.
static const char * value(const rosbag::MessageInstance &m)
static const char * value()
std::string const & getMessageDefinition() const
std::string const & getDataType() const
static const char * value(const rosbag::MessageInstance &m)
static void write(Stream &stream, const rosbag::MessageInstance &m)
void write(Stream &stream) const
Write serialized message contents out to a stream.