HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
assetPath.h File Reference
#include "pxr/pxr.h"
#include "pxr/usd/sdf/api.h"
#include "pxr/base/tf/hash.h"
#include "pxr/base/vt/traits.h"
#include "pxr/usd/sdf/declareHandles.h"
#include <iosfwd>
#include <string>
+ 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

class  TfSpan< T >
 
struct  SdfAssetPathParams
 
class  SdfAssetPath
 
class  SdfAssetPath::Hash
 

Functions

 SDF_DECLARE_HANDLES (SdfLayer)
 
 VT_VALUE_TYPE_CAN_TRANSFORM (SdfAssetPath)
 
SDF_API void SdfAnchorAssetPaths (const SdfLayerHandle &anchor, const VtDictionary &exprVars, TfSpan< SdfAssetPath > assetPaths, std::vector< std::string > *errors)
 
SDF_API void SdfResolveAssetPaths (const SdfLayerHandle &anchor, const VtDictionary &exprVars, TfSpan< SdfAssetPath > assetPaths, std::vector< std::string > *errors)
 
Related
SDF_API std::ostream & operator<< (std::ostream &out, const SdfAssetPath &ap)
 

Function Documentation

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.
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. Evaluates any expression variables listed in exprVars.

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.

VT_VALUE_TYPE_CAN_TRANSFORM ( SdfAssetPath  )