58#ifndef _SO_MEMORY_ERROR
59#define _SO_MEMORY_ERROR
84 { handlerCB = cb; cbData = data; }
98 static void post(
const char *whatWasAllocated);
111 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:
Error handling base class.
virtual SoType getTypeId() const
Returns type identifier for error instance.
static void setHandlerCallback(SoErrorCB *cb, void *data)
Sets/returns handler callback for SoMemoryError class.
static SoType getClassTypeId()
Returns type identifier for SoMemoryError class.
virtual SoErrorCB * getHandler(void *&data) const
Returns handler callback (and data) to use for a given instance.
static void initClass()
Initializes SoMemoryError class.
static void * getHandlerData()
Sets/returns handler callback for SoMemoryError class.
static void post(const char *whatWasAllocated)
Posts an error.
static SoErrorCB * getHandlerCallback()
Sets/returns handler callback for SoMemoryError class.
SoType has no virtual functions to keep it small...