8 #ifndef PXR_USD_VALIDATION_USD_VALIDATION_ERROR_H
9 #define PXR_USD_VALIDATION_USD_VALIDATION_ERROR_H
83 const SdfLayerHandle &layer = SdfLayerHandle());
96 if (!_layer || _objectPath.
IsEmpty()) {
99 return _layer->HasSpec(_objectPath);
125 return SdfPropertySpecHandle();
127 return _layer->GetPropertyAtPath(_objectPath);
138 return SdfPrimSpecHandle();
140 return _layer->GetPrimAtPath(_objectPath);
163 return _usdStage->GetPrimAtPath(_objectPath);
174 return _usdStage->GetPropertyAtPath(_objectPath);
183 return (_layer == other._layer) && (_usdStage == other._usdStage)
184 && (_objectPath == other._objectPath);
191 return !(*
this == other);
195 UsdStagePtr _usdStage;
196 SdfLayerHandle _layer;
253 const std::string &errorMsg,
258 return (_name == other._name) && (_errorType == other._errorType)
259 && (_errorSites == other._errorSites)
260 && (_errorMsg == other._errorMsg)
261 && (_validator == other._validator);
266 return !(*
this == other);
278 return std::move(_name);
299 return std::move(_errorSites);
360 const std::vector<const UsdValidationFixer *>
GetFixers()
const;
372 const std::vector<const UsdValidationFixer *>
412 std::string _errorMsg;
419 #endif // PXR_USD_VALIDATION_USD_VALIDATION_ERROR_H
USDVALIDATION_API const std::vector< const UsdValidationFixer * > GetFixersByKeywords(const TfTokenVector &keywords) const
TfToken GetName()&&
Returns the name token of the UsdValidationError by-value.
USDVALIDATION_API TfToken GetIdentifier() const
UsdProperty GetProperty() const
#define PXR_NAMESPACE_OPEN_SCOPE
bool IsValidSpecInLayer() const
const UsdStagePtr & GetStage() const
bool operator==(const UsdValidationError &other) const
bool IsEmpty() const noexcept
Returns true if this is the empty path (SdfPath::EmptyPath()).
UsdValidationErrorSites GetSites()&&
const SdfPrimSpecHandle GetPrimSpec() const
const TfToken & GetName() const &
Returns the name token of the UsdValidationError.
USDVALIDATION_API UsdValidationError()
A default constructed UsdValidationError signifies no error.
const std::string & GetMessage() const
Returns the message associated with this UsdValidationError.
GLenum GLuint GLint GLint layer
#define USDVALIDATION_API
bool operator==(const UsdValidationErrorSite &other) const
USDVALIDATION_API const std::vector< const UsdValidationFixer * > GetFixersByErrorName() const
bool operator!=(const UsdValidationErrorSite &other) const
const SdfLayerHandle & GetLayer() const
USDVALIDATION_API const std::vector< const UsdValidationFixer * > GetFixers() const
const UsdValidationErrorSites & GetSites() const &
USDVALIDATION_API std::string GetErrorAsString() const
Returns UsdValidationErrorType and ErrorMessage concatenated as a string.
std::vector< TfToken > TfTokenVector
Convenience types.
GLuint const GLchar * name
USDVALIDATION_API const UsdValidationFixer * GetFixerByNameAndErrorName(const TfToken &name) const
std::vector< UsdValidationErrorSite > UsdValidationErrorSites
const VtValue & GetData() const
bool IsValid() const
Return true if this is a valid object, false otherwise.
USDVALIDATION_API const UsdValidationFixer * GetFixerByName(const TfToken &name) const
#define PXR_NAMESPACE_CLOSE_SCOPE
const UsdValidationValidator * GetValidator() const
const SdfPropertySpecHandle GetPropertySpec() const
UsdValidationErrorType GetType() const
UsdValidationErrorSite()=default
bool operator!=(const UsdValidationError &other) const