3 #include <CesiumAsync/IAssetAccessor.h>
4 #include <CesiumUtility/Result.h>
29 std::vector<IAssetAccessor::THeader>
headers;
46 const std::shared_ptr<IAssetAccessor>& pAssetAccessor)
const;
59 const std::shared_ptr<IAssetAccessor>& pAssetAccessor)
const;
64 template <>
struct std::hash<
CesiumAsync::NetworkAssetDescriptor> {
A system for managing asynchronous requests and tasks.
A value that will be available in the future, as produced by AsyncSystem.
Classes that support asynchronous operations.
A description of an asset that can be loaded from the network using an IAssetAccessor....
std::string url
The URL from which this network asset is downloaded.
bool operator==(const NetworkAssetDescriptor &rhs) const noexcept
Determines if this descriptor is identical to another one.
std::vector< IAssetAccessor::THeader > headers
The HTTP headers used in requesting this asset.
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...