3#include <CesiumGltf/EnumSpec.h>
4#include <CesiumGltf/Library.h>
12struct CESIUMGLTF_API Enum final :
public EnumSpec {
24 std::optional<std::string_view>
getName(T enumValue)
const {
25 const auto found = std::find_if(
28 [value =
static_cast<int64_t
>(enumValue)](
31 if (found == this->
values.end()) {
Classes for working with glTF models.
EnumSpec()=default
This class is not meant to be instantiated directly. Use Enum instead.
std::vector< CesiumGltf::EnumValue > values
An array of enum values. Duplicate names or duplicate integer values are not allowed.
std::optional< std::string_view > getName(T enumValue) const
Obtains the name corresponding to the given enum integer value from this enum definition.