HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
tokens.h
Go to the documentation of this file.
1 //
2 // Copyright 2016 Pixar
3 //
4 // Licensed under the terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
7 #ifndef USDSEMANTICS_TOKENS_H
8 #define USDSEMANTICS_TOKENS_H
9 
10 /// \file usdSemantics/tokens.h
11 
12 // XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
13 //
14 // This is an automatically generated file (by usdGenSchema.py).
15 // Do not hand-edit!
16 //
17 // XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
18 
19 #include "pxr/pxr.h"
21 #include "pxr/base/tf/staticData.h"
22 #include "pxr/base/tf/token.h"
23 #include <vector>
24 
26 
27 
28 /// \class UsdSemanticsTokensType
29 ///
30 /// \link UsdSemanticsTokens \endlink provides static, efficient
31 /// \link TfToken TfTokens\endlink for use in all public USD API.
32 ///
33 /// These tokens are auto-generated from the module's schema, representing
34 /// property names, for when you need to fetch an attribute or relationship
35 /// directly by name, e.g. UsdPrim::GetAttribute(), in the most efficient
36 /// manner, and allow the compiler to verify that you spelled the name
37 /// correctly.
38 ///
39 /// UsdSemanticsTokens also contains all of the \em allowedTokens values
40 /// declared for schema builtin attributes of 'token' scene description type.
41 /// Use UsdSemanticsTokens like so:
42 ///
43 /// \code
44 /// gprim.GetMyTokenValuedAttr().Set(UsdSemanticsTokens->semanticsLabels);
45 /// \endcode
48  /// \brief "semantics:labels"
49  ///
50  /// Property namespace prefix for the UsdSemanticsLabelsAPI schema.
52  /// \brief "semantics:labels:__INSTANCE_NAME__"
53  ///
54  /// UsdSemanticsLabelsAPI
56  /// \brief "SemanticsLabelsAPI"
57  ///
58  /// Schema identifer and family for UsdSemanticsLabelsAPI
60  /// A vector of all of the tokens listed above.
61  const std::vector<TfToken> allTokens;
62 };
63 
64 /// \var UsdSemanticsTokens
65 ///
66 /// A global variable with static, efficient \link TfToken TfTokens\endlink
67 /// for use in all public USD API. \sa UsdSemanticsTokensType
69 
71 
72 #endif
USDSEMANTICS_API TfStaticData< UsdSemanticsTokensType > UsdSemanticsTokens
const TfToken SemanticsLabelsAPI
"SemanticsLabelsAPI"
Definition: tokens.h:59
USDSEMANTICS_API UsdSemanticsTokensType()
#define USDSEMANTICS_API
Definition: api.h:23
const TfToken semanticsLabels
"semantics:labels"
Definition: tokens.h:51
Definition: token.h:70
const TfToken semanticsLabels_MultipleApplyTemplate_
"semantics:labels:__INSTANCE_NAME__"
Definition: tokens.h:55
const std::vector< TfToken > allTokens
A vector of all of the tokens listed above.
Definition: tokens.h:61
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74