7#ifndef PXR_USD_SDF_PAYLOAD_H
8#define PXR_USD_SDF_PAYLOAD_H
13#include "pxr/usd/sdf/api.h"
16#include "pxr/usd/sdf/path.h"
23PXR_NAMESPACE_OPEN_SCOPE
27typedef std::vector<SdfPayload> SdfPayloadVector;
49 const std::string &assetPath = std::string(),
85 _layerOffset = layerOffset;
93 return !(*
this == rhs);
107 return !(rhs < *
this);
112 return !(*
this < rhs);
116 friend inline size_t hash_value(
const SdfPayload &p) {
125 std::string _assetPath;
138PXR_NAMESPACE_CLOSE_SCOPE
Contains an asset path and an optional resolved path.
const std::string & GetAssetPath() const &
Return the asset path.
Represents a time offset and scale between layers.
A path value used to locate objects in layers or scenegraphs.
Represents a payload and all its meta data.
SDF_API SdfPayload(const std::string &assetPath=std::string(), const SdfPath &primPath=SdfPath(), const SdfLayerOffset &layerOffset=SdfLayerOffset())
Create a payload.
const SdfLayerOffset & GetLayerOffset() const
Returns the layer offset associated with the payload.
bool operator!=(const SdfPayload &rhs) const
void SetPrimPath(const SdfPath &primPath)
Sets a new prim path for the prim that the payload uses.
void SetLayerOffset(const SdfLayerOffset &layerOffset)
Sets a new layer offset.
SDF_API bool operator<(const SdfPayload &rhs) const
Returns whether this payload is less than rhs.
void SetAssetPath(const std::string &assetPath)
Sets a new asset path for the layer the payload uses.
const std::string & GetAssetPath() const
Returns the asset path of the layer that the payload uses.
bool operator<=(const SdfPayload &rhs) const
bool operator>=(const SdfPayload &rhs) const
const SdfPath & GetPrimPath() const
Returns the scene path of the prim for the payload.
bool operator>(const SdfPayload &rhs) const
SDF_API bool operator==(const SdfPayload &rhs) const
Returns whether this payload equals rhs.
static size_t Combine(Args &&... args)
Produce a hash code by combining the hash codes of several objects.
GF_API std::ostream & operator<<(std::ostream &, const GfBBox3d &)
Output a GfBBox3d using the format [(range) matrix zeroArea].