cesium-native 0.62.0
Loading...
Searching...
No Matches
ExtensionSchemaMaxarContentGeoJsonPropertiesValue.h
1// This file was generated by generate-classes.
2// DO NOT EDIT THIS FILE!
3#pragma once
4
5#include <Cesium3DTiles/Library.h>
6#include <CesiumUtility/ExtensibleObject.h>
7#include <CesiumUtility/JsonValue.h>
8
9#include <optional>
10#include <string>
11
12namespace Cesium3DTiles {
21 static constexpr const char* TypeName =
22 "ExtensionSchemaMaxarContentGeoJsonPropertiesValue";
23
28 struct Type {
30 inline static const std::string Integer = "Integer";
31
33 inline static const std::string Float = "Float";
34
36 inline static const std::string String = "String";
37
39 inline static const std::string Boolean = "Boolean";
40
42 inline static const std::string Variant = "Variant";
43 };
44
49 std::string id;
50
58 std::string type = Type::Integer;
59
63 std::optional<std::string> description;
64
68 std::optional<std::string> unit;
69
75 std::optional<double> max;
76
82 std::optional<double> min;
83
88 std::optional<bool> required = std::optional<bool>();
89
94 std::optional<CesiumUtility::JsonValue> defaultProperty;
95
101 std::optional<std::string> semantic;
102
109 int64_t getSizeBytes() const {
110 int64_t accum = 0;
113 int64_t(sizeof(CesiumUtility::ExtensibleObject));
114 accum += int64_t(this->id.capacity() * sizeof(char));
115 if (this->description) {
116 accum += int64_t(this->description->capacity() * sizeof(char));
117 }
118 if (this->unit) {
119 accum += int64_t(this->unit->capacity() * sizeof(char));
120 }
121 if (this->semantic) {
122 accum += int64_t(this->semantic->capacity() * sizeof(char));
123 }
124 return accum;
125 }
126};
127} // namespace Cesium3DTiles
Classes for using 3D Tiles.
Definition Buffer.h:7
Known values for Expected datatype of the property value in the GeoJSON Feature's 'properties' object...
std::optional< double > min
Minimum allowed value for the property. Only applicable to integer and float types....
std::string id
Unique property identifier that corresponds to a property name in the GeoJSON Feature's 'properties' ...
std::optional< std::string > semantic
An identifier that describes how this property should be interpreted. The semantic cannot be used by ...
std::optional< double > max
Maximum allowed value for the property. Only applicable to integer and float types....
std::optional< CesiumUtility::JsonValue > defaultProperty
A default value to use when this property is missing from a GeoJSON Feature's 'properties' object....
std::optional< std::string > description
Human readable description of the property.
std::optional< bool > required
If true, this property must be present in the 'properties' object of every GeoJSON Feature in the ass...
int64_t getSizeBytes() const
Calculates the size in bytes of this object, including the contents of all collections,...
std::string type
Expected datatype of the property value in the GeoJSON Feature's 'properties' object.
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 ...