cesium-native 0.43.0
Loading...
Searching...
No Matches
CesiumGltfReader::NetworkSchemaAssetDescriptor Struct Reference

A description of a schema asset that can be loaded from the network using an CesiumAsync::IAssetAccessor. This includes a URL and any headers to be included in the request. More...

#include <CesiumGltfReader/NetworkSchemaAssetDescriptor.h>

Inheritance diagram for CesiumGltfReader::NetworkSchemaAssetDescriptor:
CesiumAsync::NetworkAssetDescriptor

Public Member Functions

bool operator== (const NetworkSchemaAssetDescriptor &rhs) const noexcept
 Determines if this descriptor is identical to another one.
 
CesiumAsync::Future< CesiumUtility::ResultPointer< CesiumGltf::Schema > > load (const CesiumAsync::AsyncSystem &asyncSystem, const std::shared_ptr< CesiumAsync::IAssetAccessor > &pAssetAccessor) const
 Request this asset from the network using the provided asset accessor and return the loaded CesiumGltf::Schema.
 
- Public Member Functions inherited from CesiumAsync::NetworkAssetDescriptor
bool operator== (const NetworkAssetDescriptor &rhs) const noexcept
 Determines if this descriptor is identical to another one.
 
Future< std::shared_ptr< CesiumAsync::IAssetRequest > > loadFromNetwork (const CesiumAsync::AsyncSystem &asyncSystem, const std::shared_ptr< IAssetAccessor > &pAssetAccessor) const
 Request this asset from the network using the provided asset accessor.
 
Future< CesiumUtility::Result< std::vector< std::byte > > > loadBytesFromNetwork (const CesiumAsync::AsyncSystem &asyncSystem, const std::shared_ptr< IAssetAccessor > &pAssetAccessor) const
 Request this asset from the network using the provided asset accessor and return the downloaded bytes.
 

Additional Inherited Members

- Public Attributes inherited from CesiumAsync::NetworkAssetDescriptor
std::string url
 The URL from which this network asset is downloaded.
 
std::vector< IAssetAccessor::THeaderheaders
 The HTTP headers used in requesting this asset.
 

Detailed Description

A description of a schema asset that can be loaded from the network using an CesiumAsync::IAssetAccessor. This includes a URL and any headers to be included in the request.

Definition at line 22 of file NetworkSchemaAssetDescriptor.h.

Member Function Documentation

◆ load()

CesiumAsync::Future< CesiumUtility::ResultPointer< CesiumGltf::Schema > > CesiumGltfReader::NetworkSchemaAssetDescriptor::load ( const CesiumAsync::AsyncSystem & asyncSystem,
const std::shared_ptr< CesiumAsync::IAssetAccessor > & pAssetAccessor ) const

Request this asset from the network using the provided asset accessor and return the loaded CesiumGltf::Schema.

Parameters
asyncSystemThe async system.
pAssetAccessorThe asset accessor.
Returns
A future that resolves to the schema asset once the request is complete.

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