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...
 
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 29 of file UT_ErrorLog.h.

Constructor & Destructor Documentation

UT_ErrorLog::ErrorCallback::ErrorCallback ( )
inline

Definition at line 32 of file UT_ErrorLog.h.

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

The destructor automatically de-registers the callback.

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).


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