24 #ifndef PXR_USD_SDF_COPY_UTILS_H
25 #define PXR_USD_SDF_COPY_UTILS_H
76 const SdfLayerHandle& srcLayer,
const SdfPath& srcPath,
77 const SdfLayerHandle& dstLayer,
const SdfPath& dstPath);
101 const SdfLayerHandle& srcLayer,
const SdfPath& srcPath,
bool fieldInSrc,
102 const SdfLayerHandle& dstLayer,
const SdfPath& dstPath,
bool fieldInDst,
103 std::optional<VtValue>* valueToCopy)>;
122 std::function<void(const SdfLayerHandle&, const SdfPath&)>;
152 bool(
const TfToken& childrenField,
153 const SdfLayerHandle& srcLayer,
const SdfPath& srcPath,
bool fieldInSrc,
154 const SdfLayerHandle& dstLayer,
const SdfPath& dstPath,
bool fieldInDst,
155 std::optional<VtValue>* srcChildren,
156 std::optional<VtValue>* dstChildren)>;
171 const SdfLayerHandle& srcLayer,
const SdfPath& srcPath,
bool fieldInSrc,
172 const SdfLayerHandle& dstLayer,
const SdfPath& dstPath,
bool fieldInDst,
173 std::optional<VtValue>* valueToCopy);
188 const SdfLayerHandle& srcLayer,
const SdfPath& srcPath,
bool fieldInSrc,
189 const SdfLayerHandle& dstLayer,
const SdfPath& dstPath,
bool fieldInDst,
190 std::optional<VtValue>* srcChildren,
191 std::optional<VtValue>* dstChildren);
219 const SdfLayerHandle& srcLayer,
const SdfPath& srcPath,
220 const SdfLayerHandle& dstLayer,
const SdfPath& dstPath,
228 #endif // PXR_USD_SDF_COPY_UTILS_H
std::function< void(const SdfLayerHandle &, const SdfPath &)> EditFunction
SDF_API bool SdfShouldCopyChildren(const SdfPath &srcRootPath, const SdfPath &dstRootPath, const TfToken &childrenField, const SdfLayerHandle &srcLayer, const SdfPath &srcPath, bool fieldInSrc, const SdfLayerHandle &dstLayer, const SdfPath &dstPath, bool fieldInDst, std::optional< VtValue > *srcChildren, std::optional< VtValue > *dstChildren)
bool operator==(const SdfCopySpecsValueEdit &rhs) const
bool operator!=(const SdfCopySpecsValueEdit &rhs) const
SDF_API bool SdfShouldCopyValue(const SdfPath &srcRootPath, const SdfPath &dstRootPath, SdfSpecType specType, const TfToken &field, const SdfLayerHandle &srcLayer, const SdfPath &srcPath, bool fieldInSrc, const SdfLayerHandle &dstLayer, const SdfPath &dstPath, bool fieldInDst, std::optional< VtValue > *valueToCopy)
const EditFunction & GetEditFunction() const
SdfCopySpecsValueEdit(const EditFunction &edit)
std::function< bool(SdfSpecType specType, const TfToken &field, const SdfLayerHandle &srcLayer, const SdfPath &srcPath, bool fieldInSrc, const SdfLayerHandle &dstLayer, const SdfPath &dstPath, bool fieldInDst, std::optional< VtValue > *valueToCopy)> SdfShouldCopyValueFn
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
SDF_API bool SdfCopySpec(const SdfLayerHandle &srcLayer, const SdfPath &srcPath, const SdfLayerHandle &dstLayer, const SdfPath &dstPath)
#define PXR_NAMESPACE_CLOSE_SCOPE
std::function< bool(const TfToken &childrenField, const SdfLayerHandle &srcLayer, const SdfPath &srcPath, bool fieldInSrc, const SdfLayerHandle &dstLayer, const SdfPath &dstPath, bool fieldInDst, std::optional< VtValue > *srcChildren, std::optional< VtValue > *dstChildren)> SdfShouldCopyChildrenFn
SDF_DECLARE_HANDLES(SdfLayer)