Represents metadata attached to a message. More...
#include <metadata.h>
Public Types | |
typedef boost::shared_ptr < const Metadata > | ConstPtr |
typedef boost::shared_ptr < Metadata > | Ptr |
Public Member Functions | |
virtual void | append (const std::string &name, const std::string &val)=0 |
virtual void | append (const std::string &name, const double val)=0 |
virtual void | append (const std::string &name, const int val)=0 |
virtual void | append (const std::string &name, const bool val)=0 |
virtual bool | lookupBool (const std::string &name) const =0 |
virtual double | lookupDouble (const std::string &name) const =0 |
virtual bool | lookupField (const std::string &name) const =0 |
virtual std::set< std::string > | lookupFieldNames () const =0 |
virtual int | lookupInt (const std::string &name) const =0 |
virtual std::string | lookupString (const std::string &name) const =0 |
virtual | ~Metadata () |
Represents metadata attached to a message.
Usage: m = Metadata().append("x", 24).append("name", "foo");
Definition at line 84 of file metadata.h.
typedef boost::shared_ptr<const Metadata> warehouse_ros::Metadata::ConstPtr |
Definition at line 88 of file metadata.h.
typedef boost::shared_ptr<Metadata> warehouse_ros::Metadata::Ptr |
Definition at line 87 of file metadata.h.
virtual warehouse_ros::Metadata::~Metadata | ( | ) | [inline, virtual] |
Definition at line 90 of file metadata.h.
virtual void warehouse_ros::Metadata::append | ( | const std::string & | name, |
const std::string & | val | ||
) | [pure virtual] |
virtual void warehouse_ros::Metadata::append | ( | const std::string & | name, |
const double | val | ||
) | [pure virtual] |
virtual void warehouse_ros::Metadata::append | ( | const std::string & | name, |
const int | val | ||
) | [pure virtual] |
virtual void warehouse_ros::Metadata::append | ( | const std::string & | name, |
const bool | val | ||
) | [pure virtual] |
virtual bool warehouse_ros::Metadata::lookupBool | ( | const std::string & | name | ) | const [pure virtual] |
virtual double warehouse_ros::Metadata::lookupDouble | ( | const std::string & | name | ) | const [pure virtual] |
virtual bool warehouse_ros::Metadata::lookupField | ( | const std::string & | name | ) | const [pure virtual] |
virtual std::set<std::string> warehouse_ros::Metadata::lookupFieldNames | ( | ) | const [pure virtual] |
virtual int warehouse_ros::Metadata::lookupInt | ( | const std::string & | name | ) | const [pure virtual] |
virtual std::string warehouse_ros::Metadata::lookupString | ( | const std::string & | name | ) | const [pure virtual] |