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 <CesiumGltf/Library.h>
6#include <CesiumUtility/ExtensibleObject.h>
7
8#include <optional>
9#include <string>
10
11namespace CesiumGltf {
15struct CESIUMGLTF_API Asset final : public CesiumUtility::ExtensibleObject {
19 static constexpr const char* TypeName = "Asset";
20
25 std::optional<std::string> copyright;
26
30 std::optional<std::string> generator;
31
36 std::string version;
37
43 std::optional<std::string> minVersion;
44
51 int64_t getSizeBytes() const {
52 int64_t accum = 0;
53 accum += int64_t(sizeof(Asset));
55 int64_t(sizeof(CesiumUtility::ExtensibleObject));
56 if (this->copyright) {
57 accum += int64_t(this->copyright->capacity() * sizeof(char));
58 }
59 if (this->generator) {
60 accum += int64_t(this->generator->capacity() * sizeof(char));
61 }
62 accum += int64_t(this->version.capacity() * sizeof(char));
63 if (this->minVersion) {
64 accum += int64_t(this->minVersion->capacity() * sizeof(char));
65 }
66 return accum;
67 }
68};
69} // namespace CesiumGltf
Classes for working with glTF models.
Metadata about the glTF asset.
Definition Asset.h:15
std::optional< std::string > copyright
A copyright message suitable for display to credit the content creator.
Definition Asset.h:25
std::optional< std::string > generator
Tool that generated this glTF model. Useful for debugging.
Definition Asset.h:30
std::optional< std::string > minVersion
The minimum glTF version in the form of <major>.<minor> that this asset targets. This property MUST N...
Definition Asset.h:43
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Definition Asset.h:51
std::string version
The glTF version in the form of <major>.<minor> that this asset targets.
Definition Asset.h:36
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 ...