AYON Usd Resolver  1.0.0
Loading...
Searching...
No Matches
PinningFileHandler Class Reference

#include <resolverContextCache.h>

Collaboration diagram for PinningFileHandler:

Public Member Functions

 PinningFileHandler (const std::string &pinningFilePath, const std::unordered_map< std::string, std::string > &rootReplaceData)
 
 ~PinningFileHandler ()=default
 
AssetIdentifier getAssetData (const std::string &resolveKey)
 return AssetIdentifier populated with root rootReplaceData from the pinning file using the pinning file data loaded at construction and the PROJECT_ROOTS env variable. More...
 

Private Attributes

std::filesystem::path m_pinningFilePath
 
nlohmann::json m_pinningFileData
 
std::unordered_map< std::string, std::string > m_rootReplaceData
 

Constructor & Destructor Documentation

◆ PinningFileHandler()

PXR_NAMESPACE_USING_DIRECTIVE PinningFileHandler::PinningFileHandler ( const std::string &  pinningFilePath,
const std::unordered_map< std::string, std::string > &  rootReplaceData 
)

◆ ~PinningFileHandler()

PinningFileHandler::~PinningFileHandler ( )
default

Member Function Documentation

◆ getAssetData()

AssetIdentifier PinningFileHandler::getAssetData ( const std::string &  resolveKey)

return AssetIdentifier 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 AssetIdentifier. it will not reload the file or the env var however.

Parameters
resolveKeyUsdAssetIdent
Returns
populated AssetIdentifier if key was found in pinning file. Empty AssetIdentifier if key was not found
Here is the call graph for this function:

Member Data Documentation

◆ 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: