cesium-native 0.43.0
Loading...
Searching...
No Matches
Cesium3DTilesReader::AssetReader Class Reference

Reads Asset instances from JSON. More...

#include <Cesium3DTilesReader/AssetReader.h>

Public Member Functions

 AssetReader ()
 Constructs a new instance.
 
CesiumJsonReader::JsonReaderOptionsgetOptions ()
 Gets the options controlling how the JSON is read.
 
const CesiumJsonReader::JsonReaderOptionsgetOptions () const
 Gets the options controlling how the JSON is read.
 
CesiumJsonReader::ReadJsonResult< Cesium3DTiles::AssetreadFromJson (const std::span< const std::byte > &data) const
 Reads an instance of Asset from a byte buffer.
 
CesiumJsonReader::ReadJsonResult< Cesium3DTiles::AssetreadFromJson (const rapidjson::Value &value) const
 Reads an instance of Asset from a rapidJson::Value.
 
CesiumJsonReader::ReadJsonResult< std::vector< Cesium3DTiles::Asset > > readArrayFromJson (const rapidjson::Value &value) const
 Reads an array of instances of Asset from a rapidJson::Value.
 

Detailed Description

Reads Asset instances from JSON.

Definition at line 24 of file AssetReader.h.

Member Function Documentation

◆ readArrayFromJson()

CesiumJsonReader::ReadJsonResult< std::vector< Cesium3DTiles::Asset > > Cesium3DTilesReader::AssetReader::readArrayFromJson ( const rapidjson::Value & value) const

Reads an array of instances of Asset from a rapidJson::Value.

Parameters
valueThe value from which to read the array of instances.
Returns
The result of reading the array of instances.

◆ readFromJson() [1/2]

CesiumJsonReader::ReadJsonResult< Cesium3DTiles::Asset > Cesium3DTilesReader::AssetReader::readFromJson ( const rapidjson::Value & value) const

Reads an instance of Asset from a rapidJson::Value.

Parameters
valueThe value from which to read the instance.
Returns
The result of reading the instance.

◆ readFromJson() [2/2]

CesiumJsonReader::ReadJsonResult< Cesium3DTiles::Asset > Cesium3DTilesReader::AssetReader::readFromJson ( const std::span< const std::byte > & data) const

Reads an instance of Asset from a byte buffer.

Parameters
dataThe buffer from which to read the instance.
Returns
The result of reading the instance.

The documentation for this class was generated from the following file: