warehouse::MetadataString Class Reference

Class that simplifies the creation of yaml strings representing metadata. More...

#include <message_with_metadata.h>

List of all members.

Public Member Functions

template<typename T >
MetadataStringadd (const std::string &key, const T &value)
 MetadataString ()
 operator std::string ()

Private Attributes

bool done
YAML::Emitter out

Detailed Description

Class that simplifies the creation of yaml strings representing metadata.

Usage: std::string meta = MetadataString().add("foo", "foo-val").add("bar", 42);

Definition at line 83 of file message_with_metadata.h.


Constructor & Destructor Documentation

warehouse::MetadataString::MetadataString (  )  [inline]

Definition at line 87 of file message_with_metadata.h.


Member Function Documentation

template<typename T >
MetadataString& warehouse::MetadataString::add ( const std::string &  key,
const T &  value 
) [inline]

Definition at line 94 of file message_with_metadata.h.

warehouse::MetadataString::operator std::string (  )  [inline]

Definition at line 103 of file message_with_metadata.h.


Member Data Documentation

Definition at line 114 of file message_with_metadata.h.

YAML::Emitter warehouse::MetadataString::out [private]

Definition at line 113 of file message_with_metadata.h.


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


warehouse
Author(s): Nate Koenig, Bhaskara Marthi
autogenerated on Fri Jan 11 10:09:02 2013