58#ifndef _SO_DEBUG_ERROR
59#define _SO_DEBUG_ERROR
99 { handlerCB = cb; cbData = data; }
116 static void post(
const char *methodName,
117 const char *formatString ...);
121 const char *formatString ...);
125 const char *formatString ...);
138 static SoType classTypeId;
#define SoEXTENDER
Provide inline template functions for abs, swap, min, max, and clamp.
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
void INVENTOR_API SoErrorCB(const SoError *error, void *data)
Error handling callbacks are of this type:
static SoErrorCB * getHandlerCallback()
Sets/returns handler callback for SoDebugError class.
static void * getHandlerData()
Sets/returns handler callback for SoDebugError class.
virtual SoType getTypeId() const
Returns type identifier for error instance.
static void postWarning(const char *methodName, const char *formatString ...)
Posts a warning.
virtual SoErrorCB * getHandler(void *&data) const
Returns handler callback (and data) to use for a given instance.
static SoType getClassTypeId()
Returns type identifier for SoDebugError class.
static void setHandlerCallback(SoErrorCB *cb, void *data)
Sets/returns handler callback for SoDebugError class.
SoDebugError::Severity getSeverity() const
Returns severity of error (for use by handlers)
static void post(const char *methodName, const char *formatString ...)
Posts an error.
static void initClass()
Initializes SoDebugError class.
static void postInfo(const char *methodName, const char *formatString ...)
Posts an informational (non-error) message.
Error handling base class.
SoType has no virtual functions to keep it small...