24 #ifndef PXR_USD_SDF_SITE_UTILS_H
25 #define PXR_USD_SDF_SITE_UTILS_H
46 return site.
layer->GetObjectAtPath(site.
path);
53 return site.
layer->GetPrimAtPath(site.
path);
60 return site.
layer->GetPropertyAtPath(site.
path);
67 return site.
layer->HasField(site.
path, field);
74 return site.
layer->HasField(site.
path, field, value);
81 return site.
layer->GetField(site.
path, field);
88 const T& defaultValue =
T())
90 return site.
layer->GetFieldAs<
T>(site.
path, field, defaultValue);
95 #endif // PXR_USD_SDF_SITE_UTILS_H
const VtValue SdfGetField(const SdfSite &site, const TfToken &field)
PXR_NAMESPACE_OPEN_SCOPE SdfSpecHandle SdfGetObjectAtPath(const SdfSite &site)
SdfPropertySpecHandle SdfGetPropertyAtPath(const SdfSite &site)
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
T SdfGetFieldAs(const SdfSite &site, const TfToken &field, const T &defaultValue=T())
#define PXR_NAMESPACE_CLOSE_SCOPE
SdfPrimSpecHandle SdfGetPrimAtPath(const SdfSite &site)
bool SdfHasField(const SdfSite &site, const TfToken &field)