5#include <CesiumTilesetJson/EnumValue.h>
6#include <CesiumTilesetJson/Library.h>
7#include <CesiumUtility/ExtensibleObject.h>
17struct CESIUMTILESETJSON_API
Enum final
22 static constexpr const char*
TypeName =
"Enum";
29 inline static const std::string
INT8 =
"INT8";
32 inline static const std::string
UINT8 =
"UINT8";
35 inline static const std::string
INT16 =
"INT16";
38 inline static const std::string
UINT16 =
"UINT16";
41 inline static const std::string
INT32 =
"INT32";
44 inline static const std::string
UINT32 =
"UINT32";
47 inline static const std::string
INT64 =
"INT64";
50 inline static const std::string
UINT64 =
"UINT64";
56 std::optional<std::string>
name;
75 std::vector<CesiumTilesetJson::EnumValue>
values;
85 accum += int64_t(
sizeof(
Enum));
89 accum += int64_t(this->name->capacity() *
sizeof(
char));
91 if (this->description) {
92 accum += int64_t(this->description->capacity() *
sizeof(
char));
Classes to represent a tileset.json from 3D Tiles 1.1.
Known values for The type of the integer enum value.
static const std::string INT32
INT32
static const std::string INT16
INT16
static const std::string UINT16
UINT16
static const std::string UINT8
UINT8
static const std::string INT8
INT8
static const std::string UINT64
UINT64
static const std::string UINT32
UINT32
static const std::string INT64
INT64
An object defining the values of an enum.
std::optional< std::string > description
The description of the enum.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
std::string valueType
The type of the integer enum value.
static constexpr const char * TypeName
The original name of this type.
std::optional< std::string > name
The name of the enum, e.g. for display purposes.
std::vector< CesiumTilesetJson::EnumValue > values
An array of enum values. Duplicate names or duplicate integer values are not allowed.
The base class for objects that have extensions and extras.
int64_t getSizeBytes() const
Calculates the size in bytes of this ExtensibleObject, including all of its extras but NOT including ...