Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:12:44

0001 // ----------------------------------------------------------------------
0002 //
0003 // ELextendedID.cc      is used as a key in maps for both counting toward
0004 //                      limits on how many times a destination will react
0005 //                      to a type of message, and for statistics.
0006 //
0007 // 07-Jul-1998 mf       Created file.
0008 // 26-Aug-1998 WEB      Updated with ELseverityLevel in place of int.
0009 //
0010 // ----------------------------------------------------------------------
0011 
0012 #include "FWCore/MessageLogger/interface/ELextendedID.h"
0013 
0014 namespace edm {
0015 
0016   // ----------------------------------------------------------------------
0017   // Comparator:
0018   // ----------------------------------------------------------------------
0019 
0020   bool ELextendedID::operator<(const ELextendedID& xid) const {
0021     return (severity < xid.severity)   ? true
0022            : (severity > xid.severity) ? false
0023 
0024            : (id < xid.id) ? true
0025            : (id > xid.id) ? false
0026 
0027            : (module < xid.module) ? true
0028            : (module > xid.module) ? false
0029 
0030            : (subroutine < xid.subroutine) ? true
0031            : (subroutine > xid.subroutine) ? false
0032 
0033                                            : false;
0034 
0035   }  // ELextendedID::operator<()
0036 
0037   // ----------------------------------------------------------------------
0038   // (Re)initializer:
0039   // ----------------------------------------------------------------------
0040 
0041   void ELextendedID::clear() {
0042     id = "";
0043     severity = messagelogger::ELunspecified;
0044     module = "";
0045     subroutine = "";
0046 
0047   }  // clear()
0048 
0049   // ----------------------------------------------------------------------
0050 
0051 }  // end of namespace edm  */