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"
32PXR_NAMESPACE_OPEN_SCOPE
45 HdSchema(HdContainerDataSourceHandle container)
46 : _container(container) {}
53 bool IsDefined()
const;
57 explicit operator bool()
const {
return IsDefined(); }
62 HdContainerDataSourceHandle _container;
70 return _container ? T::Cast(
71 _container->Get(name)) :
nullptr;
75PXR_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)
Returns a datasource of the requested type for the given name: schema implementations can use this to...
HD_API HdContainerDataSourceHandle GetContainer()
Returns the container data source that this schema is interpreting.
Token for efficient comparison, assignment, and hashing of known strings.