#include <BCP_error.hpp>
Public Member Functions | |
BCP_fatal_error (const std::string &str) | |
BCP_fatal_error (const char *format,...) | |
~BCP_fatal_error () | |
Static Public Attributes | |
bool | abort_on_error = true |
abort()
(thus a core dump is created).
Definition at line 21 of file BCP_error.hpp.
|
The constructor prints out the error message, flushes the stdout buffer and aborts execution. Definition at line 35 of file BCP_error.hpp.
00035 { 00036 printf("%s", str.c_str()); 00037 fflush(0); 00038 if (abort_on_error) 00039 abort(); 00040 } |
|
The destructor exists only because it must. Definition at line 52 of file BCP_error.hpp.
00052 {} |