8 #ifndef PXR_USD_VALIDATION_USD_VALIDATION_ERROR_H
9 #define PXR_USD_VALIDATION_USD_VALIDATION_ERROR_H
82 const SdfLayerHandle &layer = SdfLayerHandle());
95 if (!_layer || _objectPath.
IsEmpty()) {
98 return _layer->HasSpec(_objectPath);
124 return SdfPropertySpecHandle();
126 return _layer->GetPropertyAtPath(_objectPath);
137 return SdfPrimSpecHandle();
139 return _layer->GetPrimAtPath(_objectPath);
162 return _usdStage->GetPrimAtPath(_objectPath);
173 return _usdStage->GetPropertyAtPath(_objectPath);
182 return (_layer == other._layer) && (_usdStage == other._usdStage)
183 && (_objectPath == other._objectPath);
190 return !(*
this == other);
194 UsdStagePtr _usdStage;
195 SdfLayerHandle _layer;
237 const std::string &errorMsg);
241 return (_name == other._name) && (_errorType == other._errorType)
242 && (_errorSites == other._errorSites)
243 && (_errorMsg == other._errorMsg)
244 && (_validator == other._validator);
249 return !(*
this == other);
261 return std::move(_name);
282 return std::move(_errorSites);
349 std::string _errorMsg;
359 #endif // PXR_USD_VALIDATION_USD_VALIDATION_ERROR_H
TfToken GetName()&&
Returns the name token of the UsdValidationError by-value.
USDVALIDATION_API TfToken GetIdentifier() const
UsdProperty GetProperty() const
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
bool operator!=(const UsdValidationErrorSite &other) const
const SdfLayerHandle & GetLayer() const
const UsdValidationErrorSites & GetSites() const &
USDVALIDATION_API std::string GetErrorAsString() const
Returns UsdValidationErrorType and ErrorMessage concatenated as a string.
GLuint const GLchar * name
std::vector< UsdValidationErrorSite > UsdValidationErrorSites
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
bool IsValid() const
Return true if this is a valid object, false otherwise.
#define PXR_NAMESPACE_CLOSE_SCOPE
const UsdValidationValidator * GetValidator() const
const SdfPropertySpecHandle GetPropertySpec() const
UsdValidationErrorType GetType() const
UsdValidationErrorSite()=default
bool operator!=(const UsdValidationError &other) const