This commit is contained in:
31
geant4/LEMuSR/include/lem4ErrorMessage.hh
Normal file
31
geant4/LEMuSR/include/lem4ErrorMessage.hh
Normal file
@ -0,0 +1,31 @@
|
||||
#ifndef lem4ErrorMessage_h
|
||||
#define lem4ErrorMessage_h 1
|
||||
|
||||
#include <map>
|
||||
#include "globals.hh"
|
||||
enum SEVERITY {INFO, WARNING, SERIOUS, FATAL};
|
||||
|
||||
typedef struct
|
||||
{
|
||||
SEVERITY mesSeverity;
|
||||
int nTimes;
|
||||
} ErrorStruct;
|
||||
|
||||
class lem4ErrorMessage {
|
||||
public:
|
||||
// enum SEVERITY {INFO, WARNING, SERIOUS, FATAL};
|
||||
lem4ErrorMessage();
|
||||
~lem4ErrorMessage();
|
||||
static lem4ErrorMessage* GetInstance();
|
||||
void lem4Error(SEVERITY severity, G4String message, G4bool silent);
|
||||
void PrintErrorSummary();
|
||||
|
||||
private:
|
||||
static lem4ErrorMessage* pointerToErrors;
|
||||
G4int nErrors;
|
||||
// std::map<G4String,int> ErrorMapping;
|
||||
std::map<G4String,ErrorStruct> ErrorMapping;
|
||||
|
||||
std::map<SEVERITY,G4String> severityWord;
|
||||
};
|
||||
#endif
|
Reference in New Issue
Block a user