A helper class that can convert an enum value into its textual representation, and viceversa.
Definition at line 22 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. More... | |
static std::string | value2name (const ENUMTYPE val) |
Gives the textual name for a given enum value. More... | |
static bimap< ENUMTYPE, std::string > & | getBimap () |
Singleton access. More... | |
|
inlinestatic |
Singleton access.
Definition at line 47 of file TEnumType.h.
Referenced by mrpt::utils::TEnumType< ENUMTYPE >::name2value(), and mrpt::utils::TEnumType< ENUMTYPE >::value2name().
|
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 mrpt::utils::TEnumType< ENUMTYPE >::getBimap().
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 41 of file TEnumType.h.
References mrpt::utils::TEnumType< ENUMTYPE >::getBimap(), and val.
Referenced by mrpt::obs::CObservation3DRangeScan::getDescriptionAsText().
Page generated by Doxygen 1.8.14 for MRPT 1.5.5 Git: e06b63dbf Fri Dec 1 14:41:11 2017 +0100 at lun oct 28 01:31:35 CET 2019 |