7#ifndef PXR_USD_SDF_SITE_UTILS_H
8#define PXR_USD_SDF_SITE_UTILS_H
17#include "pxr/usd/sdf/site.h"
23PXR_NAMESPACE_OPEN_SCOPE
27SdfGetObjectAtPath(
const SdfSite& site)
29 return site.layer->GetObjectAtPath(site.path);
34SdfGetPrimAtPath(
const SdfSite& site)
36 return site.layer->GetPrimAtPath(site.path);
41SdfGetPropertyAtPath(
const SdfSite& site)
43 return site.layer->GetPropertyAtPath(site.path);
50 return site.layer->HasField(site.path, field);
57 return site.layer->HasField(site.path, field, value);
64 return site.layer->GetField(site.path, field);
71 const T& defaultValue = T())
73 return site.layer->GetFieldAs<T>(site.path, field, defaultValue);
76PXR_NAMESPACE_CLOSE_SCOPE
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...