|
A class which collects warnings and statuses from the Tf diagnostic manager system in a thread safe manner. More...
#include <coalescingDiagnosticDelegate.h>
Public Member Functions | |
virtual USDUTILS_API void | IssueError (const TfError &) override |
Methods that implement the interface provided in TfDiagnosticMgr::Delegate. | |
virtual USDUTILS_API void | IssueStatus (const TfStatus &) override |
Called when a TF_STATUS() is issued. | |
virtual USDUTILS_API void | IssueWarning (const TfWarning &) override |
Called when a TF_WARNING() is issued. | |
virtual USDUTILS_API void | IssueFatalError (const TfCallContext &, const std::string &) override |
Called when a TF_FATAL_ERROR is issued (or a failed TF_AXIOM ). | |
USDUTILS_API void | DumpCoalescedDiagnostics (std::ostream &ostr) |
Print all pending diagnostics in a coalesced form to ostr . | |
USDUTILS_API void | DumpUncoalescedDiagnostics (std::ostream &ostr) |
Print all pending diagnostics without any coalescing to ostr . | |
USDUTILS_API UsdUtilsCoalescingDiagnosticDelegateVector | TakeCoalescedDiagnostics () |
Get all pending diagnostics in a coalesced form. | |
USDUTILS_API std::vector< std::unique_ptr< TfDiagnosticBase > > | TakeUncoalescedDiagnostics () |
Get all pending diagnostics without any coalescing. | |
virtual void | IssueError (TfError const &err)=0 |
Called when a TfError is posted. | |
virtual void | IssueFatalError (TfCallContext const &context, std::string const &msg)=0 |
Called when a TF_FATAL_ERROR is issued (or a failed TF_AXIOM ). | |
virtual void | IssueStatus (TfStatus const &status)=0 |
Called when a TF_STATUS() is issued. | |
virtual void | IssueWarning (TfWarning const &warning)=0 |
Called when a TF_WARNING() is issued. | |
Additional Inherited Members | |
Protected Member Functions inherited from TfDiagnosticMgr::Delegate | |
TF_API void | _UnhandledAbort () const |
Abort the program, but avoid the session logging mechanism. | |
A class which collects warnings and statuses from the Tf diagnostic manager system in a thread safe manner.
This class allows clients to get both the unfiltered results, as well as a compressed view which deduplicates diagnostic events by their source line number, function and file from which they occurred.
Definition at line 67 of file coalescingDiagnosticDelegate.h.
USDUTILS_API void DumpCoalescedDiagnostics | ( | std::ostream & | ostr | ) |
Print all pending diagnostics in a coalesced form to ostr
.
USDUTILS_API void DumpUncoalescedDiagnostics | ( | std::ostream & | ostr | ) |
Print all pending diagnostics without any coalescing to ostr
.
|
overridevirtual |
Methods that implement the interface provided in TfDiagnosticMgr::Delegate.
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.
USDUTILS_API UsdUtilsCoalescingDiagnosticDelegateVector TakeCoalescedDiagnostics | ( | ) |
Get all pending diagnostics in a coalesced form.
USDUTILS_API std::vector< std::unique_ptr< TfDiagnosticBase > > TakeUncoalescedDiagnostics | ( | ) |
Get all pending diagnostics without any coalescing.