50#ifndef _SO_MEMORY_ERROR
51#define _SO_MEMORY_ERROR
53#include <Inventor/errors/SoError.h>
141 static void post(
const char* whatWasAllocated);
145 static void initClass();
146 static void exitClass();
147 static SoErrorCB* getDefaultHandlerCB() {
return defaultHandlerCB; }
148 static bool getMemorySpace(
const size_t size);
152 virtual SoErrorCB * getHandler(
void *&data)
const;
153 virtual bool isInit()
const;
157 static SoType classTypeId;
167 static SbString* s_memoryErrorString;
171 static bool s_memoryFreeSpaceLoop;
173 static void* s_memoryCleanupData;
Class for smart character strings.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Portable mutex c...
Error handling base class.
void SoErrorCB(const SoError *error, void *data)
Error handling callbacks are of this type.
virtual SoType getTypeId() const
Returns type identifier for an instance of this class.
bool SoMemoryCleanupCB(const size_t requestedByteSize, void *data)
Memory cleanup handling callback.
static void setHandlerCallback(SoErrorCB *cb, void *data)
Sets handler callback for SoMemoryError class.
static SoType getClassTypeId()
Returns type identifier for SoMemoryError class.
static void setMemoryCleanupCallback(SoMemoryCleanupCB *cb, void *data)
Sets memory cleanup handler callback for SoMemoryError class.
static void * getHandlerData()
Returns handler data for SoMemoryError class.
static void post(const char *whatWasAllocated)
Posts an error.
static void post(const SbString &whatWasAllocated)
Posts an error.
static SoErrorCB * getHandlerCallback()
Returns handler callback for SoMemoryError class.
Stores runtime type information.