HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
validatorTokens.h
Go to the documentation of this file.
1 //
2 // Copyright 2024 Pixar
3 //
4 // Licensed under the terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
7 
8 #ifndef PXR_USD_VALIDATION_USD_UTILS_VALIDATORS_TOKENS_H
9 #define PXR_USD_VALIDATION_USD_UTILS_VALIDATORS_TOKENS_H
10 
11 /// \file
12 
13 #include "pxr/pxr.h"
16 
18 
19 #define USD_UTILS_VALIDATOR_NAME_TOKENS \
20  ((packageEncapsulationValidator, \
21  "usdUtilsValidators:PackageEncapsulationValidator")) \
22  ((fileExtensionValidator, \
23  "usdUtilsValidators:FileExtensionValidator")) \
24  ((missingReferenceValidator, \
25  "usdUtilsValidators:MissingReferenceValidator")) \
26  ((rootPackageValidator, "usdUtilsValidators:RootPackageValidator")) \
27  ((usdzPackageValidator, "usdUtilsValidators:UsdzPackageValidator"))
28 
29 #define USD_UTILS_VALIDATOR_KEYWORD_TOKENS \
30  (UsdUtilsValidators) \
31  (UsdzValidators)
32 
33 #define USD_UTILS_VALIDATION_ERROR_NAME_TOKENS \
34  ((layerNotInPackage, "LayerNotInPackage")) \
35  ((assetNotInPackage, "AssetNotInPackage")) \
36  ((invalidLayerInPackage, "InvalidLayerInPackage")) \
37  ((unsupportedFileExtensionInPackage, \
38  "UnsupportedFileExtensionInPackage")) \
39  ((unresolvableDependency, "UnresolvableDependency")) \
40  ((compressionDetected, "CompressionDetected")) \
41  ((byteMisalignment, "ByteMisalignment"))
42 
43 ///\def
44 /// Tokens representing validator names. Note that for plugin provided
45 /// validators, the names must be prefixed by usdGeom:, which is the name of
46 /// the usdGeom plugin.
47 TF_DECLARE_PUBLIC_TOKENS(UsdUtilsValidatorNameTokens, USDUTILSVALIDATORS_API,
49 
50 ///\def
51 /// Tokens representing keywords associated with any validator in the usdGeom
52 /// plugin. Clients can use this to inspect validators contained within a
53 /// specific keywords, or use these to be added as keywords to any new
54 /// validator.
55 TF_DECLARE_PUBLIC_TOKENS(UsdUtilsValidatorKeywordTokens, USDUTILSVALIDATORS_API,
57 
58 /// \def USD_UTILS_VALIDATION_ERROR_NAME_TOKENS
59 /// Tokens representing validation error identifier.
60 TF_DECLARE_PUBLIC_TOKENS(UsdUtilsValidationErrorNameTokens,
63 
65 
66 #endif
TF_DECLARE_PUBLIC_TOKENS(UsdGeomValidatorNameTokens, USDGEOMVALIDATORS_API, USD_GEOM_VALIDATOR_NAME_TOKENS)
#define USDUTILSVALIDATORS_API
Definition: api.h:25
#define USD_UTILS_VALIDATOR_KEYWORD_TOKENS
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
Definition: path.h:1425
#define PXR_NAMESPACE_CLOSE_SCOPE
Definition: pxr.h:74
#define USD_UTILS_VALIDATOR_NAME_TOKENS
#define USD_UTILS_VALIDATION_ERROR_NAME_TOKENS