All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SdfSpecTypeRegistration Class Reference

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

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...
 

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

static void RegisterAbstractSpecType ( )
inlinestatic

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

Definition at line 68 of file specType.h.

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: