Radium Engine  1.5.0
Ra::Core::Utils::EnumConverter< EnumBaseType > Class Template Reference

This class manage the bijective association between string and integral representation of an enumeration. More...

#include <Core/Utils/EnumConverter.hpp>

+ Collaboration diagram for Ra::Core::Utils::EnumConverter< EnumBaseType >:

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
 

Detailed Description

template<typename EnumBaseType>
class Ra::Core::Utils::EnumConverter< EnumBaseType >

This class manage the bijective association between string and integral representation of an enumeration.

Template Parameters
EnumBaseTypethe underlying type (as returned by typename std::underlying_type_t<Enum>) of the enumeration to manage.

Definition at line 21 of file EnumConverter.hpp.


The documentation for this class was generated from the following file: