Public Types | Public Member Functions | Private Attributes
Typelib::MetaData Class Reference

#include <typemodel.hh>

List of all members.

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

Detailed Description

Definition at line 19 of file typemodel.hh.


Member Typedef Documentation

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.


Member Function Documentation

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.

Clear all metadata entries

Definition at line 228 of file typemodel.cc.

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.


Member Data Documentation

Definition at line 25 of file typemodel.hh.


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


typelib
Author(s): Sylvain Joyeux/sylvain.joyeux@m4x.org
autogenerated on Sat Jun 8 2019 18:49:23