|
cesium-native 0.52.0
|
A description of an asset that can be loaded from the network using an IAssetAccessor. This includes a URL and any headers to be included in the request.
More...
#include <CesiumAsync/NetworkAssetDescriptor.h>
Public Member Functions | |
| 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. | |
Public Attributes | |
| 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 an asset that can be loaded from the network using an IAssetAccessor. This includes a URL and any headers to be included in the request.
Definition at line 20 of file NetworkAssetDescriptor.h.
| Future< CesiumUtility::Result< std::vector< std::byte > > > CesiumAsync::NetworkAssetDescriptor::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.
| asyncSystem | The async system. |
| pAssetAccessor | The asset accessor. |
| Future< std::shared_ptr< CesiumAsync::IAssetRequest > > CesiumAsync::NetworkAssetDescriptor::loadFromNetwork | ( | const CesiumAsync::AsyncSystem & | asyncSystem, |
| const std::shared_ptr< IAssetAccessor > & | pAssetAccessor ) const |
Request this asset from the network using the provided asset accessor.
| asyncSystem | The async system. |
| pAssetAccessor | The asset accessor. |
| std::vector<IAssetAccessor::THeader> CesiumAsync::NetworkAssetDescriptor::headers |
The HTTP headers used in requesting this asset.
Definition at line 29 of file NetworkAssetDescriptor.h.
| std::string CesiumAsync::NetworkAssetDescriptor::url |
The URL from which this network asset is downloaded.
Definition at line 24 of file NetworkAssetDescriptor.h.