1 #ifndef USD_NOTICE_FRAMEWORK_TRANSACTION_H
2 #define USD_NOTICE_FRAMEWORK_TRANSACTION_H
11 #include <pxr/usd/usd/common.h>
Predicate functor which indicates whether a notice can be captured during a transaction.
Definition: capturePredicate.h:29
static UNF_API CapturePredicate Default()
Create a predicate which return true for each notice type.
Convenient RAII object to consolidate and filter notices derived from UnfNotice::StageNotice within a...
Definition: transaction.h:21
UNF_API NoticeTransaction(const PXR_NS::UsdStageRefPtr &, CapturePredicate predicate=CapturePredicate::Default())
Create transaction from a UsdStage.
UNF_API BrokerPtr GetBroker()
Return associated Broker instance.
Definition: transaction.h:83
UNF_API NoticeTransaction(const BrokerPtr &, const CapturePredicateFunc &)
Create transaction from a Broker with a capture predicate function.
UNF_API NoticeTransaction(const PXR_NS::UsdStageRefPtr &, const CapturePredicateFunc &)
Create transaction from a UsdStage with a capture predicate function.
UNF_API NoticeTransaction(const NoticeTransaction &)=delete
Remove default copy constructor.
UNF_API NoticeTransaction & operator=(const NoticeTransaction &)=delete
Remove default assignment operator.
UNF_API NoticeTransaction(const BrokerPtr &, CapturePredicate predicate=CapturePredicate::Default())
Create transaction from a Broker.
virtual UNF_API ~NoticeTransaction()
Delete object and end transaction.
std::function< bool(const UnfNotice::StageNotice &)> CapturePredicateFunc
Convenient alias for function defining whether notice can be captured.
Definition: capturePredicate.h:16