This document is for a version of USD that is under development. See this page for the current release.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
NdrSdfTypeIndicator Class Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ NdrSdfTypeIndicator() [1/2]

NDR_API NdrSdfTypeIndicator ( )

Default constructor.

◆ NdrSdfTypeIndicator() [2/2]

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.

Member Function Documentation

◆ GetNdrType()

NDR_API TfToken GetNdrType ( ) const

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

◆ GetSdfType()

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.

◆ HasSdfType()

NDR_API bool HasSdfType ( ) const

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

◆ operator!=()

NDR_API bool operator!= ( const NdrSdfTypeIndicator rhs) const

Inequality operation.

◆ operator==()

NDR_API bool operator== ( const NdrSdfTypeIndicator rhs) const

Equality operation.


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