Loading...
Searching...
No Matches
discoveryPlugin.h
1//
2// Copyright 2018 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_USD_USD_HYDRA_DISCOVERY_PLUGIN_H
8#define PXR_USD_USD_HYDRA_DISCOVERY_PLUGIN_H
9
10#include "pxr/pxr.h"
11#include "pxr/usd/usdHydra/api.h"
12#include "pxr/base/tf/token.h"
13
14#include "pxr/usd/ndr/declare.h"
15#include "pxr/usd/ndr/discoveryPlugin.h"
17
18PXR_NAMESPACE_OPEN_SCOPE
19
20class UsdHydraDiscoveryPlugin : public NdrDiscoveryPlugin {
21public:
22 UsdHydraDiscoveryPlugin() = default;
23
24 ~UsdHydraDiscoveryPlugin() override = default;
25
26 virtual NdrNodeDiscoveryResultVec DiscoverNodes(const Context &context)
27 override;
28
29 virtual const NdrStringVec& GetSearchURIs() const override;
30};
31
32PXR_NAMESPACE_CLOSE_SCOPE
33
34#endif // PXR_USD_USD_HYDRA_DISCOVERY_PLUGIN_H
Interface for discovery plugins.
virtual NDR_API NdrNodeDiscoveryResultVec DiscoverNodes(const Context &)=0
Finds and returns all nodes that the implementing plugin should be aware of.
virtual NDR_API const NdrStringVec & GetSearchURIs() const =0
Gets the URIs that this plugin is searching for nodes in.
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...
Common typedefs that are used throughout the NDR library.