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 <Cesium3DTiles/Library.h>
6#include <CesiumUtility/ExtensibleObject.h>
7
8#include <cstdint>
9#include <optional>
10#include <string>
11
12namespace Cesium3DTiles {
16struct CESIUM3DTILES_API EnumValue final
21 static constexpr const char* TypeName = "EnumValue";
22
26 std::string name;
27
31 std::optional<std::string> description;
32
36 int64_t value = int64_t();
37
44 int64_t getSizeBytes() const {
45 int64_t accum = 0;
46 accum += int64_t(sizeof(EnumValue));
48 int64_t(sizeof(CesiumUtility::ExtensibleObject));
49 accum += int64_t(this->name.capacity() * sizeof(char));
50 if (this->description) {
51 accum += int64_t(this->description->capacity() * sizeof(char));
52 }
53 return accum;
54 }
55};
56} // namespace Cesium3DTiles
Classes for using 3D Tiles.
Definition Buffer.h:7
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Definition EnumValue.h:44
std::optional< std::string > description
The description of the enum value.
Definition EnumValue.h:31
std::string name
The name of the enum value.
Definition EnumValue.h:26
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 ...