HDK
|
#include <error.h>
Public Member Functions | |
UsdValidationErrorSite ()=default | |
USDVALIDATION_API | UsdValidationErrorSite (const SdfLayerHandle &layer, const SdfPath &objectPath) |
USDVALIDATION_API | UsdValidationErrorSite (const UsdStagePtr &usdStage, const SdfPath &objectPath, const SdfLayerHandle &layer=SdfLayerHandle()) |
bool | IsValid () const |
bool | IsValidSpecInLayer () const |
bool | IsPrim () const |
bool | IsProperty () const |
const SdfPropertySpecHandle | GetPropertySpec () const |
const SdfPrimSpecHandle | GetPrimSpec () const |
const SdfLayerHandle & | GetLayer () const |
const UsdStagePtr & | GetStage () const |
UsdPrim | GetPrim () const |
UsdProperty | GetProperty () const |
bool | operator== (const UsdValidationErrorSite &other) const |
bool | operator!= (const UsdValidationErrorSite &other) const |
UsdValidationErrorSite is important information available from a ValidationError, which annotates the site where the Error was reported by a validation task.
An Error could be reported in a SdfLayer (in layer metadata, for example), or a UsdStage (in stage metadata, for example) or a Prim within a stage, or a property of a prim.
|
default |
USDVALIDATION_API UsdValidationErrorSite::UsdValidationErrorSite | ( | const SdfLayerHandle & | layer, |
const SdfPath & | objectPath | ||
) |
Initialize an UsdValidationErrorSite using a layer
and an objectPath
.
Object Path here could be a prim or a property spec path.
Note that to identify a layer metadata, objectPath can be set as the pseudoRoot.
USDVALIDATION_API UsdValidationErrorSite::UsdValidationErrorSite | ( | const UsdStagePtr & | usdStage, |
const SdfPath & | objectPath, | ||
const SdfLayerHandle & | layer = SdfLayerHandle() |
||
) |
Initialize an UsdValidationErrorSite using a usdStage
and an objectPath
.
An option layer
can also be provided to provide information about a specific layer the erroring objectPath
is found in the property stack.
Object Path here could be a prim path or a property path. Note that to identify stage's root layer metadata, objectPath can be set as the pseudoRoot.
|
inline |
|
inline |
Returns UsdPrim associated with this UsdValidationErrorSite, that is when UsdStage is present and objectPath represents a prim path on this stage; if not, an invalid prim is returned.
|
inline |
Returns the SdfPrimSpecHandle associated with this ValidationErrorSite's layer and objectPath.
Returns an invalid SdfPrimSpecHandle if no valid prim spec is found, or when UsdValidationErrorSite instance doesn't have a layer.
|
inline |
Returns UsdProperty associated with this UsdValidationErrorSite, that is when UsdStage is present and objectPath represents a property path on this stage; if not, an invalid property is returned.
|
inline |
Returns the SdfPropertySpecHandle associated with this ValidationErrorSite's layer and objectPath.
Returns an invalid SdfPropertySpecHandle if no valid property spec is found, or when UsdValidationErrorSite instance doesn't have a layer.
|
inline |
Returns the UsdStage associated with this UsdValidationErrorSite; nullptr othewrise.
|
inline |
Returns true if UsdValidationErrorSite represents a prim on a stage, false otherwise.
|
inline |
Returns true if UsdValidationErrorSite represents a property on a stage, false otherwise.
|
inline |
Returns true if UsdValidationErrorSite instance can either point to a prim or property spec in a layer or a prim or property on a stage.
|
inline |
|
inline |
Returns false if other
UsdValidationErrorSite has same valued members as this UsdValidationErrorSite, true otherwise.
|
inline |
Returns true if other
UsdValidationErrorSite has same valued members as this UsdValidationErrorSite, false otherwise.