Public Member Functions | Private Member Functions
mongo_ros::Metadata Class Reference

Represents metadata attached to a message. Automatically includes a unique id and creation time. More...

#include <metadata.h>

Inheritance diagram for mongo_ros::Metadata:
Inheritance graph
[legend]

List of all members.

Public Member Functions

template<class T >
Metadataappend (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 ()

Detailed Description

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.


Constructor & Destructor Documentation

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.

template<class T >
mongo_ros::Metadata::Metadata ( const std::string &  name,
const T &  val 
) [inline]

Definition at line 187 of file metadata.h.

template<class T , class T2 >
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.

template<class T1 , class T2 , class T3 >
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.

template<class T1 , class T2 , class T3 >
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.

template<class T1 , class T2 , class T3 >
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.


Member Function Documentation

template<class T >
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.


The documentation for this class was generated from the following file:


warehouse_ros
Author(s): Bhaskara Marthi
autogenerated on Mon Oct 6 2014 08:51:55