#include <resolverContextCache.h>
|
| pinningFileHandler (const std::string &pinningFilePath, const std::unordered_map< std::string, std::string > &rootReplaceData) |
|
| ~pinningFileHandler ()=default |
|
assetIdent | getAssetData (const std::string &resolveKey) |
| return assetIdent populated with root rootReplaceData from the pinning file using the pinning file data loaded at construction and the PROJECT_ROOTS env variable. More...
|
|
◆ pinningFileHandler()
PXR_NAMESPACE_USING_DIRECTIVE pinningFileHandler::pinningFileHandler |
( |
const std::string & |
pinningFilePath, |
|
|
const std::unordered_map< std::string, std::string > & |
rootReplaceData |
|
) |
| |
◆ ~pinningFileHandler()
pinningFileHandler::~pinningFileHandler |
( |
| ) |
|
|
default |
◆ getAssetData()
assetIdent pinningFileHandler::getAssetData |
( |
const std::string & |
resolveKey | ) |
|
return assetIdent populated with root rootReplaceData from the pinning file using the pinning file data loaded at construction and the PROJECT_ROOTS env variable.
this is not a cached function it will reconstruct the assetIdent. it will not reload the file or the env var however.
- Parameters
-
- Returns
- populated assetIdent if key was found in pinning file. Empty assetIdent if key was not found
◆ m_pinningFileData
nlohmann::json pinningFileHandler::m_pinningFileData |
|
private |
◆ m_pinningFilePath
std::filesystem::path pinningFileHandler::m_pinningFilePath |
|
private |
◆ m_rootReplaceData
std::unordered_map<std::string, std::string> pinningFileHandler::m_rootReplaceData |
|
private |
The documentation for this class was generated from the following files: