8#ifndef PXR_IMAGING_HD_SCHEMA_H
9#define PXR_IMAGING_HD_SCHEMA_H
11#include "pxr/imaging/hd/api.h"
13#include "pxr/imaging/hd/dataSourceTypeDefs.h"
15PXR_NAMESPACE_OPEN_SCOPE
28 HdSchema(HdContainerDataSourceHandle container)
29 : _container(container) {}
36 bool IsDefined()
const;
40 explicit operator bool()
const {
return IsDefined(); }
45 HdContainerDataSourceHandle _container;
53 return _container ? T::Cast(
54 _container->Get(name)) :
nullptr;
58PXR_NAMESPACE_CLOSE_SCOPE
A datasource representing structured (named, hierarchical) data, for example a geometric primitive or...
Schema classes represent a structured view of the inherently unstructured container data source passe...
T::Handle _GetTypedDataSource(TfToken name) const
Returns a datasource of the requested type for the given name: schema implementations can use this to...
HD_API HdContainerDataSourceHandle GetContainer() const
Returns the container data source that this schema is interpreting.
Token for efficient comparison, assignment, and hashing of known strings.