24 #ifndef PXR_USD_AR_RESOLVER_H
25 #define PXR_USD_AR_RESOLVER_H
231 std::pair<std::string, std::string>>& contextStrs)
const;
751 virtual std::shared_ptr<ArWritableAsset>
842 template <
class ContextObj>
846 return ctx ? ctx->
Get<ContextObj>() :
nullptr;
virtual std::string _CreateIdentifierForNewAsset(const std::string &assetPath, const ArResolvedPath &anchorAssetPath) const =0
virtual AR_API ArResolverContext _CreateDefaultContext() const
AR_API ArTimestamp GetModificationTimestamp(const std::string &assetPath, const ArResolvedPath &resolvedPath) const
AR_API std::unique_ptr< ArResolver > ArCreateResolver(const TfType &resolverType)
virtual AR_API ArAssetInfo _GetAssetInfo(const std::string &assetPath, const ArResolvedPath &resolvedPath) const
virtual AR_API void _BindContext(const ArResolverContext &context, VtValue *bindingData)
AR_API void RefreshContext(const ArResolverContext &context)
const ContextObj * Get() const
AR_API ArResolverContext GetCurrentContext() const
AR_API ArResolverContext CreateContextFromString(const std::string &contextStr) const
GLsizei const GLchar *const * string
virtual AR_API std::string _GetExtension(const std::string &assetPath) const
GLsizei const GLchar *const * path
abs path to model * ArResolvedPath("/abs/path/to/shot.usd"))*
AR_API void BindContext(const ArResolverContext &context, VtValue *bindingData)
virtual AR_API ArTimestamp _GetModificationTimestamp(const std::string &assetPath, const ArResolvedPath &resolvedPath) const
virtual AR_API void _UnbindContext(const ArResolverContext &context, VtValue *bindingData)
AR_API ArResolverContext CreateDefaultContext() const
AR_API std::string CreateIdentifierForNewAsset(const std::string &assetPath, const ArResolvedPath &anchorAssetPath=ArResolvedPath()) const
virtual AR_API ArResolverContext _CreateDefaultContextForAsset(const std::string &assetPath) const
virtual AR_API ~ArResolver()
AR_API bool IsRepositoryPath(const std::string &path) const
virtual AR_API ArResolverContext _CreateContextFromString(const std::string &contextStr) const
virtual ArResolvedPath _ResolveForNewAsset(const std::string &assetPath) const =0
const ContextObj * _GetCurrentContextObject() const
AR_API void BeginCacheScope(VtValue *cacheScopeData)
ArResolver & operator=(const ArResolver &)=delete
AR_API ArResolver & ArGetResolver()
AR_API ArAssetInfo GetAssetInfo(const std::string &assetPath, const ArResolvedPath &resolvedPath) const
virtual AR_API std::shared_ptr< ArAsset > _OpenAsset(const ArResolvedPath &resolvedPath) const =0
AR_API bool IsContextDependentPath(const std::string &assetPath) const
AR_API void ArSetPreferredResolver(const std::string &resolverTypeName)
virtual AR_API void _BeginCacheScope(VtValue *cacheScopeData)
AR_API std::vector< TfType > ArGetAvailableResolvers()
AR_API ArResolverContext CreateDefaultContextForAsset(const std::string &assetPath) const
AR_API ArResolvedPath Resolve(const std::string &assetPath) const
AR_API ArResolverContext CreateContextFromStrings(const std::vector< std::pair< std::string, std::string >> &contextStrs) const
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
WriteMode
Enumeration of write modes for OpenAssetForWrite.
AR_API ArResolver & ArGetUnderlyingResolver()
virtual AR_API void _EndCacheScope(VtValue *cacheScopeData)
virtual AR_API bool _CanWriteAssetToPath(const ArResolvedPath &resolvedPath, std::string *whyNot) const
#define PXR_NAMESPACE_CLOSE_SCOPE
AR_API void UnbindContext(const ArResolverContext &context, VtValue *bindingData)
AR_API bool CanWriteAssetToPath(const ArResolvedPath &resolvedPath, std::string *whyNot=nullptr) const
AR_API std::shared_ptr< ArWritableAsset > OpenAssetForWrite(const ArResolvedPath &resolvedPath, WriteMode writeMode) const
AR_API std::shared_ptr< ArAsset > OpenAsset(const ArResolvedPath &resolvedPath) const
virtual AR_API std::shared_ptr< ArWritableAsset > _OpenAssetForWrite(const ArResolvedPath &resolvedPath, WriteMode writeMode) const =0
AR_API std::string GetExtension(const std::string &assetPath) const
AR_API ArResolvedPath ResolveForNewAsset(const std::string &assetPath) const
virtual AR_API bool _IsContextDependentPath(const std::string &assetPath) const
virtual AR_API bool _IsRepositoryPath(const std::string &path) const
virtual AR_API void _RefreshContext(const ArResolverContext &context)
virtual ArResolvedPath _Resolve(const std::string &assetPath) const =0
AR_API std::string CreateIdentifier(const std::string &assetPath, const ArResolvedPath &anchorAssetPath=ArResolvedPath()) const
AR_API void EndCacheScope(VtValue *cacheScopeData)
virtual AR_API ArResolverContext _GetCurrentContext() const