All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends
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 160 of file metadata.h.


Constructor & Destructor Documentation

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.

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

Definition at line 182 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 190 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 200 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 212 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 226 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 242 of file metadata.h.

void mongo_ros::Metadata::initialize ( ) [inline, private]

Definition at line 252 of file metadata.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends


mongo_ros
Author(s): Bhaskara Marthi
autogenerated on Tue Sep 3 2013 13:20:12