HDK
|
#include "pxr/pxr.h"
#include "pxr/usd/sdf/api.h"
#include "pxr/usd/sdf/declareHandles.h"
#include "pxr/usd/sdf/specType.h"
#include "pxr/base/tf/registryManager.h"
#include "pxr/base/tf/type.h"
Go to the source code of this file.
Macros | |
#define | SDF_DECLARE_ABSTRACT_SPEC(SpecType, BaseSpecType) |
#define | SDF_DEFINE_ABSTRACT_SPEC(SchemaType, SpecType, BaseSpecType) |
#define | SDF_DECLARE_SPEC(SpecType, BaseSpecType) SDF_DECLARE_ABSTRACT_SPEC(SpecType, BaseSpecType) \ |
#define | SDF_DEFINE_SPEC(SchemaType, SpecTypeEnum, SpecType, BaseSpecType) |
#define | SDF_DECLARE_BASE_SPEC(SpecType) |
#define | SDF_DEFINE_BASE_SPEC(SchemaType, SpecType) |
#define SDF_DECLARE_ABSTRACT_SPEC | ( | SpecType, | |
BaseSpecType | |||
) |
Helper macros for implementing C++ spec classes corresponding to the various scene description spec types defined by Sdf. There are two macros that each C++ spec class must invoke, one in the class definition and one in the implementation .cpp file. For example:
<in MySpecType.h> class MySpecType : public MyBaseSpecType { SDF_DECLARE_SPEC(MySpecType, MyBaseSpecType); ... };
<in MySpecType.cpp> SDF_DEFINE_SPEC(MySchemaType, <SdfSpecType enum="" value>="">, MySpecType, MyBaseSpecType);
There are two sets of these macros, one for concrete spec types and one for 'abstract' spec types that only serve as a base class for concrete specs.
Definition at line 57 of file declareSpec.h.
#define SDF_DECLARE_BASE_SPEC | ( | SpecType | ) |
Definition at line 99 of file declareSpec.h.
#define SDF_DECLARE_SPEC | ( | SpecType, | |
BaseSpecType | |||
) | SDF_DECLARE_ABSTRACT_SPEC(SpecType, BaseSpecType) \ |
Definition at line 82 of file declareSpec.h.
#define SDF_DEFINE_ABSTRACT_SPEC | ( | SchemaType, | |
SpecType, | |||
BaseSpecType | |||
) |
Definition at line 69 of file declareSpec.h.
#define SDF_DEFINE_BASE_SPEC | ( | SchemaType, | |
SpecType | |||
) |
Definition at line 105 of file declareSpec.h.
#define SDF_DEFINE_SPEC | ( | SchemaType, | |
SpecTypeEnum, | |||
SpecType, | |||
BaseSpecType | |||
) |
Definition at line 85 of file declareSpec.h.