cesium-native 0.43.0
Loading...
Searching...
No Matches
NetworkSchemaAssetDescriptor.h
1#pragma once
2
3#include <CesiumAsync/Future.h>
4#include <CesiumAsync/NetworkAssetDescriptor.h>
5#include <CesiumGltf/Schema.h>
6#include <CesiumUtility/IntrusivePointer.h>
7#include <CesiumUtility/Result.h>
8
9#include <memory>
10
11namespace CesiumAsync {
12class AsyncSystem;
13}
14
15namespace CesiumGltfReader {
16
27 bool operator==(const NetworkSchemaAssetDescriptor& rhs) const noexcept;
28
39 const CesiumAsync::AsyncSystem& asyncSystem,
40 const std::shared_ptr<CesiumAsync::IAssetAccessor>& pAssetAccessor) const;
41};
42
43} // namespace CesiumGltfReader
44
47template <> struct std::hash<CesiumGltfReader::NetworkSchemaAssetDescriptor> {
50 std::size_t operator()(
51 const CesiumGltfReader::NetworkSchemaAssetDescriptor& key) const noexcept;
52};
A system for managing asynchronous requests and tasks.
Definition AsyncSystem.h:36
A value that will be available in the future, as produced by AsyncSystem.
Definition Promise.h:11
Classes that support asynchronous operations.
Classes for reading glTF models.
Definition GltfReader.h:24
A description of an asset that can be loaded from the network using an IAssetAccessor....
A description of a schema asset that can be loaded from the network using an CesiumAsync::IAssetAcces...
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 CesiumGlt...
bool operator==(const NetworkSchemaAssetDescriptor &rhs) const noexcept
Determines if this descriptor is identical to another one.
std::size_t operator()(const CesiumGltfReader::NetworkSchemaAssetDescriptor &key) const noexcept
Returns a size_t hash of the provided CesiumGltfReader::NetworkSchemaAssetDescriptor.