#include <typemodel.hh>
Public Types | |
typedef std::map< std::string, Values > | Map |
typedef std::set< std::string > | Values |
Public Member Functions | |
void | add (std::string const &key, Values const &value) |
void | add (std::string const &key, std::string const &value) |
void | clear (std::string const &key) |
void | clear () |
Map const & | get () const |
Values | get (std::string const &key) const |
bool | include (std::string const &key) const |
void | merge (MetaData const &metadata) |
void | set (std::string const &key, std::string const &value) |
Private Attributes | |
Map | m_values |
Definition at line 19 of file typemodel.hh.
typedef std::map<std::string, Values> Typelib::MetaData::Map |
Definition at line 23 of file typemodel.hh.
typedef std::set<std::string> Typelib::MetaData::Values |
Definition at line 22 of file typemodel.hh.
void Typelib::MetaData::add | ( | std::string const & | key, |
Values const & | value | ||
) |
Adds a set of metadata values for the given key, Existing values are retained. The set can be empty in which case include(key) will return true but get(key) will return an empty set.
Definition at line 214 of file typemodel.cc.
void Typelib::MetaData::add | ( | std::string const & | key, |
std::string const & | value | ||
) |
Adds a metadata value for the given key, Existing values are retained.
Definition at line 209 of file typemodel.cc.
void Typelib::MetaData::clear | ( | std::string const & | key | ) |
Clear all metadata entries that have this key
Definition at line 223 of file typemodel.cc.
void Typelib::MetaData::clear | ( | ) |
Clear all metadata entries
Definition at line 228 of file typemodel.cc.
MetaData::Map const & Typelib::MetaData::get | ( | ) | const |
Returns the key => values map for all values stored in this metadata object
Definition at line 190 of file typemodel.cc.
MetaData::Values Typelib::MetaData::get | ( | std::string const & | key | ) | const |
Returns all metadata information with the given key associated with this type
Definition at line 195 of file typemodel.cc.
bool Typelib::MetaData::include | ( | std::string const & | key | ) | const |
Tests whether there is at least one value for the given key
Definition at line 185 of file typemodel.cc.
void Typelib::MetaData::merge | ( | MetaData const & | metadata | ) |
Add all metadata entries that are in the given metadata set to the metadata of this type
Definition at line 233 of file typemodel.cc.
void Typelib::MetaData::set | ( | std::string const & | key, |
std::string const & | value | ||
) |
Sets the metadata value for the given key to the given value, removing all previously known value(s) for that key
Definition at line 203 of file typemodel.cc.
Map Typelib::MetaData::m_values [private] |
Definition at line 25 of file typemodel.hh.