HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TfDiagnosticMgr::Delegate Class Referenceabstract

#include <diagnosticMgr.h>

+ Inheritance diagram for TfDiagnosticMgr::Delegate:

Public Member Functions

virtual TF_API ~Delegate ()=0
 
virtual void IssueError (TfError const &err)=0
 Called when a TfError is posted. More...
 
virtual void IssueFatalError (TfCallContext const &context, std::string const &msg)=0
 
virtual void IssueStatus (TfStatus const &status)=0
 Called when a TF_STATUS() is issued. More...
 
virtual void IssueWarning (TfWarning const &warning)=0
 Called when a TF_WARNING() is issued. More...
 

Protected Member Functions

TF_API void _UnhandledAbort () const
 

Detailed Description

One may set a delegate with the TfDiagnosticMgr which will be called to respond to errors and diagnostics.

Note
None of the methods in TfDiagnosticMgr::Delegate can be reentrant.

Practically speaking, this means they cannot invoke:

  • TF_ERROR
  • TF_RUNTIME_ERROR
  • TF_CODING_ERROR
  • TF_WARN
  • TF_STATUS

For a more complete list, see diagnostic.h

Definition at line 128 of file diagnosticMgr.h.

Constructor & Destructor Documentation

virtual TF_API TfDiagnosticMgr::Delegate::~Delegate ( )
pure virtual

Member Function Documentation

TF_API void TfDiagnosticMgr::Delegate::_UnhandledAbort ( ) const
protected

Abort the program, but avoid the session logging mechanism. This is intended to be used for fatal error cases where any information has already been logged.

virtual void TfDiagnosticMgr::Delegate::IssueError ( TfError const &  err)
pure virtual
virtual void TfDiagnosticMgr::Delegate::IssueFatalError ( TfCallContext const &  context,
std::string const &  msg 
)
pure virtual

Called when a TF_FATAL_ERROR is issued (or a failed TF_AXIOM).

Implemented in UsdUtilsConditionalAbortDiagnosticDelegate, and UsdUtilsCoalescingDiagnosticDelegate.

virtual void TfDiagnosticMgr::Delegate::IssueStatus ( TfStatus const &  status)
pure virtual
virtual void TfDiagnosticMgr::Delegate::IssueWarning ( TfWarning const &  warning)
pure virtual

Called when a TF_WARNING() is issued.

Implemented in UsdUtilsConditionalAbortDiagnosticDelegate, and UsdUtilsCoalescingDiagnosticDelegate.


The documentation for this class was generated from the following file: