A singelton class to translate strings to attributes based on keys. More...
#include <mia/core/attributes.hh>
Public Member Functions | |
PAttribute | to_attr (const std::string &key, const std::string &value) const |
Static Public Member Functions | |
static CStringAttrTranslatorMap & | instance () |
Friends | |
class | CAttrTranslator |
A singelton class to translate strings to attributes based on keys.
This class provides a singleton to translate strings to attributes. For the translation to take place for each attribute key a CAttrTranslator needs to be registered first.
Definition at line 439 of file attributes.hh.
|
static |
Referenced by add_attribute().
PAttribute CStringAttrTranslatorMap::to_attr | ( | const std::string & | key, |
const std::string & | value | ||
) | const |
Converts the input string value to a PAttribute by using the translator that was registered for the given key.
key | |
value |
Referenced by add_attribute().
|
friend |
Definition at line 453 of file attributes.hh.