cesium-native 0.67.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 <CesiumTilesetJson/Library.h>
6#include <CesiumUtility/ExtensibleObject.h>
7
8#include <optional>
9#include <string>
10
11namespace CesiumTilesetJson {
15struct CESIUMTILESETJSON_API Asset final
20 static constexpr const char* TypeName = "Asset";
21
26 std::string version;
27
32 std::optional<std::string> tilesetVersion;
33
40 int64_t getSizeBytes() const {
41 int64_t accum = 0;
42 accum += int64_t(sizeof(Asset));
44 int64_t(sizeof(CesiumUtility::ExtensibleObject));
45 accum += int64_t(this->version.capacity() * sizeof(char));
46 if (this->tilesetVersion) {
47 accum += int64_t(this->tilesetVersion->capacity() * sizeof(char));
48 }
49 return accum;
50 }
51};
52} // namespace CesiumTilesetJson
Classes to represent a tileset.json from 3D Tiles 1.1.
Metadata about the entire tileset.
Definition Asset.h:16
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:26
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Definition Asset.h:40
static constexpr const char * TypeName
The original name of this type.
Definition Asset.h:20
std::optional< std::string > tilesetVersion
Application-specific version of this tileset, e.g., for when an existing tileset is updated.
Definition Asset.h:32
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 ...