Public Member Functions
CAttribute Class Referenceabstract

The class of all attributes of data that is considered to ve meta-data. More...

#include <mia/core/attributes.hh>

Inheritance diagram for CAttribute:
C3DValueAttribute< T > TAttribute< T >

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 const char * typedescr () const =0
 
virtual ~CAttribute ()
 virtual destructor since derived classes may define dynamic objetcs More...
 

Detailed Description

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 48 of file attributes.hh.

Constructor & Destructor Documentation

virtual CAttribute::~CAttribute ( )
virtual

virtual destructor since derived classes may define dynamic objetcs

Member Function Documentation

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
Parameters
otherother attribute to compare to
Returns
true if the attributes are of the same type and hold the same value, false otherwiese

Referenced by operator==().

bool CAttribute::is_less ( const CAttribute other) const

compare this attribute to another one for a strict ordering

Parameters
otherother attribute to compare to
Returns
a result dependend on the actual implementation of the private virtual method do_is_less

Referenced by operator<().

virtual const char* CAttribute::typedescr ( ) const
pure virtual
Returns
a descriptive name of the type

Implemented in C3DValueAttribute< T >, and TAttribute< T >.


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