|
Represents a mapping from an Ndr Property type to Sdf type. More...
#include <sdfTypeIndicator.h>
Public Member Functions | |
NDR_API | NdrSdfTypeIndicator () |
Default constructor. | |
NDR_API | NdrSdfTypeIndicator (const SdfValueTypeName &sdfType, const TfToken &ndrType, bool hasSdfTypeMapping=true) |
Constructor. | |
NDR_API TfToken | GetNdrType () const |
Gets the original Ndr property type associated with the represented Ndr property type to Sdf type mapping. | |
NDR_API bool | HasSdfType () const |
Whether an exact Sdf type exists for the represented Ndr property type to Sdf type mapping. | |
NDR_API SdfValueTypeName | GetSdfType () const |
Gets the Sdf type associated with the represented Ndr property type to Sdf type mapping. | |
NDR_API bool | operator== (const NdrSdfTypeIndicator &rhs) const |
Equality operation. | |
NDR_API bool | operator!= (const NdrSdfTypeIndicator &rhs) const |
Inequality operation. | |
Represents a mapping from an Ndr Property type to Sdf type.
If an exact mapping exists from Ndr Property type to Sdf type, HasSdfType() will return true, and GetSdfType() will return the Sdf type resulting from the conversion. GetNdrType() will return the original Ndr Property type.
If a mapping doesn't exist from Ndr Property type to Sdf type, HasSdfType() will return false, and GetSdfType() will return either SdfValueTypeNames->TokenArray or SdfValueTypeNames->Token. GetNdrType() will return the original Ndr Property type.
Definition at line 31 of file sdfTypeIndicator.h.
NDR_API NdrSdfTypeIndicator | ( | ) |
Default constructor.
NDR_API NdrSdfTypeIndicator | ( | const SdfValueTypeName & | sdfType, |
const TfToken & | ndrType, | ||
bool | hasSdfTypeMapping = true |
||
) |
Constructor.
The sdfType must be TokenArray or Token if hasSdfTypeMapping is set to false.
NDR_API TfToken GetNdrType | ( | ) | const |
Gets the original Ndr property type associated with the represented Ndr property type to Sdf type mapping.
NDR_API SdfValueTypeName GetSdfType | ( | ) | const |
Gets the Sdf type associated with the represented Ndr property type to Sdf type mapping.
If there is no valid Sdf type, either SdfValueTypeNames->TokenArray or SdfValueTypeNames->Token is returned.
NDR_API bool HasSdfType | ( | ) | const |
Whether an exact Sdf type exists for the represented Ndr property type to Sdf type mapping.
NDR_API bool operator!= | ( | const NdrSdfTypeIndicator & | rhs | ) | const |
Inequality operation.
NDR_API bool operator== | ( | const NdrSdfTypeIndicator & | rhs | ) | const |
Equality operation.