Represents metadata attached to a message. Automatically includes a unique id and creation time. More...
#include <metadata.h>
Public Member Functions | |
template<class T > | |
Metadata & | append (const std::string &name, const T &val) |
Metadata () | |
Metadata (const std::string &json) | |
Metadata (const Metadata &other) | |
template<class T > | |
Metadata (const std::string &name, const T &val) | |
template<class T , class T2 > | |
Metadata (const std::string &n, const T &v, const std::string &n2, const T2 &v2) | |
template<class T1 , class T2 , class T3 > | |
Metadata (const std::string &n1, const T1 &v1, const std::string &n2, const T2 &v2, const std::string &n3, const T3 &v3) | |
template<class T1 , class T2 , class T3 > | |
Metadata (const std::string &n1, const T1 &v1, const std::string &n2, const T2 &v2, const std::string &n3, const T3 &v3, const std::string &n4, const T3 &v4) | |
template<class T1 , class T2 , class T3 > | |
Metadata (const std::string &n1, const T1 &v1, const std::string &n2, const T2 &v2, const std::string &n3, const T3 &v3, const std::string &n4, const T3 &v4, const std::string &n5, const T3 &v5) | |
Private Member Functions | |
void | initialize () |
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 165 of file metadata.h.
mongo_ros::Metadata::Metadata | ( | ) | [inline] |
Definition at line 168 of file metadata.h.
mongo_ros::Metadata::Metadata | ( | const std::string & | json | ) | [inline] |
Definition at line 174 of file metadata.h.
mongo_ros::Metadata::Metadata | ( | const Metadata & | other | ) | [inline] |
Definition at line 180 of file metadata.h.
mongo_ros::Metadata::Metadata | ( | const std::string & | name, |
const T & | val | ||
) | [inline] |
Definition at line 187 of file metadata.h.
mongo_ros::Metadata::Metadata | ( | const std::string & | n, |
const T & | v, | ||
const std::string & | n2, | ||
const T2 & | v2 | ||
) | [inline] |
Definition at line 195 of file metadata.h.
mongo_ros::Metadata::Metadata | ( | const std::string & | n1, |
const T1 & | v1, | ||
const std::string & | n2, | ||
const T2 & | v2, | ||
const std::string & | n3, | ||
const T3 & | v3 | ||
) | [inline] |
Definition at line 205 of file metadata.h.
mongo_ros::Metadata::Metadata | ( | const std::string & | n1, |
const T1 & | v1, | ||
const std::string & | n2, | ||
const T2 & | v2, | ||
const std::string & | n3, | ||
const T3 & | v3, | ||
const std::string & | n4, | ||
const T3 & | v4 | ||
) | [inline] |
Definition at line 217 of file metadata.h.
mongo_ros::Metadata::Metadata | ( | const std::string & | n1, |
const T1 & | v1, | ||
const std::string & | n2, | ||
const T2 & | v2, | ||
const std::string & | n3, | ||
const T3 & | v3, | ||
const std::string & | n4, | ||
const T3 & | v4, | ||
const std::string & | n5, | ||
const T3 & | v5 | ||
) | [inline] |
Definition at line 231 of file metadata.h.
Metadata& mongo_ros::Metadata::append | ( | const std::string & | name, |
const T & | val | ||
) | [inline] |
Definition at line 247 of file metadata.h.
void mongo_ros::Metadata::initialize | ( | ) | [inline, private] |
Definition at line 257 of file metadata.h.