Represents metadata attached to a message. Automatically includes a unique id and creation time. More...
#include <metadata.h>

Public Member Functions | |
| void | append (const std::string &name, const std::string &val) |
| void | append (const std::string &name, const double val) |
| void | append (const std::string &name, const int val) |
| void | append (const std::string &name, const bool val) |
| bool | lookupBool (const std::string &name) const |
| double | lookupDouble (const std::string &name) const |
| bool | lookupField (const std::string &name) const |
| std::set< std::string > | lookupFieldNames () const |
| int | lookupInt (const std::string &name) const |
| std::string | lookupString (const std::string &name) const |
| MongoMetadata () | |
| MongoMetadata (const std::string &json) | |
| MongoMetadata (const MongoMetadata &other) | |
| MongoMetadata (const BSONObj &other) | |
Public Member Functions inherited from warehouse_ros::Metadata | |
| void | append (const std::string &name, const char *val) |
| virtual | ~Metadata () |
Public Member Functions inherited from warehouse_ros_mongo::WrappedBSON | |
| WrappedBSON () | |
| WrappedBSON (const WrappedBSON &other) | |
| WrappedBSON (const BSONObj &other) | |
| WrappedBSON (const std::string &json) | |
Private Member Functions | |
| void | initialize () |
Additional Inherited Members | |
Public Types inherited from warehouse_ros::Metadata | |
| typedef boost::shared_ptr< const Metadata > | ConstPtr |
| typedef boost::shared_ptr< Metadata > | Ptr |
Protected Member Functions inherited from warehouse_ros_mongo::WrappedBSON | |
| void | update () |
Protected Attributes inherited from warehouse_ros_mongo::WrappedBSON | |
| std::shared_ptr< BSONObjBuilder > | builder_ |
Represents metadata attached to a message. Automatically includes a unique id and creation time.
Usage:
Metadata m("x", 24, "y", 42); (templated so you can use varying number of fields, numeric or string values)
Or: m = Metadata().append("x", 24).append("name", "foo");
Definition at line 227 of file metadata.h.
|
inline |
Definition at line 230 of file metadata.h.
|
inline |
Definition at line 235 of file metadata.h.
|
inline |
Definition at line 239 of file metadata.h.
|
inline |
Definition at line 243 of file metadata.h.
|
inlinevirtual |
Implements warehouse_ros::Metadata.
Definition at line 247 of file metadata.h.
|
inlinevirtual |
Implements warehouse_ros::Metadata.
Definition at line 253 of file metadata.h.
|
inlinevirtual |
Implements warehouse_ros::Metadata.
Definition at line 259 of file metadata.h.
|
inlinevirtual |
Implements warehouse_ros::Metadata.
Definition at line 265 of file metadata.h.
|
inlineprivate |
Definition at line 306 of file metadata.h.
|
inlinevirtual |
Implements warehouse_ros::Metadata.
Definition at line 288 of file metadata.h.
|
inlinevirtual |
Implements warehouse_ros::Metadata.
Definition at line 276 of file metadata.h.
|
inlinevirtual |
Implements warehouse_ros::Metadata.
Definition at line 293 of file metadata.h.
|
inlinevirtual |
Implements warehouse_ros::Metadata.
Definition at line 298 of file metadata.h.
|
inlinevirtual |
Implements warehouse_ros::Metadata.
Definition at line 283 of file metadata.h.
|
inlinevirtual |
Implements warehouse_ros::Metadata.
Definition at line 271 of file metadata.h.