HDK
|
#include <specType.h>
Static Public Member Functions | |
template<class SchemaType , class SpecType > | |
static void | RegisterSpecType (SdfSpecType specTypeEnum) |
Registers the C++ type T as a concrete spec class. More... | |
template<class SchemaType , class SpecType > | |
static void | RegisterAbstractSpecType () |
Registers the C++ type T as an abstract spec class. More... | |
Provides functions to register spec types with the runtime typing system used to cast between C++ spec types. Implementations of C++ spec types should use as follows:
For a concrete spec type that corresponds to a specific SdfSpecType: TF_REGISTRY_FUNCTION(SdfSpecTypeRegistration) { SdfSpecTypeRegistration::RegisterSpecType<MyPrimSpec>(); }
For an abstract spec type that has no corresponding SdfSpecType: TF_REGISTRY_FUNCTION(SdfSpecTypeRegistration) { SdfSpecTypeRegistration::RegisterAbstractSpecType<MyPropertySpec>(); }
Definition at line 56 of file specType.h.
|
inlinestatic |
Registers the C++ type T as an abstract spec class.
Definition at line 68 of file specType.h.
|
inlinestatic |
Registers the C++ type T as a concrete spec class.
Definition at line 61 of file specType.h.