cesium-native 0.43.0
Loading...
Searching...
No Matches
Asset.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 <optional>
9#include <string>
10
11namespace Cesium3DTiles {
15struct CESIUM3DTILES_API Asset final : public CesiumUtility::ExtensibleObject {
19 static constexpr const char* TypeName = "Asset";
20
25 std::string version;
26
31 std::optional<std::string> tilesetVersion;
32
39 int64_t getSizeBytes() const {
40 int64_t accum = 0;
41 accum += int64_t(sizeof(Asset));
43 int64_t(sizeof(CesiumUtility::ExtensibleObject));
44 accum += int64_t(this->version.capacity() * sizeof(char));
45 if (this->tilesetVersion) {
46 accum += int64_t(this->tilesetVersion->capacity() * sizeof(char));
47 }
48 return accum;
49 }
50};
51} // namespace Cesium3DTiles
Classes for using 3D Tiles.
Definition Buffer.h:7
Metadata about the entire tileset.
Definition Asset.h:15
std::string version
The 3D Tiles version. The version defines the JSON schema for the tileset JSON and the base set of ti...
Definition Asset.h:25
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Definition Asset.h:39
std::optional< std::string > tilesetVersion
Application-specific version of this tileset, e.g., for when an existing tileset is updated.
Definition Asset.h:31
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 ...