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       static void newHandler();
   156         static std::string * file_ = 0;
   159           file_  = 
new std::string;
   168         static int * line_ = 0;
   180         static std::string * function_ = 0;
   183           function_  = 
new std::string;
   184           *function_ = 
"unknown";
   192         static std::string * name_ = 0;
   195           name_  = 
new std::string;
   196           *name_ = 
"unknown exception";
   204         static std::string * what_ = 0;
   207           what_  = 
new std::string;
   220 #endif // OPENMS_CONCEPT_GLOBALEXCEPTIONHANDLER_H 
~GlobalExceptionHandler()
Definition: GlobalExceptionHandler.h:85
 
Main OpenMS namespace. 
Definition: FeatureDeconvolution.h:47
 
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:202
 
OpenMS global exception handler. 
Definition: GlobalExceptionHandler.h:54
 
static std::string & name_()
wrapper for static member name_ 
Definition: GlobalExceptionHandler.h:190
 
static std::string & file_()
wrapper for static member file_ 
Definition: GlobalExceptionHandler.h:154
 
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:178
 
static int & line_()
wrapper for static member line_ 
Definition: GlobalExceptionHandler.h:166