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

#include <resolverContext.h>

Collaboration diagram for AyonUsdResolverContext:

Public Member Functions

AR_AYONUSDRESOLVER_API AyonUsdResolverContext ()
 
AR_AYONUSDRESOLVER_API AyonUsdResolverContext (const AyonUsdResolverContext &ctx)
 
AR_AYONUSDRESOLVER_API AyonUsdResolverContext (const std::string &filePath)
 
AR_AYONUSDRESOLVER_API ~AyonUsdResolverContext ()
 
AR_AYONUSDRESOLVER_API bool operator< (const AyonUsdResolverContext &ctx) const
 
AR_AYONUSDRESOLVER_API bool operator== (const AyonUsdResolverContext &ctx) const
 
AR_AYONUSDRESOLVER_API bool operator!= (const AyonUsdResolverContext &ctx) const
 
AR_AYONUSDRESOLVER_API void Initialize ()
 
AR_AYONUSDRESOLVER_API void ClearAndReinitialize ()
 
AR_AYONUSDRESOLVER_API void DropCache ()
 
AR_AYONUSDRESOLVER_API void DeleteFromCache (const std::string &key)
 
AR_AYONUSDRESOLVER_API void ClearCache ()
 
AR_AYONUSDRESOLVER_API const std::string & GetMappingFilePath () const
 
AR_AYONUSDRESOLVER_API void SetMappingFilePath (std::string filePath)
 
AR_AYONUSDRESOLVER_API void RefreshFromMappingFilePath ()
 
AR_AYONUSDRESOLVER_API void AddMappingPair (const std::string &sourceStr, const std::string &targetStr)
 
AR_AYONUSDRESOLVER_API void RemoveMappingByKey (const std::string &sourceStr)
 
AR_AYONUSDRESOLVER_API void RemoveMappingByValue (const std::string &targetStr)
 
AR_AYONUSDRESOLVER_API void ClearMappingPairs ()
 
AR_AYONUSDRESOLVER_API const std::map< std::string, std::string > GetMappingPairs () const
 
std::shared_ptr< ResolverContextCacheGetCachePtr () const
 

Private Member Functions

bool _getMappingPairsFromFile (const std::string &filePath)
 
bool _getMappingPairsFromUsdFile (const std::string &filePath)
 
bool _getMappingPairsFromJsonFile (const std::string &filePath)
 

Private Attributes

std::shared_ptr< ResolverContextCachecache
 
ArResolvedPath rootPath
 
std::string mappingFilePath
 
std::unordered_map< std::string, std::string > mappingPairs
 

Friends

AR_AYONUSDRESOLVER_API friend size_t hash_value (const AyonUsdResolverContext &ctx)
 

Constructor & Destructor Documentation

◆ AyonUsdResolverContext() [1/3]

AyonUsdResolverContext::AyonUsdResolverContext ( )
Here is the call graph for this function:

◆ AyonUsdResolverContext() [2/3]

AyonUsdResolverContext::AyonUsdResolverContext ( const AyonUsdResolverContext ctx)
default

◆ AyonUsdResolverContext() [3/3]

AyonUsdResolverContext::AyonUsdResolverContext ( const std::string &  filePath)
Here is the call graph for this function:

◆ ~AyonUsdResolverContext()

AyonUsdResolverContext::~AyonUsdResolverContext ( )

Member Function Documentation

◆ _getMappingPairsFromFile()

bool AyonUsdResolverContext::_getMappingPairsFromFile ( const std::string &  filePath)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _getMappingPairsFromJsonFile()

bool AyonUsdResolverContext::_getMappingPairsFromJsonFile ( const std::string &  filePath)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _getMappingPairsFromUsdFile()

bool AyonUsdResolverContext::_getMappingPairsFromUsdFile ( const std::string &  filePath)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddMappingPair()

void AyonUsdResolverContext::AddMappingPair ( const std::string &  sourceStr,
const std::string &  targetStr 
)
Here is the caller graph for this function:

◆ ClearAndReinitialize()

void AyonUsdResolverContext::ClearAndReinitialize ( )
Here is the call graph for this function:

◆ ClearCache()

void AyonUsdResolverContext::ClearCache ( )

◆ ClearMappingPairs()

void AyonUsdResolverContext::ClearMappingPairs ( )
Here is the caller graph for this function:

◆ DeleteFromCache()

void AyonUsdResolverContext::DeleteFromCache ( const std::string &  key)

◆ DropCache()

void AyonUsdResolverContext::DropCache ( )
Here is the caller graph for this function:

◆ GetCachePtr()

std::shared_ptr< ResolverContextCache > AyonUsdResolverContext::GetCachePtr ( ) const

◆ GetMappingFilePath()

const std::string & AyonUsdResolverContext::GetMappingFilePath ( ) const

◆ GetMappingPairs()

const std::map< std::string, std::string > AyonUsdResolverContext::GetMappingPairs ( ) const
Here is the caller graph for this function:

◆ Initialize()

void AyonUsdResolverContext::Initialize ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator!=()

bool AyonUsdResolverContext::operator!= ( const AyonUsdResolverContext ctx) const

◆ operator<()

bool AyonUsdResolverContext::operator< ( const AyonUsdResolverContext ctx) const

◆ operator==()

bool AyonUsdResolverContext::operator== ( const AyonUsdResolverContext ctx) const

◆ RefreshFromMappingFilePath()

void AyonUsdResolverContext::RefreshFromMappingFilePath ( )
Here is the call graph for this function:

◆ RemoveMappingByKey()

void AyonUsdResolverContext::RemoveMappingByKey ( const std::string &  sourceStr)

◆ RemoveMappingByValue()

void AyonUsdResolverContext::RemoveMappingByValue ( const std::string &  targetStr)

◆ SetMappingFilePath()

void AyonUsdResolverContext::SetMappingFilePath ( std::string  filePath)

Friends And Related Function Documentation

◆ hash_value

AR_AYONUSDRESOLVER_API friend size_t hash_value ( const AyonUsdResolverContext ctx)
friend

Member Data Documentation

◆ cache

std::shared_ptr<ResolverContextCache> AyonUsdResolverContext::cache
private

◆ mappingFilePath

std::string AyonUsdResolverContext::mappingFilePath
private

◆ mappingPairs

std::unordered_map<std::string, std::string> AyonUsdResolverContext::mappingPairs
private

◆ rootPath

ArResolvedPath AyonUsdResolverContext::rootPath
private

The documentation for this class was generated from the following files: