Open Inventor Reference
|
Debug error handling. More...
#include <Inventor/errors/SoDebugError.h>
Public Types | |
enum | Severity { ERROR, WARNING, INFO } |
Public Member Functions | |
virtual SoType | getTypeId () const |
Returns type identifier for error instance. | |
SoDebugError::Severity | getSeverity () const |
Returns severity of error (for use by handlers) | |
Static Public Member Functions | |
static void | setHandlerCallback (SoErrorCB *cb, void *data) |
Sets/returns handler callback for SoDebugError class. | |
static SoErrorCB * | getHandlerCallback () |
Sets/returns handler callback for SoDebugError class. | |
static void * | getHandlerData () |
Sets/returns handler callback for SoDebugError class. | |
static SoType | getClassTypeId () |
Returns type identifier for SoDebugError class. | |
static void | post (const char *methodName, const char *formatString...) |
Posts an error. | |
static void | postWarning (const char *methodName, const char *formatString...) |
Posts a warning. | |
static void | postInfo (const char *methodName, const char *formatString...) |
Posts an informational (non-error) message. | |
static void | initClass () |
Initializes SoDebugError class. | |
Protected Member Functions | |
virtual SoErrorCB * | getHandler (void *&data) const |
Returns handler callback (and data) to use for a given instance. | |
virtual | ~SoDebugError () |
SoDebugError is used for all errors reported from the debugging version of the Inventor library. These errors are typically programmer errors, such as passing a NULL pointer or an out-of-range index. The post() method takes the name of the Inventor method that detected the error, to aid the programmer in debugging.
Definition at line 88 of file SoDebugError.h.
Definition at line 91 of file SoDebugError.h.
virtual SoDebugError::~SoDebugError | ( | ) | [inline, protected, virtual] |
Definition at line 135 of file SoDebugError.h.
static SoType SoDebugError::getClassTypeId | ( | ) | [inline, static] |
Reimplemented from SoError.
Definition at line 106 of file SoDebugError.h.
virtual SoErrorCB* SoDebugError::getHandler | ( | void *& | data | ) | const [protected, virtual] |
Reimplemented from SoError.
static SoErrorCB* SoDebugError::getHandlerCallback | ( | ) | [inline, static] |
Reimplemented from SoError.
Definition at line 101 of file SoDebugError.h.
static void* SoDebugError::getHandlerData | ( | ) | [inline, static] |
Reimplemented from SoError.
Definition at line 103 of file SoDebugError.h.
SoDebugError::Severity SoDebugError::getSeverity | ( | ) | const [inline] |
Definition at line 112 of file SoDebugError.h.
static void SoDebugError::initClass | ( | ) | [static] |
Reimplemented from SoError.
static void SoDebugError::post | ( | const char * | methodName, |
const char * | formatString... | ||
) | [static] |
static void SoDebugError::postInfo | ( | const char * | methodName, |
const char * | formatString... | ||
) | [static] |
static void SoDebugError::postWarning | ( | const char * | methodName, |
const char * | formatString... | ||
) | [static] |
static void SoDebugError::setHandlerCallback | ( | SoErrorCB * | cb, |
void * | data | ||
) | [inline, static] |
Reimplemented from SoError.
Definition at line 98 of file SoDebugError.h.