The class of all attributes of data that is considered to ve meta-data. More...
#include <mia/core/attributes.hh>
Public Member Functions | |
std::string | as_string () const |
returns the value as a atring More... | |
bool | is_equal (const CAttribute &other) const |
bool | is_less (const CAttribute &other) const |
virtual int | type_id () const =0 |
virtual const char * | typedescr () const =0 |
virtual | ~CAttribute () |
virtual destructor since derived classes may define dynamic objetcs More... | |
The class of all attributes of data that is considered to ve meta-data.
CAttribute is the base class used for generric attributes of images and similar entities. This class is abstract and most likely you want to use one of the provided specializations of the class TAttribute or create your own specializations.
Definition at line 51 of file attributes.hh.
|
virtual |
virtual destructor since derived classes may define dynamic objetcs
std::string CAttribute::as_string | ( | ) | const |
returns the value as a atring
Referenced by operator<<().
bool CAttribute::is_equal | ( | const CAttribute & | other | ) | const |
compare this attribute to another one
other | other attribute to compare to |
Referenced by operator==().
bool CAttribute::is_less | ( | const CAttribute & | other | ) | const |
compare this attribute to another one for a strict ordering
other | other attribute to compare to |
|
pure virtual |
Implemented in TAttribute< T >, and C3DValueAttribute< T >.
|
pure virtual |
Implemented in TAttribute< T >, and C3DValueAttribute< T >.
Referenced by CAttributedData::set_attribute().