cesium-native 0.43.0
Loading...
Searching...
No Matches
EnumValue.h
1// This file was generated by generate-classes.
2// DO NOT EDIT THIS FILE!
3#pragma once
4
5#include <CesiumGltf/Library.h>
6#include <CesiumUtility/ExtensibleObject.h>
7
8#include <cstdint>
9#include <optional>
10#include <string>
11
12namespace CesiumGltf {
16struct CESIUMGLTF_API EnumValue final : public CesiumUtility::ExtensibleObject {
20 static constexpr const char* TypeName = "EnumValue";
21
25 std::string name;
26
30 std::optional<std::string> description;
31
35 int64_t value = int64_t();
36
43 int64_t getSizeBytes() const {
44 int64_t accum = 0;
45 accum += int64_t(sizeof(EnumValue));
47 int64_t(sizeof(CesiumUtility::ExtensibleObject));
48 accum += int64_t(this->name.capacity() * sizeof(char));
49 if (this->description) {
50 accum += int64_t(this->description->capacity() * sizeof(char));
51 }
52 return accum;
53 }
54};
55} // namespace CesiumGltf
Classes for working with glTF models.
An enum value.
Definition EnumValue.h:16
std::optional< std::string > description
The description of the enum value.
Definition EnumValue.h:30
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Definition EnumValue.h:43
std::string name
The name of the enum value.
Definition EnumValue.h:25
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 ...