Loading...
Searching...
No Matches
assetPath.h File Reference
+ Include dependency graph for assetPath.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SdfAssetPathParams
 Helper class for explicitly setting values when creating a SdfAssetPath. More...
 
class  SdfAssetPath
 Contains an asset path and optional evaluated and resolved paths. More...
 

Functions

 SDF_DECLARE_HANDLES (SdfLayer)
 
SDF_API void SdfAnchorAssetPaths (const SdfLayerHandle &anchor, const VtDictionary &exprVars, TfSpan< SdfAssetPath > assetPaths, std::vector< std::string > *errors)
 Anchors all paths in assetPaths to the anchor layer.
 
SDF_API void SdfResolveAssetPaths (const SdfLayerHandle &anchor, const VtDictionary &exprVars, TfSpan< SdfAssetPath > assetPaths, std::vector< std::string > *errors)
 Anchors and resolves the given assetPaths with respect to the anchor layer.
 
Related
SDF_API std::ostream & operator<< (std::ostream &out, const SdfAssetPath &ap)
 Stream insertion operator for the string representation of this assetPath.
 

Function Documentation

◆ operator<<()

SDF_API std::ostream & operator<< ( std::ostream &  out,
const SdfAssetPath ap 
)

Stream insertion operator for the string representation of this assetPath.

Note
This always encodes only the result of GetAssetPath(). The resolved path is ignored for the purpose of this operator. This means that two SdfAssetPath s that do not compare equal may produce indistinguishable ostream output.

◆ SdfAnchorAssetPaths()

SDF_API void SdfAnchorAssetPaths ( const SdfLayerHandle &  anchor,
const VtDictionary exprVars,
TfSpan< SdfAssetPath assetPaths,
std::vector< std::string > *  errors 
)

Anchors all paths in assetPaths to the anchor layer.

Evaluates any expression variables listed in exprVars.

◆ SdfResolveAssetPaths()

SDF_API void SdfResolveAssetPaths ( const SdfLayerHandle &  anchor,
const VtDictionary exprVars,
TfSpan< SdfAssetPath assetPaths,
std::vector< std::string > *  errors 
)

Anchors and resolves the given assetPaths with respect to the anchor layer.

Evaluates any expression variables listed in exprVars. Expects resolver context to be bound beforehand.