24 #ifndef USD_GENERATED_APISCHEMABASE_H
25 #define USD_GENERATED_APISCHEMABASE_H
165 static const TfType &_GetStaticTfType();
167 static bool _IsTypedSchema();
171 const TfType &_GetTfType()
const override;
191 , _instanceName(instanceName)
200 , _instanceName(instanceName)
210 return _instanceName;
234 template <
typename APISchemaType>
239 if (prim.
ApplyAPI<APISchemaType>()) {
240 return APISchemaType(prim);
242 return APISchemaType();
269 template <
typename APISchemaType>
275 if (prim.
ApplyAPI<APISchemaType>(instanceName)) {
276 return APISchemaType(prim, instanceName);
278 return APISchemaType();
static APISchemaType _MultipleApplyAPISchema(const UsdPrim &prim, const TfToken &apiSchemaName, const TfToken &instanceName)
const TfToken & _GetInstanceName() const
UsdAPISchemaBase(const UsdPrim &prim=UsdPrim())
UsdAPISchemaBase(const UsdSchemaBase &schemaObj, const TfToken &instanceName)
UsdAPISchemaBase(const UsdSchemaBase &schemaObj)
USD_API UsdSchemaType _GetSchemaType() const override
static const UsdSchemaType schemaType
std::vector< TfToken > TfTokenVector
Convenience types.
UsdAPISchemaBase(const UsdPrim &prim, const TfToken &instanceName)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
virtual USD_API ~UsdAPISchemaBase()=0
Destructor.
#define PXR_NAMESPACE_CLOSE_SCOPE
static USD_API const TfTokenVector & GetSchemaAttributeNames(bool includeInherited=true)
static APISchemaType _ApplyAPISchema(const UsdPrim &prim, const TfToken &apiSchemaName)
USD_API bool _IsCompatible() const override