Loading...
Searching...
No Matches
SdrSdfTypeIndicator Class Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SdrSdfTypeIndicator() [1/2]

SDR_API SdrSdfTypeIndicator ( )

Default constructor.

◆ SdrSdfTypeIndicator() [2/2]

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.

Member Function Documentation

◆ GetSdfType()

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.

◆ GetSdrType()

SDR_API TfToken GetSdrType ( ) const

Gets the original Sdr property type associated with the represented Sdr property type to Sdf type mapping.

◆ HasSdfType()

SDR_API bool HasSdfType ( ) const

Whether an exact Sdf type exists for the represented Sdr property type to Sdf type mapping.

◆ operator!=()

SDR_API bool operator!= ( const SdrSdfTypeIndicator rhs) const

Inequality operation.

◆ operator==()

SDR_API bool operator== ( const SdrSdfTypeIndicator rhs) const

Equality operation.


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