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 160 of file metadata.h.
mongo_ros::Metadata::Metadata | ( | ) | [inline] |
Definition at line 163 of file metadata.h.
mongo_ros::Metadata::Metadata | ( | const std::string & | json | ) | [inline] |
Definition at line 169 of file metadata.h.
mongo_ros::Metadata::Metadata | ( | const Metadata & | other | ) | [inline] |
Definition at line 175 of file metadata.h.
mongo_ros::Metadata::Metadata | ( | const std::string & | name, |
const T & | val | ||
) | [inline] |
Definition at line 182 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 190 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 200 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 212 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 226 of file metadata.h.
Metadata& mongo_ros::Metadata::append | ( | const std::string & | name, |
const T & | val | ||
) | [inline] |
Definition at line 242 of file metadata.h.
void mongo_ros::Metadata::initialize | ( | ) | [inline, private] |
Definition at line 252 of file metadata.h.