7#ifndef PXR_USD_AR_DEFAULT_RESOLVER_H
8#define PXR_USD_AR_DEFAULT_RESOLVER_H
13#include "pxr/usd/ar/api.h"
22PXR_NAMESPACE_OPEN_SCOPE
73 const std::vector<std::string>& searchPath);
78 const std::string& assetPath,
83 const std::string& assetPath,
88 const std::string& assetPath)
const override;
92 const std::string& assetPath)
const override;
106 const std::string& assetPath)
const override;
113 const std::string& contextStr)
const override;
117 const std::string& assetPath)
const override;
121 const std::string& path,
141PXR_NAMESPACE_CLOSE_SCOPE
Resolver context object that specifies a search path to use during asset resolution.
Default asset resolution implementation used when no plugin implementation is provided.
AR_API bool _IsContextDependentPath(const std::string &assetPath) const override
Return true if the result of resolving the given assetPath may differ depending on the asset resolver...
AR_API std::string _CreateIdentifierForNewAsset(const std::string &assetPath, const ArResolvedPath &anchorAssetPath) const override
Return an identifier for a new asset at the given assetPath.
AR_API ArResolvedPath _Resolve(const std::string &assetPath) const override
Return the resolved path for the given assetPath or an empty ArResolvedPath if no asset exists at tha...
AR_API std::string _CreateIdentifier(const std::string &assetPath, const ArResolvedPath &anchorAssetPath) const override
Return an identifier for the asset at the given assetPath.
AR_API ArResolverContext _CreateContextFromString(const std::string &contextStr) const override
Creates an ArDefaultResolverContext from contextStr.
AR_API ArTimestamp _GetModificationTimestamp(const std::string &path, const ArResolvedPath &resolvedPath) const override
Return an ArTimestamp representing the last time the asset at assetPath was modified.
AR_API ArResolverContext _CreateDefaultContextForAsset(const std::string &assetPath) const override
Creates a context that adds the directory containing assetPath as a first directory to be searched,...
static AR_API void SetDefaultSearchPath(const std::vector< std::string > &searchPath)
Set the default search path that will be used during asset resolution.
AR_API std::shared_ptr< ArAsset > _OpenAsset(const ArResolvedPath &resolvedPath) const override
Return an ArAsset object for the asset located at resolvedPath.
AR_API std::shared_ptr< ArWritableAsset > _OpenAssetForWrite(const ArResolvedPath &resolvedPath, WriteMode writeMode) const override
Creates an ArFilesystemWriteableAsset for the asset at the given resolvedPath.
AR_API ArResolverContext _CreateDefaultContext() const override
Return a default ArResolverContext that may be bound to this resolver to resolve assets when no other...
AR_API ArResolvedPath _ResolveForNewAsset(const std::string &assetPath) const override
Return the resolved path for the given assetPath that may be used to create a new asset or an empty A...
Represents a resolved asset path.
An asset resolver context allows clients to provide additional data to the resolver for use during re...
Interface for the asset resolution system.
WriteMode
Enumeration of write modes for OpenAssetForWrite.
Represents a timestamp for an asset.