A helper class that can convert an enum value into its textual representation, and viceversa.
Definition at line 51 of file TEnumType.h.
#include <mrpt/utils/TEnumType.h>
Static Public Member Functions | |||
static ENUMTYPE | name2value (const std::string &name) | ||
Gives the numerical name for a given enum text name
| |||
static std::string | value2name (const ENUMTYPE val) | ||
Gives the textual name for a given enum value
| |||
static bimap< ENUMTYPE, std::string > & | getBimap () | ||
Singleton access. |
static bimap<ENUMTYPE,std::string>& mrpt::utils::TEnumType< ENUMTYPE >::getBimap | ( | ) | [inline, static] |
Singleton access.
Definition at line 68 of file TEnumType.h.
Referenced by mrpt::utils::TEnumType< ENUMTYPE >::name2value(), and mrpt::utils::TEnumType< ENUMTYPE >::value2name().
static ENUMTYPE mrpt::utils::TEnumType< ENUMTYPE >::name2value | ( | const std::string & | name | ) | [inline, static] |
Gives the numerical name for a given enum text name
std::exception | on unknown enum name. |
Definition at line 54 of file TEnumType.h.
References empty(), fill(), and mrpt::utils::TEnumType< ENUMTYPE >::getBimap().
static std::string mrpt::utils::TEnumType< ENUMTYPE >::value2name | ( | const ENUMTYPE | val | ) | [inline, static] |
Gives the textual name for a given enum value
std::exception | on unknown enum value name. |
Definition at line 61 of file TEnumType.h.
References empty(), fill(), and mrpt::utils::TEnumType< ENUMTYPE >::getBimap().
Page generated by Doxygen 1.7.3 for MRPT 0.9.4 SVN:exported at Tue Jan 25 21:56:31 UTC 2011 |