Loading...
Searching...
No Matches
sdfTypeIndicator.h
Go to the documentation of this file.
1//
2// Copyright 2025 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7
8#ifndef PXR_USD_SDR_SDF_TYPE_INDICATOR_H
9#define PXR_USD_SDR_SDF_TYPE_INDICATOR_H
10
12
13#include "pxr/pxr.h"
14#include "pxr/usd/sdr/api.h"
15#include "pxr/base/tf/token.h"
16#include "pxr/usd/sdf/valueTypeName.h"
17
18PXR_NAMESPACE_OPEN_SCOPE
19
33{
34public:
36 SDR_API
38
41 SDR_API
43 const SdfValueTypeName& sdfType,
44 const TfToken& sdrType,
45 bool hasSdfTypeMapping = true);
46
49 SDR_API
51
54 SDR_API
55 bool HasSdfType() const;
56
60 SDR_API
62
64 SDR_API
65 bool operator==(const SdrSdfTypeIndicator &rhs) const;
66
68 SDR_API
69 bool operator!=(const SdrSdfTypeIndicator &rhs) const;
70
71private:
72 SdfValueTypeName _sdfType;
73 TfToken _sdrType;
74 bool _hasSdfTypeMapping;
75};
76
77PXR_NAMESPACE_CLOSE_SCOPE
78
79#endif // PXR_USD_SDR_SDF_TYPE_INDICATOR_H
Represents a value type name, i.e.
Definition: valueTypeName.h:72
Represents a mapping from an Sdr Property type to Sdf type.
SDR_API TfToken GetSdrType() const
Gets the original Sdr property type associated with the represented Sdr property type to Sdf type map...
SDR_API bool HasSdfType() const
Whether an exact Sdf type exists for the represented Sdr property type to Sdf type mapping.
SDR_API SdrSdfTypeIndicator(const SdfValueTypeName &sdfType, const TfToken &sdrType, bool hasSdfTypeMapping=true)
Constructor.
SDR_API bool operator==(const SdrSdfTypeIndicator &rhs) const
Equality operation.
SDR_API bool operator!=(const SdrSdfTypeIndicator &rhs) const
Inequality operation.
SDR_API SdfValueTypeName GetSdfType() const
Gets the Sdf type associated with the represented Sdr property type to Sdf type mapping.
SDR_API SdrSdfTypeIndicator()
Default constructor.
Token for efficient comparison, assignment, and hashing of known strings.
Definition: token.h:71
TfToken class for efficient string referencing and hashing, plus conversions to and from stl string c...