Loading...
Searching...
No Matches
SdfSpecTypeRegistration Class Reference

Provides functions to register spec types with the runtime typing system used to cast between C++ spec types. More...

#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.
 
template<class SchemaType , class SpecType >
static void RegisterAbstractSpecType ()
 Registers the C++ type T as an abstract spec class.
 

Detailed Description

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.

Member Function Documentation

◆ RegisterAbstractSpecType()

static void RegisterAbstractSpecType ( )
inlinestatic

Registers the C++ type T as an abstract spec class.

Definition at line 68 of file specType.h.

◆ RegisterSpecType()

static void RegisterSpecType ( SdfSpecType  specTypeEnum)
inlinestatic

Registers the C++ type T as a concrete spec class.

Definition at line 61 of file specType.h.


The documentation for this class was generated from the following file: