24#if !defined(SO_ERROR_STACK_H)
25#define SO_ERROR_STACK_H
124 static void initClass();
125 static void exitClass();
133 static void signalHandler(
int signo);
135 static SoType s_classTypeId;
137 static void* s_cbData;
139 typedef void (*tHandler)(int);
143 static tHandler s_handlerSIGINT;
144 static tHandler s_handlerSIGILL;
145 static tHandler s_handlerSIGFPE;
146 static tHandler s_handlerSIGSEGV;
147 static tHandler s_handlerSIGTERM;
148 static tHandler s_handlerSIGABRT;
151 std::vector< SoErrorStack::StackFrame > m_stack;
void SoErrorCB(const SoError *error, void *data)
Error handling callbacks are of this type.
Class for smart character strings.
Error handling base class.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Stack debugging ...
static void * getHandlerData()
Returns the handler callback data for the SoErrorStack class.
virtual SoType getTypeId() const
Returns the type identifier for an instance of SoErrorStack.
SbString getStack() const
This function returns a decoded version of the getStackFrames() function.
static SoType getClassTypeId()
Returns the type identifier for the SoErrorStack class.
static void setHandlerCallback(SoErrorCB *cb, void *data)
Sets the handler callback for the SoErrorStack class.
static void post()
Posts the current callstack to the application callback or to SoDebugError if the custom callback was...
static SoErrorCB * getHandlerCallback()
Returns the handler callback for the SoErrorStack class.
std::vector< SoErrorStack::StackFrame > getStackFrames() const
Returns the stack frames of the current callback stack.
Stores runtime type information.
This struture contains the description of a stack frame.
SbString moduleDescription