cesium-native 0.43.0
Loading...
Searching...
No Matches
NamedObject.h
1#pragma once
2
3#include "CesiumGltf/Library.h"
4
5#include <CesiumUtility/ExtensibleObject.h>
6
7#include <string>
8
9namespace CesiumGltf {
15struct CESIUMGLTF_API NamedObject : public CesiumUtility::ExtensibleObject {
22 std::string name;
23
29 int64_t getSizeBytes() const {
30 int64_t accum = 0;
31 accum += sizeof(NamedObject);
32 accum +=
33 ExtensibleObject::getSizeBytes() - int64_t(sizeof(ExtensibleObject));
34 accum += this->name.capacity() * sizeof(char);
35 return accum;
36 }
37};
38} // namespace CesiumGltf
Classes for working with glTF models.
The base class for objects in a glTF that have a name.
Definition NamedObject.h:15
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
Definition NamedObject.h:29
std::string name
The user-defined name of this object.
Definition NamedObject.h:22
The base class for objects that have extensions and extras.