Radium Engine
1.5.20
|
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.
|
explicit |
Definition at line 46 of file EnumConverter.hpp.
EnumBaseType Ra::Core::Utils::EnumConverter< EnumBaseType >::getEnumerator | ( | const std::string & | v | ) | const |
Definition at line 56 of file EnumConverter.hpp.
std::string Ra::Core::Utils::EnumConverter< EnumBaseType >::getEnumerator | ( | EnumBaseType | v | ) | const |
Definition at line 51 of file EnumConverter.hpp.
std::vector< std::string > Ra::Core::Utils::EnumConverter< EnumBaseType >::getEnumerators | ( | ) | const |
Definition at line 61 of file EnumConverter.hpp.