5#include <CesiumGltf/Library.h>
6#include <CesiumGltf/PropertyAttributeProperty.h>
7#include <CesiumUtility/ExtensibleObject.h>
11#include <unordered_map>
23 static constexpr const char* TypeName =
"PropertyAttribute";
28 std::optional<std::string>
name;
42 std::unordered_map<std::string, CesiumGltf::PropertyAttributeProperty>
57 accum += int64_t(this->name->capacity() *
sizeof(
char));
59 accum += int64_t(this->classProperty.capacity() *
sizeof(
char));
61 this->properties.bucket_count() *
63 for (
const auto& [k, v] : this->properties) {
64 accum += int64_t(k.capacity() *
sizeof(
char) -
sizeof(std::string));
65 accum += v.getSizeBytes() -
Classes for working with glTF models.
An attribute containing property values.
Properties conforming to a class, organized as property values stored in attributes.
std::optional< std::string > name
The name of the property attribute, e.g. for display purposes.
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
std::string classProperty
The class that property values conform to. The value must be a class ID declared in the classes dicti...
std::unordered_map< std::string, CesiumGltf::PropertyAttributeProperty > properties
A dictionary, where each key corresponds to a property ID in the class' properties dictionary and eac...
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 ...