8 #ifndef PXR_USD_VALIDATION_USD_VALIDATION_FIXER_H
9 #define PXR_USD_VALIDATION_USD_VALIDATION_FIXER_H
86 const TfToken &
name,
const std::string &description,
102 return std::move(_name);
114 return std::move(_description);
126 return std::move(_errorName);
142 return std::move(_keywords);
176 std::string _description;
185 #endif // PXR_USD_VALIDATION_USD_VALIDATION_FIXER_H
std::string GetDescription()&&
Return the description of this fixer by-value.
USDVALIDATION_API bool CanApplyFix(const UsdValidationError &error, const UsdEditTarget &editTarget, const UsdTimeCode &timeCode=UsdTimeCode::Default()) const
USDVALIDATION_API bool IsAssociatedWithErrorName(const TfToken &errorName) const
Returns true if this fixer is associated with the given error name.
static constexpr UsdTimeCode Default()
#define PXR_NAMESPACE_OPEN_SCOPE
~UsdValidationFixer()=default
const TfTokenVector & GetKeywords() const &
Returns the keywords associated with this fixer.
TfTokenVector GetKeywords()&&
Return the keywords associated with this fixer by-value.
UsdValidationFixer(const UsdValidationFixer &)=default
#define USDVALIDATION_API
USDVALIDATION_API bool HasKeyword(const TfToken &keyword) const
Returns true if this fixer has the given keyword.
std::function< bool(const UsdValidationError &e, const UsdEditTarget &editTarget, const UsdTimeCode &timeCode)> FixerCanApplyFn
USDVALIDATION_API bool ApplyFix(const UsdValidationError &error, const UsdEditTarget &editTarget, const UsdTimeCode &timeCode=UsdTimeCode::Default()) const
const std::string & GetDescription() const &
Returns the description of this fixer.
std::vector< TfToken > TfTokenVector
Convenience types.
GLuint const GLchar * name
UsdValidationFixer & operator=(const UsdValidationFixer &)=default
const TfToken & GetName() const &
Returns the name of this fixer.
const TfToken & GetErrorName() const &
Returns the error name that this fixer can fix, if any.
TfToken GetErrorName()&&
Returns the error name that this fixer can fix, if any, by-value.
#define PXR_NAMESPACE_CLOSE_SCOPE
std::function< bool(const UsdValidationError &e, const UsdEditTarget &editTarget, const UsdTimeCode &timeCode)> FixerImplFn
TfToken GetName()&&
Return the name of this fixer by-value.