HDK
|
#include <pathExpression.h>
Objects of this class represent a logical expression syntax tree consisting of SdfPath matching patterns (with optionally embedded predicate expressions) joined by the set-algebraic operators +
(union), &
(intersection), -
(difference), ~
(complement) and an implied-union operator represented by two subexpressions joined by whitespace.
An SdfPathExpression can be constructed from a string, which will parse the string into an expression object. The syntax for an expression is as follows:
The fundamental building blocks are path patterns and expression references. A path pattern is similar to an SdfPath, but it may contain glob-style wild-card characters, embedded brace-enclosed predicate expressions (see SdfPredicateExpression) and //
elements indicating arbitrary levels of prim hierarchy. For example, consider /foo//bar