Loading...
Searching...
No Matches
nodeDiscoveryResult.h
1//
2// Copyright 2018 Pixar
3//
4// Licensed under the Apache License, Version 2.0 (the "Apache License")
5// with the following modification; you may not use this file except in
6// compliance with the Apache License and the following modification to it:
7// Section 6. Trademarks. is deleted and replaced with:
8//
9// 6. Trademarks. This License does not grant permission to use the trade
10// names, trademarks, service marks, or product names of the Licensor
11// and its affiliates, except as required to comply with Section 4(c) of
12// the License and to reproduce the content of the NOTICE file.
13//
14// You may obtain a copy of the Apache License at
15//
16// http://www.apache.org/licenses/LICENSE-2.0
17//
18// Unless required by applicable law or agreed to in writing, software
19// distributed under the Apache License with the above modification is
20// distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21// KIND, either express or implied. See the Apache License for the specific
22// language governing permissions and limitations under the Apache License.
23//
24
25#ifndef PXR_USD_NDR_NODE_DISCOVERY_RESULT_H
26#define PXR_USD_NDR_NODE_DISCOVERY_RESULT_H
27
28#include "pxr/usd/ndr/declare.h"
29
30PXR_NAMESPACE_OPEN_SCOPE
31
38 const NdrVersion& version,
39 const std::string& name,
40 const TfToken& family,
42 const TfToken& sourceType,
43 const std::string& uri,
44 const std::string& resolvedUri,
45 const std::string &sourceCode=std::string(),
46 const NdrTokenMap &metadata=NdrTokenMap(),
47 const std::string& blindData=std::string(),
51 name(name),
55 uri(uri),
61 { }
62
70
74 NdrVersion version;
75
82 std::string name;
83
90
98
105
110 std::string uri;
111
118 std::string resolvedUri;
119
124 std::string sourceCode;
125
132 NdrTokenMap metadata;
133
137 std::string blindData;
138
147};
148
149typedef std::vector<NdrNodeDiscoveryResult> NdrNodeDiscoveryResultVec;
150
151PXR_NAMESPACE_CLOSE_SCOPE
152
153#endif // PXR_USD_NDR_NODE_DISCOVERY_RESULT_H
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:88
Represents the raw data of a node, and some other bits of metadata, that were determined via a NdrDis...
std::string uri
The node's origin.
TfToken subIdentifier
The subIdentifier is associated with a particular asset and refers to a specific definition within th...
NdrVersion version
The node's version.
NdrTokenMap metadata
The node's metadata collected during the discovery process.
std::string sourceCode
The node's entire source code.
TfToken family
The node's family.
TfToken discoveryType
The node's discovery type.
NdrNodeDiscoveryResult(const NdrIdentifier &identifier, const NdrVersion &version, const std::string &name, const TfToken &family, const TfToken &discoveryType, const TfToken &sourceType, const std::string &uri, const std::string &resolvedUri, const std::string &sourceCode=std::string(), const NdrTokenMap &metadata=NdrTokenMap(), const std::string &blindData=std::string(), const TfToken &subIdentifier=TfToken())
Constructor.
TfToken sourceType
The node's source type.
std::string name
The node's name.
std::string resolvedUri
The node's fully-resolved URI.
std::string blindData
An optional detail for the parser plugin.
NdrIdentifier identifier
The node's identifier.
Common typedefs that are used throughout the NDR library.