HDK
|
#include <conditionalAbortDiagnosticDelegate.h>
Protected Member Functions | |
virtual bool | _RuleMatcher (const TfDiagnosticBase &err, const std::vector< TfPatternMatcher > &stringPatternFilters, const std::vector< TfPatternMatcher > &codePathPatternFilters) |
Protected Member Functions inherited from TfDiagnosticMgr::Delegate | |
TF_API void | _UnhandledAbort () const |
A class that allows client application to instantiate a diagnostic delegate that can be used to abort operations for a non fatal USD error or warning based on immutable include exclude rules defined for this instance.
These rules are regex strings where case sensitive matching is done on error/warning text or the location of the code path where the error/warning occured. Note that these rules will be respected only during the lifetime of the delegate. Include Rules determine what errors or warnings will cause a fatal abort. Exclude Rules determine what errors or warnings matched from the Include Rules should not cause the fatal abort. Example: to abort on all errors and warnings coming from "*pxr*" codepath but not from "*ConditionalAbortDiagnosticDelegate*", a client can create the following delegate:
Definition at line 96 of file conditionalAbortDiagnosticDelegate.h.
USDUTILS_API UsdUtilsConditionalAbortDiagnosticDelegate::UsdUtilsConditionalAbortDiagnosticDelegate | ( | const UsdUtilsConditionalAbortDiagnosticDelegateErrorFilters & | includeFilters, |
const UsdUtilsConditionalAbortDiagnosticDelegateErrorFilters & | excludeFilters | ||
) |
Constructor to initialize conditionalAbortDiagnosticDelegate. Responsible for adding this delegate instance to TfDiagnosticMgr and also sets the includeFilters
and excludeFilters
|
virtual |
Handles the removal of this delegate from TfDiagnosticMgr.
|
delete |
|
delete |
|
protectedvirtual |
Helper to match err
against a given set of errorFilters
A client can override this to affect the behavior of the rule matcher.
Called when a TfError
is posted.
Implements TfDiagnosticMgr::Delegate.
|
overridevirtual |
Called when a TF_FATAL_ERROR
is issued (or a failed TF_AXIOM
).
Implements TfDiagnosticMgr::Delegate.
|
overridevirtual |
Called when a TF_STATUS()
is issued.
Implements TfDiagnosticMgr::Delegate.
|
overridevirtual |
Called when a TF_WARNING()
is issued.
Implements TfDiagnosticMgr::Delegate.
|
delete |