AYON Usd Resolver  0.1.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
 
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...
 

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()

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
resolveKeyUsdAssetIdent
Returns
populated assetIdent if key was found in pinning file. Empty assetIdent 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: