24 #ifndef PXR_USD_USD_UTILS_CONDITIONAL_ABORT_DIAGNOSTIC_DELEGATE_H
25 #define PXR_USD_USD_UTILS_CONDITIONAL_ABORT_DIAGNOSTIC_DELEGATE_H
28 #include "pxr/usd/usdUtils/api.h"
34 PXR_NAMESPACE_OPEN_SCOPE
50 const std::vector<std::string>& stringFilters,
51 const std::vector<std::string>& codePathFilters);
53 const std::vector<std::string>& GetStringFilters()
const {
54 return _stringFilters;
57 const std::vector<std::string>& GetCodePathFilters()
const {
58 return _codePathFilters;
62 void SetStringFilters(
const std::vector<std::string>& stringFilters);
64 void SetCodePathFilters(
const std::vector<std::string>& codePathFilters);
66 std::vector<std::string> _stringFilters;
67 std::vector<std::string> _codePathFilters;
116 UsdUtilsConditionalAbortDiagnosticDelegate() =
delete;
117 UsdUtilsConditionalAbortDiagnosticDelegate(
118 const UsdUtilsConditionalAbortDiagnosticDelegate& delegate) =
delete;
119 UsdUtilsConditionalAbortDiagnosticDelegate& operator=(
120 const UsdUtilsConditionalAbortDiagnosticDelegate& delegate) =
delete;
126 const std::string &msg)
override;
133 const std::vector<TfPatternMatcher> _includePatternStringFilters;
134 const std::vector<TfPatternMatcher> _includePatternCodePathFilters;
135 const std::vector<TfPatternMatcher> _excludePatternStringFilters;
136 const std::vector<TfPatternMatcher> _excludePatternCodePathFilters;
142 const std::vector<TfPatternMatcher>& stringPatternFilters,
143 const std::vector<TfPatternMatcher>& codePathPatternFilters);
147 PXR_NAMESPACE_CLOSE_SCOPE
void IssueStatus(const TfStatus &status) override
Called when a TF_STATUS() is issued.
virtual USDUTILS_API ~UsdUtilsConditionalAbortDiagnosticDelegate()
Handles the removal of this delegate from TfDiagnosticMgr.
void IssueError(const TfError &err) override
Called when a TfError is posted.
Represents the base class of an object representing a diagnostic message.
void IssueFatalError(const TfCallContext &ctx, const std::string &msg) override
Called when a TF_FATAL_ERROR is issued (or a failed TF_AXIOM).
Represents an object that contains information about a status message.
Represents an object that contains error information.
void IssueWarning(const TfWarning &warning) override
Called when a TF_WARNING() is issued.
Class for matching regular expressions.
virtual bool _RuleMatcher(const TfDiagnosticBase &err, const std::vector< TfPatternMatcher > &stringPatternFilters, const std::vector< TfPatternMatcher > &codePathPatternFilters)
Helper to match err against a given set of errorFilters A client can override this to affect the beha...
A class that allows client application to instantiate a diagnostic delegate that can be used to abort...
Represents an object that contains information about a warning.
One may set a delegate with the TfDiagnosticMgr which will be called to respond to errors and diagnos...
A class which represents the inclusion exclusion filters on which errors will be matched stringFilter...