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

Functor to handle errors printed out using the mantra* methods. More...

#include <UT_ErrorLog.h>

Public Member Functions

 ErrorCallback ()
 
virtual ~ErrorCallback ()
 The destructor automatically de-registers the callback. More...
 
 ErrorCallback (const ErrorCallback &)=delete
 
ErrorCallbackoperator= (const ErrorCallback &)=delete
 
virtual bool filterError (int level, const char *message, const char *prefix)=0
 

Detailed Description

Functor to handle errors printed out using the mantra* methods.

Definition at line 36 of file UT_ErrorLog.h.

Constructor & Destructor Documentation

UT_ErrorLog::ErrorCallback::ErrorCallback ( )
inline

Definition at line 39 of file UT_ErrorLog.h.

virtual UT_ErrorLog::ErrorCallback::~ErrorCallback ( )
virtual

The destructor automatically de-registers the callback.

UT_ErrorLog::ErrorCallback::ErrorCallback ( const ErrorCallback )
delete

Member Function Documentation

virtual bool UT_ErrorLog::ErrorCallback::filterError ( int  level,
const char *  message,
const char *  prefix 
)
pure virtual

If the method returns true, the error will not be printed out by the built-in error handler. If it returns false, processing continues in the normal way. The level is the verbosity level of the error. The built-in process will print out: ("%s%s", prefix, message).

ErrorCallback& UT_ErrorLog::ErrorCallback::operator= ( const ErrorCallback )
delete

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