A class to translate an attribute from a string.
More...
#include <mia/core/attributes.hh>
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 409 of file attributes.hh.
◆ ~CAttrTranslator()
virtual CAttrTranslator::~CAttrTranslator |
( |
| ) |
|
|
inlinevirtual |
The virtual destructor just ensures virtual destruction and silences a warning.
Definition at line 412 of file attributes.hh.
References from_string().
◆ CAttrTranslator()
CAttrTranslator::CAttrTranslator |
( |
| ) |
|
|
protected |
◆ do_register()
bool CAttrTranslator::do_register |
( |
const std::string & |
key | ) |
|
|
protected |
Register this translator to handle attributes with the given key
- Parameters
-
◆ from_string()
PAttribute CAttrTranslator::from_string |
( |
const std::string & |
value | ) |
const |
- Parameters
-
value | the 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: