Static Public Member Functions | Static Public Attributes
mhf::AttributeConv Class Reference

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

#include <datatypes.h>

List of all members.

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

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 Tue Jan 7 2014 11:43:19