5#include <CesiumTilesetJson/Library.h>
6#include <CesiumTilesetJson/PropertyTableProperty.h>
7#include <CesiumUtility/ExtensibleObject.h>
12#include <unordered_map>
24 static constexpr const char*
TypeName =
"PropertyTable";
29 std::optional<std::string>
name;
48 std::unordered_map<std::string, CesiumTilesetJson::PropertyTableProperty>
63 accum += int64_t(this->name->capacity() *
sizeof(
char));
65 accum += int64_t(this->classProperty.capacity() *
sizeof(
char));
68 (
sizeof(std::string) +
71 accum += int64_t(k.capacity() *
sizeof(
char) -
sizeof(std::string));
72 accum += v.getSizeBytes() -
Classes to represent a tileset.json from 3D Tiles 1.1.
An array of binary property values. This represents one column of a property table,...
Properties conforming to a class, organized as property values stored in binary columnar arrays.
std::string classProperty
The class that property values conform to. The value shall be a class ID declared in the classes dict...
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
int64_t count
The number of elements in each property array.
std::optional< std::string > name
The name of the property table, e.g. for display purposes.
std::unordered_map< std::string, CesiumTilesetJson::PropertyTableProperty > properties
A dictionary, where each key corresponds to a property ID in the class' properties dictionary and eac...
static constexpr const char * TypeName
The original name of this type.
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 ...