$search
Class for converting between attribute names (strings) and more effecient attribute types. More...
#include <datatypes.h>
Static Public Member Functions | |
static Attribute | attribute (const std::string &attribute_str) |
attribute | |
static std::string | attribute_str (const Attribute &attribute) |
attribute_str | |
Static Public Attributes | |
static std::map< Attribute, std::string > | ATTR_TO_STR |
map from attribute types to strings | |
static std::map< std::string, Attribute > | STR_TO_ATTR |
map from attribute string to types |
Class for converting between attribute names (strings) and more effecient attribute types.
Definition at line 60 of file datatypes.h.
Attribute mhf::AttributeConv::attribute | ( | const std::string & | attribute_str | ) | [static] |
attribute
attribute_str | The attribute name as string |
Definition at line 16 of file datatypes.cpp.
std::string mhf::AttributeConv::attribute_str | ( | const Attribute & | attribute | ) | [static] |
attribute_str
attribute | The attribute type |
Definition at line 27 of file datatypes.cpp.
std::map< Attribute, std::string > mhf::AttributeConv::ATTR_TO_STR [static] |
map from attribute types to strings
Definition at line 65 of file datatypes.h.
std::map< std::string, Attribute > mhf::AttributeConv::STR_TO_ATTR [static] |
map from attribute string to types
Definition at line 68 of file datatypes.h.