This class manage the bijective association between string and integral representation of an enumeration. More...
#include <Core/Utils/EnumConverter.hpp>
Public Member Functions | |
EnumConverter (std::initializer_list< std::pair< EnumBaseType, std::string > > pairs) | |
std::string | getEnumerator (EnumBaseType v) const |
EnumBaseType | getEnumerator (const std::string &v) const |
std::vector< std::string > | getEnumerators () const |
This class manage the bijective association between string and integral representation of an enumeration.
EnumBaseType | the underlying type (as returned by typename std::underlying_type_t<Enum>) of the enumeration to manage. |
Definition at line 24 of file EnumConverter.hpp.
|
inlineexplicit |
Definition at line 32 of file EnumConverter.hpp.
|
inline |
Definition at line 36 of file EnumConverter.hpp.
|
inline |
Definition at line 35 of file EnumConverter.hpp.
|
inline |
Definition at line 37 of file EnumConverter.hpp.