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" 32 PXR_NAMESPACE_OPEN_SCOPE
45 HdSchema(HdContainerDataSourceHandle container)
46 : _container(container) {}
53 bool IsDefined()
const;
57 explicit operator bool()
const {
return IsDefined(); }
61 HdContainerDataSourceHandle _container;
69 return _container ? T::Cast(
70 _container->Get(name)) :
nullptr;
74 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...