Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

BCP_fatal_error Class Reference

#include <BCP_error.hpp>

List of all members.

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


Detailed Description

Currently there isn't any error handling in BCP. When an object of this type is created, the string stored in the character array of the argument is printed out and execution is aborted with abort() (thus a core dump is created).

Definition at line 21 of file BCP_error.hpp.


Constructor & Destructor Documentation

BCP_fatal_error::BCP_fatal_error const std::string &  str  )  [inline]
 

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    }

BCP_fatal_error::~BCP_fatal_error  )  [inline]
 

The destructor exists only because it must.

Definition at line 52 of file BCP_error.hpp.

00052 {}


The documentation for this class was generated from the following files:
Generated on Wed Dec 3 14:32:37 2003 for BCP by doxygen 1.3.5