Public Member Functions | Protected Member Functions
CAttrTranslator Class Referenceabstract

A class to translate an attribute from a string. More...

#include <mia/core/attributes.hh>

Inheritance diagram for CAttrTranslator:
C3DValueAttributeTranslator< T > TTranslator< T >

Public Member Functions

PAttribute from_string (const std::string &value) const
 
virtual ~CAttrTranslator ()
 The virtual destructor just ensures virtual destruction and silences a warning. More...
 

Protected Member Functions

 CAttrTranslator ()
 
void do_register (const std::string &key)
 

Detailed Description

A class to translate an attribute from a string.

This class is the base class to translate attributes from their typed value to a string and back.

Definition at line 366 of file attributes.hh.

Constructor & Destructor Documentation

virtual CAttrTranslator::~CAttrTranslator ( )
inlinevirtual

The virtual destructor just ensures virtual destruction and silences a warning.

Definition at line 369 of file attributes.hh.

CAttrTranslator::CAttrTranslator ( )
protected

Member Function Documentation

void CAttrTranslator::do_register ( const std::string &  key)
protected

Register this translator to handle attributes with the given key

Parameters
key

Referenced by TTranslator< T >::register_for().

PAttribute CAttrTranslator::from_string ( const std::string &  value) const
Parameters
valuethe string value of the object
Returns
a shared pointer to the newly created attribute

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