Open Inventor Reference
SoMemoryError Class Reference

Memory error handling. More...

#include <Inventor/errors/SoMemoryError.h>

Inheritance diagram for SoMemoryError:
SoError

Public Member Functions

virtual SoType getTypeId () const
 Returns type identifier for error instance.
 
- Public Member Functions inherited from SoError
const SbStringgetDebugString () const
 Returns debug string containing full error information from instance.
 
virtual SoType getTypeId () const
 Returns type identifier for error instance.
 
bool isOfType (SoType type) const
 Returns TRUE if instance is of given type or is derived from it.
 

Static Public Member Functions

static void setHandlerCallback (SoErrorCB *cb, void *data)
 Sets/returns handler callback for SoMemoryError class.
 
static SoErrorCBgetHandlerCallback ()
 Sets/returns handler callback for SoMemoryError class.
 
static void * getHandlerData ()
 Sets/returns handler callback for SoMemoryError class.
 
static SoType getClassTypeId ()
 Returns type identifier for SoMemoryError class.
 
static void post (const char *whatWasAllocated)
 Posts an error.
 
static void initClass ()
 Initializes SoMemoryError class.
 
- Static Public Member Functions inherited from SoError
static void setHandlerCallback (SoErrorCB *cb, void *data)
 Sets/returns handler callback for SoError class.
 
static SoErrorCBgetHandlerCallback ()
 Sets/returns handler callback for SoError class.
 
static void * getHandlerData ()
 Sets/returns handler callback for SoError class.
 
static SoType getClassTypeId ()
 Returns type identifier for SoError class.
 
static void post (const char *formatString ...)
 Posts an error.
 
static SbString getString (const SoNode *node)
 These are convenience functions that return a printable string representing the given object.
 
static SbString getString (const SoPath *path)
 
static SbString getString (const SoEngine *engine)
 
static void initClass ()
 Initializes SoError class.
 
static void initClasses ()
 Initialize ALL Inventor error classes.
 

Protected Member Functions

virtual SoErrorCBgetHandler (void *&data) const
 Returns handler callback (and data) to use for a given instance.
 
virtual ~SoMemoryError ()
 
- Protected Member Functions inherited from SoError
virtual SoErrorCBgetHandler (void *&data) const
 Returns handler callback (and data) to use for a given instance.
 
void setDebugString (const char *string)
 Sets/appends to the debug string.
 
void appendToDebugString (const char *string)
 
void handleError ()
 Calls appropriate handler for an error instance.
 
virtual ~SoError ()
 

Additional Inherited Members

- Static Protected Member Functions inherited from SoError
static void defaultHandlerCB (const SoError *error, void *data)
 The default error handler callback - it just prints to stderr.
 

Detailed Description

SoMemoryError is used for errors reported due to lack of memory.

See Also
SoDebugError, SoReadError

Definition at line 78 of file SoMemoryError.h.

Constructor & Destructor Documentation

◆ ~SoMemoryError()

virtual SoMemoryError::~SoMemoryError ( )
inlineprotectedvirtual

Definition at line 108 of file SoMemoryError.h.

Member Function Documentation

◆ getClassTypeId()

static SoType SoMemoryError::getClassTypeId ( )
inlinestatic

Definition at line 91 of file SoMemoryError.h.

◆ getHandler()

virtual SoErrorCB * SoMemoryError::getHandler ( void *&  data) const
protectedvirtual

Reimplemented from SoError.

◆ getHandlerCallback()

static SoErrorCB * SoMemoryError::getHandlerCallback ( )
inlinestatic

Definition at line 86 of file SoMemoryError.h.

◆ getHandlerData()

static void * SoMemoryError::getHandlerData ( )
inlinestatic

Definition at line 88 of file SoMemoryError.h.

◆ getTypeId()

virtual SoType SoMemoryError::getTypeId ( ) const
virtual

Reimplemented from SoError.

◆ initClass()

static void SoMemoryError::initClass ( )
static

◆ post()

static void SoMemoryError::post ( const char *  whatWasAllocated)
static

◆ setHandlerCallback()

static void SoMemoryError::setHandlerCallback ( SoErrorCB cb,
void *  data 
)
inlinestatic

Definition at line 83 of file SoMemoryError.h.


The documentation for this class was generated from the following file: