Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes

cmtk::StackBacktrace Class Reference
[cmtkSystem Library]

Class for printing stack backtrace in the event of a crash. More...

#include <cmtkStackBacktrace.h>

List of all members.

Public Types

typedef StackBacktrace Self
 This class.

Public Member Functions

 StackBacktrace ()
 Constructor: register signal handler.

Static Public Member Functions

static void SetExitCode (const int code=1)
 Set exit code used after catching SEGFAULT or other signals.
static void PrintBacktrace (const int levels=0)
 Print current stack backtrace.

Static Public Attributes

static int ExitCode = 1
 Exit code.

Detailed Description

Class for printing stack backtrace in the event of a crash.

A static instance of this class is used to catch SEGFAULT and other termination signals and prints a stack trace.

Author:
http://www.linuxjournal.com/article/6391

Definition at line 51 of file cmtkStackBacktrace.h.


Member Typedef Documentation

This class.

Definition at line 56 of file cmtkStackBacktrace.h.


Member Function Documentation

static void cmtk::StackBacktrace::SetExitCode ( const int  code = 1 ) [inline, static]

Set exit code used after catching SEGFAULT or other signals.

Definition at line 62 of file cmtkStackBacktrace.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines