24 #ifndef PXR_USD_USD_SCHEMA_BASE_H
25 #define PXR_USD_USD_SCHEMA_BASE_H
124 if (!_proxyPrimPath.
IsEmpty()) {
125 return _proxyPrimPath;
165 explicit operator bool()
const {
200 bool writeSparsely)
const;
213 static const TfType &_GetStaticTfType();
218 virtual const TfType &_GetTfType()
const;
228 #endif //PXR_USD_USD_SCHEMA_BASE_H
virtual UsdSchemaKind _GetSchemaKind() const
virtual USD_API bool _IsCompatible() const
static const TfTokenVector & GetSchemaAttributeNames(bool includeInherited=true)
bool IsEmpty() const noexcept
Returns true if this is the empty path (SdfPath::EmptyPath()).
Y * get_pointer(TfWeakPtrFacade< X, Y > const &p)
static SDF_API const SdfPath & EmptyPath()
The empty path value, equivalent to SdfPath().
bool IsMultipleApplyAPISchema() const
Represents a concrete typed schema.
Represents a non-concrete typed schema.
const TfType & _GetType() const
bool IsAppliedAPISchema() const
std::vector< TfToken > TfTokenVector
Convenience types.
virtual USD_API ~UsdSchemaBase()
Destructor.
virtual UsdSchemaKind _GetSchemaType() const
static const UsdSchemaKind schemaKind
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
USD_API UsdAttribute _CreateAttr(TfToken const &attrName, SdfValueTypeName const &typeName, bool custom, SdfVariability variability, VtValue const &defaultValue, bool writeSparsely) const
#define PXR_NAMESPACE_CLOSE_SCOPE
SdfPath GetPath() const
Shorthand for GetPrim()->GetPath().
USD_API const UsdPrimDefinition * GetSchemaClassPrimDefinition() const
USD_API UsdSchemaBase(const UsdPrim &prim=UsdPrim())
Construct and store prim as the held prim.
UsdSchemaKind GetSchemaKind() const
Returns the kind of schema this class is.
UsdPrim GetPrim() const
Return this schema object's held prim.
bool IsAPISchema() const
Returns whether this is an API schema or not.
Multiple Apply API Schema.