25 #ifndef PXR_IMAGING_HD_SCHEMA_H 26 #define PXR_IMAGING_HD_SCHEMA_H 28 #include "pxr/imaging/hd/api.h" 30 #include "pxr/imaging/hd/dataSourceTypeDefs.h" 31 #include "pxr/imaging/hd/vectorSchemaTypeDefs.h" 33 PXR_NAMESPACE_OPEN_SCOPE
46 HdSchema(HdContainerDataSourceHandle container)
47 : _container(container) {}
54 bool IsDefined()
const;
58 explicit operator bool()
const {
return IsDefined(); }
62 HdContainerDataSourceHandle _container;
70 return _container ? T::Cast(
71 _container->Get(name)) :
nullptr;
75 PXR_NAMESPACE_CLOSE_SCOPE
T::Handle _GetTypedDataSource(TfToken name)
Returns a datasource of the requested type for the given name: schema implementations can use this to...
Token for efficient comparison, assignment, and hashing of known strings.
HD_API HdContainerDataSourceHandle GetContainer()
Returns the container data source that this schema is interpreting.
Schema classes represent a structured view of the inherently unstructured container data source passe...