cesium-native 0.43.0
Loading...
Searching...
No Matches
LayerReader.h
1// This file was generated by generate-classes.
2// DO NOT EDIT THIS FILE!
3#pragma once
4
5#include <CesiumJsonReader/JsonReader.h>
6#include <CesiumJsonReader/JsonReaderOptions.h>
7#include <CesiumQuantizedMeshTerrain/Layer.h>
8#include <CesiumQuantizedMeshTerrain/Library.h>
9
10#include <rapidjson/fwd.h>
11
12#include <span>
13#include <vector>
14
16struct Layer;
17} // namespace CesiumQuantizedMeshTerrain
18
20
25class CESIUMQUANTIZEDMESHTERRAIN_API LayerReader {
26public:
31
36
41
49 readFromJson(const std::span<const std::byte>& data) const;
50
58 readFromJson(const rapidjson::Value& value) const;
59
67 std::vector<CesiumQuantizedMeshTerrain::Layer>>
68 readArrayFromJson(const rapidjson::Value& value) const;
69
70private:
72};
73
74} // namespace CesiumQuantizedMeshTerrain
Holds options for reading statically-typed data structures from JSON.
Reads Layer instances from JSON.
Definition LayerReader.h:25
CesiumJsonReader::JsonReaderOptions & getOptions()
Gets the options controlling how the JSON is read.
const CesiumJsonReader::JsonReaderOptions & getOptions() const
Gets the options controlling how the JSON is read.
CesiumJsonReader::ReadJsonResult< std::vector< CesiumQuantizedMeshTerrain::Layer > > readArrayFromJson(const rapidjson::Value &value) const
Reads an array of instances of Layer from a rapidJson::Value.
CesiumJsonReader::ReadJsonResult< CesiumQuantizedMeshTerrain::Layer > readFromJson(const std::span< const std::byte > &data) const
Reads an instance of Layer from a byte buffer.
CesiumJsonReader::ReadJsonResult< CesiumQuantizedMeshTerrain::Layer > readFromJson(const rapidjson::Value &value) const
Reads an instance of Layer from a rapidJson::Value.
LayerReader()
Constructs a new instance.
Classes for accessing terrain based on layer.json and quantized-mesh-1.0.
Definition Layer.h:12
The result of JsonReader::readJson.
Definition JsonReader.h:23