A helper class that can convert an enum value into its textual representation, and viceversa.
Definition at line 23 of file CConfigFileBase.h.
#include <mrpt/utils/CConfigFileBase.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. More... | |||
|
inlinestatic |
Singleton access.
Definition at line 49 of file TEnumType.h.
|
inlinestatic |
Gives the numerical name for a given enum text name
std::exception | on unknown enum name. |
Definition at line 35 of file TEnumType.h.
References empty(), and mrpt::utils::TEnumTypeFiller< ENUMTYPE >::fill().
Referenced by mrpt::utils::CConfigFileBase::read_enum().
|
inlinestatic |
Gives the textual name for a given enum value
std::exception | on unknown enum value name. |
Definition at line 42 of file TEnumType.h.
References empty(), and mrpt::utils::TEnumTypeFiller< ENUMTYPE >::fill().
Page generated by Doxygen 1.8.11 for MRPT 1.4.0 SVN: at Sun Aug 14 23:58:29 UTC 2016 |