24 #ifndef PXR_USD_USD_UTILS_COALESCING_DIAGNOSTIC_DELEGATE_H 25 #define PXR_USD_USD_UTILS_COALESCING_DIAGNOSTIC_DELEGATE_H 36 #include "pxr/usd/usdUtils/api.h" 44 #include <tbb/concurrent_queue.h> 46 PXR_NAMESPACE_OPEN_SCOPE
52 size_t sourceLineNumber;
53 std::string sourceFunction;
54 std::string sourceFileName;
59 TfCallContext context;
60 std::string commentary;
68 std::vector<UsdUtilsCoalescingDiagnosticDelegateUnsharedItem> unsharedItems;
74 typedef std::vector<UsdUtilsCoalescingDiagnosticDelegateItem>
104 virtual void IssueFatalError(
const TfCallContext&,
const std::string &)
override;
130 tbb::concurrent_queue<TfDiagnosticBase*> _diagnostics;
133 PXR_NAMESPACE_CLOSE_SCOPE
135 #endif // PXR_USD_USD_UTILS_COALESCING_DIAGNOSTIC_DELEGATE_H USDUTILS_API void DumpCoalescedDiagnostics(std::ostream &ostr)
Print all pending diagnostics in a coalesced form to ostr.
USDUTILS_API std::vector< std::unique_ptr< TfDiagnosticBase > > TakeUncoalescedDiagnostics()
Get all pending diagnostics without any coalescing.
An item used in coalesced results, containing a shared component: the file/function/line number,...
virtual USDUTILS_API void IssueWarning(const TfWarning &) override
Called when a TF_WARNING() is issued.
virtual USDUTILS_API void IssueError(const TfError &) override
Methods that implement the interface provided in TfDiagnosticMgr::Delegate.
virtual USDUTILS_API void IssueFatalError(const TfCallContext &, const std::string &) override
Called when a TF_FATAL_ERROR is issued (or a failed TF_AXIOM).
The unshared component in a coalesced result.
The shared component in a coalesced result This type can be thought of as the key by which we coalesc...
A class which collects warnings and statuses from the Tf diagnostic manager system in a thread safe m...
Represents an object that contains information about a status message.
Represents an object that contains error information.
USDUTILS_API void DumpUncoalescedDiagnostics(std::ostream &ostr)
Print all pending diagnostics without any coalescing to ostr.
std::vector< UsdUtilsCoalescingDiagnosticDelegateItem > UsdUtilsCoalescingDiagnosticDelegateVector
A vector of coalesced results, each containing a shared component, the file/function/line number,...
USDUTILS_API UsdUtilsCoalescingDiagnosticDelegateVector TakeCoalescedDiagnostics()
Get all pending diagnostics in a coalesced form.
virtual USDUTILS_API void IssueStatus(const TfStatus &) override
Called when a TF_STATUS() is issued.
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...