3#include <CesiumGltf/EnumSpec.h>
4#include <CesiumGltf/Library.h>
24 std::optional<std::string_view>
getName(T enumValue)
const {
25 const auto found = std::find_if(
28 [value =
static_cast<int64_t
>(enumValue)](
30 return enumValue.value == value;
33 if (found == this->values.end()) {
Classes for working with glTF models.
An object defining the values of an enum.
This class is not meant to be instantiated directly. Use Enum instead.
std::optional< std::string_view > getName(T enumValue) const
Obtains the name corresponding to the given enum integer value from this enum definition.