00001 #ifndef COIN_SOMEMORYERROR_H
00002 #define COIN_SOMEMORYERROR_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #include <Inventor/errors/SoError.h>
00028
00029 class COIN_DLL_API SoMemoryError : public SoError {
00030 typedef SoError inherited;
00031
00032 public:
00033 static void setHandlerCallback(SoErrorCB * const callback,
00034 void * const data);
00035 static SoErrorCB * getHandlerCallback(void);
00036 static void * getHandlerData(void);
00037
00038 static SoType getClassTypeId(void);
00039 virtual SoType getTypeId(void) const;
00040
00041 static void post(const char * const whatWasAllocated);
00042
00043 static void initClass(void);
00044
00045 protected:
00046 virtual SoErrorCB * getHandler(void * & data) const;
00047
00048 private:
00049 static SoType classTypeId;
00050 static SoErrorCB * callback;
00051 static void * callbackData;
00052 };
00053
00054 #endif // !COIN_SOMEMORYERROR_H