HDK
|
#include <schema.h>
Public Member Functions | |
HdSchema (HdContainerDataSourceHandle container) | |
HD_API HdContainerDataSourceHandle | GetContainer () |
Returns the container data source that this schema is interpreting. More... | |
HD_API bool | IsDefined () const |
operator bool () const | |
Protected Member Functions | |
template<typename T > | |
T::Handle | _GetTypedDataSource (TfToken name) |
Protected Attributes | |
HdContainerDataSourceHandle | _container |
Schema classes represent a structured view of the inherently unstructured container data source passed into the constructor. They're used to represent what fields a given object is expected to have. Note that a schema can be applied to a container which doesn't contain all of the named fields; in that case, some of the field accessors will return null, and the caller should use default values for those fields.
|
inline |
|
inlineprotected |
HD_API HdContainerDataSourceHandle HdSchema::GetContainer | ( | ) |
Returns the container data source that this schema is interpreting.
HD_API bool HdSchema::IsDefined | ( | ) | const |
|
inlineexplicit |