cesium-native 0.43.0
|
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>
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::THeader > | headers |
The HTTP headers used in requesting this asset. | |
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.
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
.
asyncSystem | The async system. |
pAssetAccessor | The asset accessor. |