HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
siteUtils.h File Reference
+ Include dependency graph for siteUtils.h:

Go to the source code of this file.

Functions

PXR_NAMESPACE_OPEN_SCOPE
SdfSpecHandle 
SdfGetObjectAtPath (const SdfSite &site)
 
SdfPrimSpecHandle SdfGetPrimAtPath (const SdfSite &site)
 
SdfPropertySpecHandle SdfGetPropertyAtPath (const SdfSite &site)
 
bool SdfHasField (const SdfSite &site, const TfToken &field)
 
template<class T >
bool SdfHasField (const SdfSite &site, const TfToken &field, T *value)
 
const VtValue SdfGetField (const SdfSite &site, const TfToken &field)
 
template<class T >
SdfGetFieldAs (const SdfSite &site, const TfToken &field, const T &defaultValue=T())
 

Detailed Description

Convenience API for working with SdfSite.

These functions simply forward to the indicated functions on SdfLayer.

Definition in file siteUtils.h.

Function Documentation

const VtValue SdfGetField ( const SdfSite site,
const TfToken field 
)
inline

Definition at line 79 of file siteUtils.h.

template<class T >
T SdfGetFieldAs ( const SdfSite site,
const TfToken field,
const T &  defaultValue = T() 
)
inline

Definition at line 87 of file siteUtils.h.

PXR_NAMESPACE_OPEN_SCOPE SdfSpecHandle SdfGetObjectAtPath ( const SdfSite site)
inline

Definition at line 44 of file siteUtils.h.

SdfPrimSpecHandle SdfGetPrimAtPath ( const SdfSite site)
inline

Definition at line 51 of file siteUtils.h.

SdfPropertySpecHandle SdfGetPropertyAtPath ( const SdfSite site)
inline

Definition at line 58 of file siteUtils.h.

bool SdfHasField ( const SdfSite site,
const TfToken field 
)
inline

Definition at line 65 of file siteUtils.h.

template<class T >
bool SdfHasField ( const SdfSite site,
const TfToken field,
T *  value 
)
inline

Definition at line 72 of file siteUtils.h.