50#ifndef _SO_MEMORY_ERROR
51#define _SO_MEMORY_ERROR
139 static void post(
const char* whatWasAllocated);
143 static void initClass();
144 static void exitClass();
145 static SoErrorCB* getDefaultHandlerCB() {
return defaultHandlerCB; }
146 static bool getMemorySpace(
const size_t size);
150 virtual SoErrorCB * getHandler(
void *&data)
const;
151 virtual bool isInit()
const;
155 static SoType classTypeId;
165 static SbString* s_memoryErrorString;
169 static bool s_memoryFreeSpaceLoop;
171 static void* s_memoryCleanupData;
void SoErrorCB(const SoError *error, void *data)
Error handling callbacks are of this type.
bool SoMemoryCleanupCB(const size_t requestedByteSize, void *data)
Memory cleanup handling callback.
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.
virtual SoType getTypeId() const
Returns type identifier for an instance of this class.
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.