9#ifndef mrpt_TEnumType_H
10#define mrpt_TEnumType_H
22 template <
typename ENUMTYPE>
31 template <
typename ENUMTYPE>
A bidirectional version of std::map, declared as bimap<KEY,VALUE> and which actually contains two std...
EIGEN_STRONG_INLINE bool empty() const
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Only specializations of this class are defined for each enum type of interest.
static void fill(mrpt::utils::bimap< enum_t, std::string > &m_map)
A helper class that can convert an enum value into its textual representation, and viceversa.
static bimap< ENUMTYPE, std::string > & getBimap()
Singleton access.
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.