7#ifndef USDPROFILES_GENERATED_CLAIMSAPI_H
8#define USDPROFILES_GENERATED_CLAIMSAPI_H
13#include "pxr/usd/usdProfiles/api.h"
24#include "pxr/base/vt/value.h"
31#include "pxr/base/tf/type.h"
33PXR_NAMESPACE_OPEN_SCOPE
216 static const TfType &_GetStaticTfType();
218 static bool _IsTypedSchema();
222 const TfType &_GetTfType()
const override;
289 const TfToken °radationClass)
const;
361 std::vector<UsdProfileRegistry::CapabilityResult> *results =
nullptr)
367 template <
typename T>
368 bool _GetProfilesInfoByKey(
const TfToken &keyPath, T *val)
const;
371PXR_NAMESPACE_CLOSE_SCOPE
Contains an asset path and optional evaluated and resolved paths.
A path value used to locate objects in layers or scenegraphs.
Token for efficient comparison, assignment, and hashing of known strings.
TfType represents a dynamic runtime type.
The base class for all API schemas.
UsdPrim is the sole persistent scenegraph object on a UsdStage, and is the embodiment of a "Prim" as ...
QueryStatus
Result of a predecessor reachability query.
UsdClaimsAPI records a prim's profile compatibility claims and per-capability usage declarations.
USDPROFILES_API void SetCapabilityUsage(const TfToken &capability, const TfToken °radationClass) const
Sets the degradation class for a single capability.
USDPROFILES_API void SetCapabilityUsages(const VtDictionary &usages) const
Replaces the entire capability usage map.
UsdProfilesClaimsAPI(const UsdSchemaBase &schemaObj)
Construct a UsdProfilesClaimsAPI on the prim held by schemaObj .
USDPROFILES_API void ClearProfileCompatibility(const TfToken &profile) const
Removes the compatibility entry for profile entirely.
USDPROFILES_API void SetProfilesInfo(const VtDictionary &info) const
Replaces the entire profilesInfo dictionary on the current edit target.
USDPROFILES_API TfToken GetCapabilityUsage(const TfToken &capability) const
Returns the degradation class string for capability, or an empty TfToken if capability has not been r...
USDPROFILES_API VtDictionary GetCapabilityUsages() const
Returns the capability usage map as a VtDictionary whose keys are capability token strings and whose ...
USDPROFILES_API void SetProfileCompatible(const TfToken &profile) const
Declares this prim fully compatible with profile (no exceptions).
static const UsdSchemaKind schemaKind
Compile time constant representing what kind of schema this class is.
UsdProfilesClaimsAPI(const UsdPrim &prim=UsdPrim())
Construct a UsdProfilesClaimsAPI on UsdPrim prim .
static USDPROFILES_API UsdProfilesClaimsAPI Apply(const UsdPrim &prim)
Applies this single-apply API schema to the given prim.
USDPROFILES_API VtDictionary GetProfilesInfo() const
Returns the composed profilesInfo dictionary, or an empty dictionary if none has been authored.
static USDPROFILES_API const TfTokenVector & GetSchemaAttributeNames(bool includeInherited=true)
Return a vector of names of all pre-declared attributes for this schema class and all its ancestor cl...
virtual USDPROFILES_API ~UsdProfilesClaimsAPI()
Destructor.
USDPROFILES_API UsdSchemaKind _GetSchemaKind() const override
Returns the kind of schema this class belongs to.
USDPROFILES_API void SetProfileCompatibleWithExceptions(const TfToken &profile, const VtArray< TfToken > &exceptions) const
Declares this prim compatible with profile subject to the given exceptions — capabilities that are in...
static USDPROFILES_API bool CanApply(const UsdPrim &prim, std::string *whyNot=nullptr)
Returns true if this single-apply API schema can be applied to the given prim.
USDPROFILES_API VtArray< TfToken > GetProfileExceptions(const TfToken &profile) const
Returns the exception set for profile — the capabilities that are intentionally unsupported in the co...
USDPROFILES_API UsdProfileRegistry::QueryStatus IsCompatibleWith(const TfToken &profile, std::vector< UsdProfileRegistry::CapabilityResult > *results=nullptr) const
Returns the QueryStatus representing how well this prim satisfies profile, taking into account any ex...
USDPROFILES_API VtArray< TfToken > GetCompatibleProfiles() const
Returns all profiles that this prim has been declared compatible with, as an unordered array of profi...
static USDPROFILES_API UsdProfilesClaimsAPI Get(const UsdStagePtr &stage, const SdfPath &path)
Return a UsdProfilesClaimsAPI holding the prim adhering to this schema at path on stage.
The base class for all schema types in Usd.
Singleton registry that provides access to schema type information and the prim definitions for regis...
Represents an arbitrary dimensional rectangular container class.
A map with string keys and VtValue values.
UsdSchemaKind
An enum representing which kind of schema a given schema class belongs to.
@ SingleApplyAPI
Single Apply API schema.
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...
std::vector< TfToken > TfTokenVector
Convenience types.