cesium-native  0.41.0
Schema.h
1 // This file was generated by generate-classes.
2 // DO NOT EDIT THIS FILE!
3 #pragma once
4 
5 #include "CesiumGltf/Class.h"
6 #include "CesiumGltf/Enum.h"
7 #include "CesiumGltf/Library.h"
8 
9 #include <CesiumUtility/ExtensibleObject.h>
10 
11 #include <optional>
12 #include <string>
13 #include <unordered_map>
14 
15 namespace CesiumGltf {
19 struct CESIUMGLTF_API Schema final : public CesiumUtility::ExtensibleObject {
20  static inline constexpr const char* TypeName = "Schema";
21 
26  std::string id;
27 
31  std::optional<std::string> name;
32 
36  std::optional<std::string> description;
37 
41  std::optional<std::string> version;
42 
48  std::unordered_map<std::string, CesiumGltf::Class> classes;
49 
55  std::unordered_map<std::string, CesiumGltf::Enum> enums;
56 };
57 } // namespace CesiumGltf
Classes for working with glTF models.
An object defining classes and enums.
Definition: Schema.h:19
std::string id
Unique identifier for the schema. Schema IDs must be alphanumeric identifiers matching the regular ex...
Definition: Schema.h:26
std::optional< std::string > description
The description of the schema.
Definition: Schema.h:36
std::unordered_map< std::string, CesiumGltf::Enum > enums
A dictionary, where each key is an enum ID and each value is an object defining the values for the en...
Definition: Schema.h:55
std::unordered_map< std::string, CesiumGltf::Class > classes
A dictionary, where each key is a class ID and each value is an object defining the class....
Definition: Schema.h:48
std::optional< std::string > version
Application-specific version of the schema.
Definition: Schema.h:41
std::optional< std::string > name
The name of the schema, e.g. for display purposes.
Definition: Schema.h:31
The base class for objects that have extensions and extras.