5#include <CesiumGltf/Library.h>
6#include <CesiumGltf/PropertyTableProperty.h>
7#include <CesiumUtility/ExtensibleObject.h>
12#include <unordered_map>
24 static constexpr const char* TypeName =
"PropertyTable";
29 std::optional<std::string>
name;
40 int64_t count = int64_t();
48 std::unordered_map<std::string, CesiumGltf::PropertyTableProperty>
properties;
62 accum += int64_t(this->name->capacity() *
sizeof(
char));
64 accum += int64_t(this->classProperty.capacity() *
sizeof(
char));
66 this->properties.bucket_count() *
68 for (
const auto& [k, v] : this->properties) {
69 accum += int64_t(k.capacity() *
sizeof(
char) -
sizeof(std::string));
Classes for working with glTF models.
An array of binary property values.
Properties conforming to a class, organized as property values stored in binary columnar arrays.
std::unordered_map< std::string, CesiumGltf::PropertyTableProperty > properties
A dictionary, where each key corresponds to a property ID in the class' properties dictionary and eac...
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::optional< std::string > name
The name of the property table, e.g. for display purposes.
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 ...