cesium-native 0.66.0
Loading...
Searching...
No Matches
Alias.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 <string>
10
11namespace CesiumGltf {
16struct CESIUMGLTF_API Alias final : public CesiumUtility::ExtensibleObject {
20 static constexpr const char* TypeName = "Alias";
21
25 std::string alias;
26
30 int32_t file = -1;
31
38 int64_t getSizeBytes() const {
39 int64_t accum = 0;
40 accum += int64_t(sizeof(Alias));
42 int64_t(sizeof(CesiumUtility::ExtensibleObject));
43 accum += int64_t(this->alias.capacity() * sizeof(char));
44 return accum;
45 }
46};
47} // namespace CesiumGltf
Classes for working with glTF models.
Used to alias files referenced within an external file to other paths by the parent.
Definition Alias.h:16
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Definition Alias.h:38
static constexpr const char * TypeName
The original name of this type.
Definition Alias.h:20
std::string alias
String alias matched against an inner path.
Definition Alias.h:25
int32_t file
The index of the file in the files array.
Definition Alias.h:30
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 ...