Static Public Member Functions | Static Public Attributes | List of all members
mhf::AttributeConv Class Reference

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 More...
 
static std::string attribute_str (const Attribute &attribute)
 attribute_str More...
 

Static Public Attributes

static std::map< Attribute, std::string > ATTR_TO_STR
 map from attribute types to strings More...
 
static std::map< std::string, AttributeSTR_TO_ATTR
 map from attribute string to types More...
 

Detailed Description

Class for converting between attribute names (strings) and more effecient attribute types.

Definition at line 60 of file datatypes.h.

Member Function Documentation

Attribute mhf::AttributeConv::attribute ( const std::string &  attribute_str)
static

attribute

Parameters
attribute_strThe attribute name as string
Returns
The attribute type

Definition at line 16 of file datatypes.cpp.

std::string mhf::AttributeConv::attribute_str ( const Attribute attribute)
static

attribute_str

Parameters
attributeThe attribute type
Returns
The attribute name as string

Definition at line 27 of file datatypes.cpp.

Member Data Documentation

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.


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


wire_core
Author(s): Sjoerd van den Dries, Jos Elfring
autogenerated on Fri Apr 16 2021 02:32:27