CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
ZMexSeverity.cc
Go to the documentation of this file.
1// ----------------------------------------------------------------------
2//
3// ZMexSeverity.cc - define severity codes & ancillary information
4//
5// Revision History:
6// 971006 WEB Split out from ZMexSeverity.h
7// 971113 WEB Updated to conform to standard coding techniques
8// 980615 WEB Added namespace support
9//
10// ----------------------------------------------------------------------
11
12
13#include "CLHEP/Exceptions/ZMexSeverity.h"
14
15#include "CLHEP/Exceptions/ZMerrno.h"
16
17#include <string>
18
19
20namespace zmex {
21
22
23const std::string ZMexSeverityName[ ZMexSEVERITYenumLAST ] = {
24 "NORMAL", // ZMexNORMAL
25 "INFORMATIONAL", // ZMexINFO
26 "WARNING", // ZMexWARNING
27 "ERROR", // ZMexERROR
28 "SEVERE", // ZMexSEVERE
29 "FATAL", // ZMexFATAL
30 "UNANTICIPATED PROBLEM", // ZMexPROBLEM
31};
32
33
35 ' ', // ZMexNORMAL
36 'I', // ZMexINFO
37 'W', // ZMexWARNING
38 'E', // ZMexERROR
39 'S', // ZMexSEVERE
40 'F', // ZMexFATAL
41 '?', // ZMexPROBLEM
42};
43
44
46 // Provide starting values to limit logging by severity
47 -1, // ZMexNORMAL
48 -1, // ZMexINFO
49 -1, // ZMexWARNING
50 -1, // ZMexERROR
51 -1, // ZMexSEVERE
52 -1, // ZMexFATAL
53 -1, // ZMexPROBLEM
54};
55
56
57} // namespace zmex
Definition: ZMerrno.h:52
int ZMexSeverityLimit[ZMexSEVERITYenumLAST]
Definition: ZMexSeverity.cc:45
@ ZMexSEVERITYenumLAST
Definition: ZMexSeverity.h:66
const char ZMexSeverityLetter[ZMexSEVERITYenumLAST]
Definition: ZMexSeverity.cc:34
const std::string ZMexSeverityName[ZMexSEVERITYenumLAST]
Definition: ZMexSeverity.cc:23