35 #ifndef OPENMS_CONCEPT_GLOBALEXCEPTIONHANDLER_H 
   36 #define OPENMS_CONCEPT_GLOBALEXCEPTIONHANDLER_H 
   93         if (globalExceptionHandler_ == 0)
 
   97         return *globalExceptionHandler_;
 
  106       static void setName(
const std::string & name)
 
  111       static void setMessage(
const std::string & message)
 
  116       static void setLine(
int line)
 
  121       static void setFile(
const std::string & file)
 
  126       static void setFunction(
const std::string & 
function)
 
  131       static 
void set(const std::
string & file, 
int line, const std::
string & function,
 
  132                       const std::
string & name, const std::
string & message)
 
  138       static 
void terminate()
 
  142 #ifdef OPENMS_COMPILER_MSVC 
  143       static void newHandler();
 
  160         static std::string * file_ = 0;
 
  163           file_  = 
new std::string;
 
  172         static int * line_ = 0;
 
  184         static std::string * function_ = 0;
 
  187           function_  = 
new std::string;
 
  188           *function_ = 
"unknown";
 
  196         static std::string * name_ = 0;
 
  199           name_  = 
new std::string;
 
  200           *name_ = 
"unknown exception";
 
  208         static std::string * what_ = 0;
 
  211           what_  = 
new std::string;
 
  224 #endif // OPENMS_CONCEPT_GLOBALEXCEPTIONHANDLER_H 
~GlobalExceptionHandler()
Definition: GlobalExceptionHandler.h:85
static GlobalExceptionHandler & getInstance()
The accessor for the singleton. It also serves as a replacement for the constructor. 
Definition: GlobalExceptionHandler.h:89
static std::string & what_()
wrapper for static member what_ 
Definition: GlobalExceptionHandler.h:206
OpenMS global exception handler. 
Definition: GlobalExceptionHandler.h:54
Out of memory exception. 
Definition: Exception.h:472
static std::string & name_()
wrapper for static member name_ 
Definition: GlobalExceptionHandler.h:194
static std::string & file_()
wrapper for static member file_ 
Definition: GlobalExceptionHandler.h:158
GlobalExceptionHandler(const GlobalExceptionHandler &)
private version of c'tor to avoid initialization 
Definition: GlobalExceptionHandler.h:83
static std::string & function_()
wrapper for static member function_ 
Definition: GlobalExceptionHandler.h:182
static int & line_()
wrapper for static member line_ 
Definition: GlobalExceptionHandler.h:170