25 #ifndef PXR_USD_NDR_FILESYSTEM_DISCOVERY_H
26 #define PXR_USD_NDR_FILESYSTEM_DISCOVERY_H
31 #include "pxr/usd/ndr/api.h"
32 #include "pxr/usd/ndr/discoveryPlugin.h"
35 PXR_NAMESPACE_OPEN_SCOPE
67 using Filter = std::function<bool(NdrNodeDiscoveryResult&)>;
86 NdrNodeDiscoveryResultVec
DiscoverNodes(
const Context&)
override;
90 const NdrStringVec&
GetSearchURIs()
const override {
return _searchPaths; }
94 NdrStringVec _searchPaths;
99 NdrStringVec _allowedExtensions;
102 bool _followSymlinks;
108 PXR_NAMESPACE_CLOSE_SCOPE
110 #endif // PXR_USD_NDR_FILESYSTEM_DISCOVERY_H
#define TF_DECLARE_WEAK_AND_REF_PTRS(type)
Define standard weak, ref, and vector pointer types.
std::function< bool(NdrNodeDiscoveryResult &)> Filter
A filter for discovered nodes.
Interface for discovery plugins.
NDR_API ~_NdrFilesystemDiscoveryPlugin()
Destructor.
Discovers nodes on the filesystem.
NDR_API NdrNodeDiscoveryResultVec DiscoverNodes(const Context &) override
Discover all of the nodes that appear within the the search paths provided and match the extensions p...
NDR_API _NdrFilesystemDiscoveryPlugin()
Constructor.
NDR_API const NdrStringVec & GetSearchURIs() const override
Gets the paths that this plugin is searching for nodes in.