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