OTB  9.0.0
Orfeo Toolbox
Public Types | Public Member Functions | Private Attributes | List of all members
otb::Functor::AttributesMapLabelObjectAccessor< TLabelObject > Class Template Reference

#include <otbAttributesMapLabelObject.h>

+ Collaboration diagram for otb::Functor::AttributesMapLabelObjectAccessor< TLabelObject >:

Public Types

typedef LabelObjectType::AttributesValueType AttributeValueType
 
typedef TLabelObject LabelObjectType
 

Public Member Functions

 AttributesMapLabelObjectAccessor ()
 
const char * GetAttributeName () const
 
const AttributeValueType operator() (LabelObjectType *labelObject) const
 
void SetAttributeName (const char *name)
 
 ~AttributesMapLabelObjectAccessor ()
 

Private Attributes

std::string m_AttributeName
 

Detailed Description

template<class TLabelObject>
class otb::Functor::AttributesMapLabelObjectAccessor< TLabelObject >

Allows accessing a given field of an AttributesMapLabelObject.

The name of the attribute to retrieve can be set by using the SetAttributeName method.

See also
AttributesMapLabelObject

Definition at line 54 of file otbAttributesMapLabelObject.h.

Member Typedef Documentation

◆ AttributeValueType

template<class TLabelObject >
typedef LabelObjectType::AttributesValueType otb::Functor::AttributesMapLabelObjectAccessor< TLabelObject >::AttributeValueType

Definition at line 59 of file otbAttributesMapLabelObject.h.

◆ LabelObjectType

template<class TLabelObject >
typedef TLabelObject otb::Functor::AttributesMapLabelObjectAccessor< TLabelObject >::LabelObjectType

Definition at line 58 of file otbAttributesMapLabelObject.h.

Constructor & Destructor Documentation

◆ AttributesMapLabelObjectAccessor()

template<class TLabelObject >
otb::Functor::AttributesMapLabelObjectAccessor< TLabelObject >::AttributesMapLabelObjectAccessor ( )
inline

Constructor.

Definition at line 83 of file otbAttributesMapLabelObject.h.

◆ ~AttributesMapLabelObjectAccessor()

template<class TLabelObject >
otb::Functor::AttributesMapLabelObjectAccessor< TLabelObject >::~AttributesMapLabelObjectAccessor ( )
inline

Destructor.

Definition at line 88 of file otbAttributesMapLabelObject.h.

Member Function Documentation

◆ GetAttributeName()

template<class TLabelObject >
const char* otb::Functor::AttributesMapLabelObjectAccessor< TLabelObject >::GetAttributeName ( ) const
inline

Get the the name of the attribute to retrieve.

Definition at line 77 of file otbAttributesMapLabelObject.h.

◆ operator()()

template<class TLabelObject >
const AttributeValueType otb::Functor::AttributesMapLabelObjectAccessor< TLabelObject >::operator() ( LabelObjectType labelObject) const
inline

Please note that no exception catching is done here.

Parameters
labelObjectThe pointer to the label object
Returns
The attribute value.

Definition at line 66 of file otbAttributesMapLabelObject.h.

◆ SetAttributeName()

template<class TLabelObject >
void otb::Functor::AttributesMapLabelObjectAccessor< TLabelObject >::SetAttributeName ( const char *  name)
inline

Set the name of the attribute to retrieve.

Definition at line 72 of file otbAttributesMapLabelObject.h.

Member Data Documentation

◆ m_AttributeName

template<class TLabelObject >
std::string otb::Functor::AttributesMapLabelObjectAccessor< TLabelObject >::m_AttributeName
private

Name of the attribute to retrieve.

Definition at line 94 of file otbAttributesMapLabelObject.h.


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