ArcGIS Procedural Runtime
3.2.10650
|
Provides a number of functions to resolve symbolic names to actual resources.
This includes the steps: (1) resolve the key to an URI (2) load content pointed at by the URI and (3) decode the content.
All calls are thread-safe.
Functions | |
bool | isCached (prt::Cache *cache, prt::ContentType ct, const prtx::URIPtr &uri) |
void | readURI (const prtx::URIPtr &uri, BinaryVector &data) |
BinaryVectorPtr | resolveBinaryData (prt::Cache *cache, const std::wstring &key, const prtx::ResolveMap *resolveMap=nullptr, std::wstring *warnings=nullptr) |
CGBPtr | resolveCGB (prt::Cache *cache, const std::wstring &key, const prtx::ResolveMap *resolveMap=nullptr) |
GeometryPtr | resolveGeometry (prt::Cache *cache, const std::wstring &key, const prtx::ResolveMap *resolveMap=nullptr, std::wstring *warnings=nullptr) |
void | resolveMaterial (prt::Cache *cache, MaterialPtrVector &materials, const std::wstring &key, const prtx::ResolveMap *resolveMap=nullptr, std::wstring *warnings=nullptr) |
TablePtr | resolveTable (prt::Cache *cache, const std::wstring &key, const prtx::ResolveMap *resolveMap=nullptr, std::wstring *warnings=nullptr) |
CTStringPtr | resolveText (prt::Cache *cache, const std::wstring &key, const prtx::ResolveMap *resolveMap=nullptr, std::wstring *warnings=nullptr) |
TexturePtr | resolveTexture (prt::Cache *cache, const std::wstring &key, const prtx::ResolveMap *resolveMap=nullptr, std::wstring *warnings=nullptr) |
bool prtx::DataBackend::isCached | ( | prt::Cache * | cache, |
prt::ContentType | ct, | ||
const prtx::URIPtr & | uri | ||
) |
void prtx::DataBackend::readURI | ( | const prtx::URIPtr & | uri, |
BinaryVector & | data | ||
) |
[DEPRECATED, use resolveBinaryData()] Reads and returns the content pointed at by the URI. Throws an exception on error.
uri | URI to read from. | |
[out] | data | Vector to return a copy of the content. |
BinaryVectorPtr prtx::DataBackend::resolveBinaryData | ( | prt::Cache * | cache, |
const std::wstring & | key, | ||
const prtx::ResolveMap * | resolveMap = nullptr , |
||
std::wstring * | warnings = nullptr |
||
) |
Resolves (reads) generic binary data from an URI (or optionally via key and resolveMap).
cache | Cache to use. Set to nullptr for no cache. | |
key | Key (i.e. symbolic name) into resolveMap. | |
resolveMap | ResolveMap for key-to-URI lookup. If resolveMap is nullptr or key is not found, the key will be interpreted as an URI. | |
[out] | warnings | Optional pointer to a std::wstring to add warnings. |
CGBPtr prtx::DataBackend::resolveCGB | ( | prt::Cache * | cache, |
const std::wstring & | key, | ||
const prtx::ResolveMap * | resolveMap = nullptr |
||
) |
Resolve a CGB.
cache | Cache to use. Set to nullptr for no cache. |
key | Key (i.e. symbolic name) into resolveMap. |
resolveMap | ResolveMap for key-to-URI lookup. If resolveMap is nullptr or key is not found, it is tried to interpret the key as an URI. |
GeometryPtr prtx::DataBackend::resolveGeometry | ( | prt::Cache * | cache, |
const std::wstring & | key, | ||
const prtx::ResolveMap * | resolveMap = nullptr , |
||
std::wstring * | warnings = nullptr |
||
) |
Resolve a geometry.
cache | Cache to use. Set to nullptr for no cache. | |
key | Key (i.e. symbolic name) into resolveMap. | |
resolveMap | ResolveMap for key-to-URI lookup. If resolveMap is nullptr or key is not found, the function tries to interpret the key as an URI. | |
[out] | warnings | Optional pointer to a wstring to add warnings. |
void prtx::DataBackend::resolveMaterial | ( | prt::Cache * | cache, |
MaterialPtrVector & | materials, | ||
const std::wstring & | key, | ||
const prtx::ResolveMap * | resolveMap = nullptr , |
||
std::wstring * | warnings = nullptr |
||
) |
Resolves materials
cache | Cache to use. Set to nullptr for no cache. | |
materials | [OUT] Vector to which 0, 1 or several MaterialPtrs are added. | |
key | Key (i.e. symbolic name) into resolveMap. | |
resolveMap | ResolveMap for key-to-URI lookup. If resolveMap is nullptr or key is not found, it is tried to interpret the key as an URI. | |
[out] | warnings | Optional pointer to a wstring to add warnings. |
TablePtr prtx::DataBackend::resolveTable | ( | prt::Cache * | cache, |
const std::wstring & | key, | ||
const prtx::ResolveMap * | resolveMap = nullptr , |
||
std::wstring * | warnings = nullptr |
||
) |
Resolves table.
cache | Cache to use. Set to nullptr for no cache. | |
key | Key (i.e. symbolic name) into resolveMap. | |
resolveMap | ResolveMap for key-to-URI lookup. If resolveMap is nullptr or key is not found, the key will be interpreted as an URI. | |
[out] | warnings | Optional pointer to a std::wstring to add warnings. |
CTStringPtr prtx::DataBackend::resolveText | ( | prt::Cache * | cache, |
const std::wstring & | key, | ||
const prtx::ResolveMap * | resolveMap = nullptr , |
||
std::wstring * | warnings = nullptr |
||
) |
Resolves text.
cache | Cache to use. Set to nullptr for no cache. | |
key | Key (i.e. symbolic name) into resolveMap. | |
resolveMap | ResolveMap for key-to-URI lookup. If resolveMap is nullptr or key is not found, the key will be interpreted as an URI. | |
[out] | warnings | Optional pointer to a std::wstring to add warnings. |
TexturePtr prtx::DataBackend::resolveTexture | ( | prt::Cache * | cache, |
const std::wstring & | key, | ||
const prtx::ResolveMap * | resolveMap = nullptr , |
||
std::wstring * | warnings = nullptr |
||
) |
Resolve a texture.
cache | Cache to use. Set to nullptr for no cache. | |
key | Key (i.e. symbolic name) into resolveMap. | |
resolveMap | ResolveMap for key-to-URI lookup. If resolveMap is nullptr or key is not found, it is tried to interpret the key as an URI. | |
[out] | warnings | Optional pointer to a wstring to add warnings. |