24#ifndef PXR_USD_USD_UTILS_DEPENDENCIES_H
25#define PXR_USD_USD_UTILS_DEPENDENCIES_H
39#include "pxr/usd/usdUtils/api.h"
45PXR_NAMESPACE_OPEN_SCOPE
61 const std::string& filePath,
62 std::vector<std::string>* subLayers,
63 std::vector<std::string>* references,
64 std::vector<std::string>* payloads);
79 std::vector<SdfLayerRefPtr> *layers,
80 std::vector<std::string> *assets,
81 std::vector<std::string> *unresolvedPaths);
88 const std::string& assetPath)>;
100 const SdfLayerHandle& layer,
104enum class UsdUtilsDependencyType {
119using UsdUtilsProcessingFunc = std::function<std::string(
121 const std::string &assetPath,
122 const std::vector<std::string>& dependencies,
123 UsdUtilsDependencyType dependencyType)>;
125PXR_NAMESPACE_CLOSE_SCOPE
Contains an asset path and an optional resolved path.
USDUTILS_API bool UsdUtilsComputeAllDependencies(const SdfAssetPath &assetPath, std::vector< SdfLayerRefPtr > *layers, std::vector< std::string > *assets, std::vector< std::string > *unresolvedPaths)
Recursively computes all the dependencies of the given asset and populates layers with all the depend...
USDUTILS_API void UsdUtilsModifyAssetPaths(const SdfLayerHandle &layer, const UsdUtilsModifyAssetPathFn &modifyFn)
Helper function that visits every asset path in layer, calls modifyFn and replaces the value with the...
std::function< std::string(const std::string &assetPath)> UsdUtilsModifyAssetPathFn
Callback that is used to modify asset paths in a layer.
USDUTILS_API void UsdUtilsExtractExternalReferences(const std::string &filePath, std::vector< std::string > *subLayers, std::vector< std::string > *references, std::vector< std::string > *payloads)
Parses the file at filePath, identifying external references, and sorting them into separate type-bas...