24 #ifndef PXR_USD_SDF_SITE_UTILS_H 25 #define PXR_USD_SDF_SITE_UTILS_H 34 #include "pxr/usd/sdf/site.h" 40 PXR_NAMESPACE_OPEN_SCOPE
44 SdfGetObjectAtPath(
const SdfSite& site)
46 return site.layer->GetObjectAtPath(site.path);
51 SdfGetPrimAtPath(
const SdfSite& site)
53 return site.layer->GetPrimAtPath(site.path);
58 SdfGetPropertyAtPath(
const SdfSite& site)
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);
93 PXR_NAMESPACE_CLOSE_SCOPE
95 #endif // PXR_USD_SDF_SITE_UTILS_H
An SdfSite is a simple representation of a location in a layer where opinions may possibly be found.
Token for efficient comparison, assignment, and hashing of known strings.
Provides a container which may hold any type, and provides introspection and iteration over array typ...