CLHEP 2.0.4.7 Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
00001 // ---------------------------------------------------------------------- 00002 // 00003 // ZMexSeverity.cc - define severity codes & ancillary information 00004 // 00005 // Revision History: 00006 // 971006 WEB Split out from ZMexSeverity.h 00007 // 971113 WEB Updated to conform to standard coding techniques 00008 // 980615 WEB Added namespace support 00009 // 00010 // ---------------------------------------------------------------------- 00011 00012 00013 #include "CLHEP/Exceptions/ZMexSeverity.h" 00014 00015 00016 namespace zmex { 00017 00018 00019 const std::string ZMexSeverityName[ ZMexSEVERITYenumLAST ] = { 00020 "NORMAL", // ZMexNORMAL 00021 "INFORMATIONAL", // ZMexINFO 00022 "WARNING", // ZMexWARNING 00023 "ERROR", // ZMexERROR 00024 "SEVERE", // ZMexSEVERE 00025 "FATAL", // ZMexFATAL 00026 "UNANTICIPATED PROBLEM", // ZMexPROBLEM 00027 }; 00028 00029 00030 const char ZMexSeverityLetter[ ZMexSEVERITYenumLAST ] = { 00031 ' ', // ZMexNORMAL 00032 'I', // ZMexINFO 00033 'W', // ZMexWARNING 00034 'E', // ZMexERROR 00035 'S', // ZMexSEVERE 00036 'F', // ZMexFATAL 00037 '?', // ZMexPROBLEM 00038 }; 00039 00040 00041 int ZMexSeverityLimit[ ZMexSEVERITYenumLAST ] = { 00042 // Provide starting values to limit logging by severity 00043 -1, // ZMexNORMAL 00044 -1, // ZMexINFO 00045 -1, // ZMexWARNING 00046 -1, // ZMexERROR 00047 -1, // ZMexSEVERE 00048 -1, // ZMexFATAL 00049 -1, // ZMexPROBLEM 00050 }; 00051 00052 00053 } // namespace zmex