Inviwo  0.9.10.1
Inviwo documentation
inviwo::MetaDataOwner Class Reference

Holds metadata and access functionality for set/get. More...

#include <metadataowner.h>

+ Inheritance diagram for inviwo::MetaDataOwner:

Public Member Functions

 MetaDataOwner (const MetaDataOwner &rhs)=default
 
MetaDataOwneroperator= (const MetaDataOwner &rhs)=default
 
void copyMetaDataFrom (const MetaDataOwner &src)
 
void copyMetaDataTo (MetaDataOwner &dst)
 
template<typename T >
T * createMetaData (const std::string &key)
 
template<typename T , typename U >
void setMetaData (const std::string &key, U value)
 
template<typename T >
bool unsetMetaData (const std::string &key)
 unset, i.e. remove the metadata entry matching the given key and type More...
 
template<typename T , typename U >
getMetaData (const std::string &key, U val) const
 
template<typename T >
T * getMetaData (const std::string &key)
 
template<typename T >
const T * getMetaData (const std::string &key) const
 
MetaDataMapgetMetaDataMap ()
 
const MetaDataMapgetMetaDataMap () const
 
template<typename T >
bool hasMetaData (const std::string &key) const
 
virtual void serialize (Serializer &s) const
 
virtual void deserialize (Deserializer &d)
 

Protected Attributes

MetaDataMap metaData_
 

Detailed Description

Holds metadata and access functionality for set/get.

MetaDataOwner is the base class for all the objects that want to own metadata.

Member Function Documentation

◆ unsetMetaData()

template<typename T >
bool inviwo::MetaDataOwner::unsetMetaData ( const std::string &  key)

unset, i.e. remove the metadata entry matching the given key and type

Parameters
keykey of the entry to be removed

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