24 #ifndef PXR_USD_SDF_PAYLOAD_H 25 #define PXR_USD_SDF_PAYLOAD_H 30 #include "pxr/usd/sdf/api.h" 33 #include "pxr/usd/sdf/path.h" 35 #include <boost/functional/hash.hpp> 36 #include <boost/operators.hpp> 42 PXR_NAMESPACE_OPEN_SCOPE
46 typedef std::vector<SdfPayload> SdfPayloadVector;
68 const std::string &assetPath = std::string(),
104 _layerOffset = layerOffset;
115 friend inline size_t hash_value(
const SdfPayload &p) {
117 boost::hash_combine(h, p._assetPath);
118 boost::hash_combine(h, p._primPath);
119 boost::hash_combine(h, p._layerOffset);
124 std::string _assetPath;
137 PXR_NAMESPACE_CLOSE_SCOPE
const std::string & GetAssetPath() const
Returns the asset path of the layer that the payload uses.
SDF_API std::ostream & operator<<(std::ostream &out, const SdfPayload &payload)
Writes the string representation of SdfPayload to out.
const SdfPath & GetPrimPath() const
Returns the scene path of the prim for the payload.
void SetAssetPath(const std::string &assetPath)
Sets a new asset path for the layer the payload uses.
SDF_API bool operator<(const SdfPayload &rhs) const
Returns whether this payload is less than rhs.
const std::string & GetAssetPath() const &
Return the asset path.
void SetLayerOffset(const SdfLayerOffset &layerOffset)
Sets a new layer offset.
Represents a payload and all its meta data.
A path value used to locate objects in layers or scenegraphs.
SDF_API SdfPayload(const std::string &assetPath=std::string(), const SdfPath &primPath=SdfPath(), const SdfLayerOffset &layerOffset=SdfLayerOffset())
Create a payload.
Contains an asset path and an optional resolved path.
SDF_API bool operator==(const SdfPayload &rhs) const
Returns whether this payload equals rhs.
const SdfLayerOffset & GetLayerOffset() const
Returns the layer offset associated with the payload.
Represents a time offset and scale between layers.
void SetPrimPath(const SdfPath &primPath)
Sets a new prim path for the prim that the payload uses.