Template Class StringEnum#

Class Documentation#

template<class T>
class StringEnum#

A base type for defining enumerators whose values resolve to strings.

Public Functions

inline bool operator==(const T *other) noexcept#
inline bool operator==(const utility::char_t *value) noexcept#
inline bool operator!=(const T *other) noexcept#
inline bool operator!=(const utility::char_t *value) noexcept#
inline virtual ~StringEnum()#
inline size_t GetId() const#

Returns the numerical id of the enum.

inline const utility::string_t &GetValue() const#

Returns the string value of the enum.

Public Static Functions

static inline const T *FromValue(const utility::char_t *value)#

Returns the enum instance associated with the given string value.

static inline const T *FromValue(const utility::string_t &value)#

Returns the enum instance associated with the given string value.

Protected Functions

inline StringEnum(const utility::char_t *value)#