HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dependenciesSchema.h
Go to the documentation of this file.
1 //
2 // Copyright 2023 Pixar
3 //
4 // Licensed under the terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
7 ////////////////////////////////////////////////////////////////////////
8 
9 /* ************************************************************************** */
10 /* ** ** */
11 /* ** This file is generated by a script. ** */
12 /* ** ** */
13 /* ** Do not edit it directly (unless it is within a CUSTOM CODE section)! ** */
14 /* ** Edit hdSchemaDefs.py instead to make changes. ** */
15 /* ** ** */
16 /* ************************************************************************** */
17 
18 #ifndef PXR_IMAGING_HD_DEPENDENCIES_SCHEMA_H
19 #define PXR_IMAGING_HD_DEPENDENCIES_SCHEMA_H
20 
21 /// \file
22 
23 #include "pxr/imaging/hd/api.h"
25 
26 #include "pxr/imaging/hd/schema.h"
27 
28 // --(BEGIN CUSTOM CODE: Includes)--
29 // --(END CUSTOM CODE: Includes)--
30 
32 
33 // --(BEGIN CUSTOM CODE: Declares)--
34 // --(END CUSTOM CODE: Declares)--
35 
36 #define HD_DEPENDENCIES_SCHEMA_TOKENS \
37  (__dependencies) \
38 
39 TF_DECLARE_PUBLIC_TOKENS(HdDependenciesSchemaTokens, HD_API,
41 
42 //-----------------------------------------------------------------------------
43 
44 
45 /// \class HdDependenciesSchema
46 ///
48 {
49 public:
50  /// \name Schema retrieval
51  /// @{
52 
53  HdDependenciesSchema(HdContainerDataSourceHandle container)
54  : HdSchema(container) {}
55 
56  /// Retrieves a container data source with the schema's default name token
57  /// "__dependencies" from the parent container and constructs a
58  /// HdDependenciesSchema instance.
59  /// Because the requested container data source may not exist, the result
60  /// should be checked with IsDefined() or a bool comparison before use.
61  HD_API
63  const HdContainerDataSourceHandle &fromParentContainer);
64 
65  /// @}
66 
67 // --(BEGIN CUSTOM CODE: Schema Methods)--
68 
69  using EntryPair = std::pair<TfToken, HdDependencySchema>;
71 
72  HD_API
74 
75 // --(END CUSTOM CODE: Schema Methods)--
76 
77  /// \name Member accessor
78  /// @{
79 
80  /// @}
81 
82  /// \name Schema location
83  /// @{
84 
85  /// Returns a token where the container representing this schema is found in
86  /// a container by default.
87  HD_API
88  static const TfToken &GetSchemaToken();
89 
90  /// Returns an HdDataSourceLocator (relative to the prim-level data source)
91  /// where the container representing this schema is found by default.
92  HD_API
93  static const HdDataSourceLocator &GetDefaultLocator();
94 
95  /// @}
96 
97  /// \name Schema construction
98  /// @{
99  HD_API
100  static HdContainerDataSourceHandle
102  size_t count,
103  const TfToken *names,
104  const HdDataSourceBaseHandle *values);
105 
106  /// @}
107 };
108 
110 
111 #endif
#define HD_DEPENDENCIES_SCHEMA_TOKENS
std::pair< TfToken, HdDependencySchema > EntryPair
#define PXR_NAMESPACE_OPEN_SCOPE
Definition: pxr.h:73
#define HD_API
Definition: api.h:23
static HD_API HdDependenciesSchema GetFromParent(const HdContainerDataSourceHandle &fromParentContainer)
HD_API EntryVector GetEntries()
Definition: token.h:70
HdDependenciesSchema(HdContainerDataSourceHandle container)
static HD_API const HdDataSourceLocator & GetDefaultLocator()
static HD_API HdContainerDataSourceHandle BuildRetained(size_t count, const TfToken *names, const HdDataSourceBaseHandle *values)
TF_DECLARE_PUBLIC_TOKENS(HdDependenciesSchemaTokens, HD_API, HD_DEPENDENCIES_SCHEMA_TOKENS)
GLenum GLsizei GLsizei GLint * values
Definition: glcorearb.h:1602
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
GLint GLsizei count
Definition: glcorearb.h:405
static HD_API const TfToken & GetSchemaToken()