CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/FWCore/MessageLogger/src/ELextendedID.cc

Go to the documentation of this file.
00001 // ----------------------------------------------------------------------
00002 //
00003 // ELextendedID.cc      is used as a key in maps for both counting toward
00004 //                      limits on how many times a destination will react
00005 //                      to a type of message, and for statistics.
00006 //
00007 // 07-Jul-1998 mf       Created file.
00008 // 26-Aug-1998 WEB      Updated with ELseverityLevel in place of int.
00009 //
00010 // ----------------------------------------------------------------------
00011 
00012 
00013 #include "FWCore/MessageLogger/interface/ELextendedID.h"
00014 
00015 
00016 namespace edm
00017 {
00018 
00019 
00020 // ----------------------------------------------------------------------
00021 // Comparator:
00022 // ----------------------------------------------------------------------
00023 
00024 bool ELextendedID::operator<( const ELextendedID & xid ) const  {
00025 
00026   return
00027           ( process    < xid.process    )  ?  true
00028         : ( process    > xid.process    )  ?  false
00029 
00030         : ( severity   < xid.severity   )  ?  true
00031         : ( severity   > xid.severity   )  ?  false
00032 
00033         : ( id         < xid.id         )  ?  true
00034         : ( id         > xid.id         )  ?  false
00035 
00036         : ( module     < xid.module     )  ?  true
00037         : ( module     > xid.module     )  ?  false
00038 
00039         : ( subroutine < xid.subroutine )  ?  true
00040         : ( subroutine > xid.subroutine )  ?  false
00041 
00042         :                                     false
00043         ;
00044 
00045 }  // ELextendedID::operator<()
00046 
00047 
00048 // ----------------------------------------------------------------------
00049 // (Re)initializer:
00050 // ----------------------------------------------------------------------
00051 
00052 void ELextendedID::clear()  {
00053 
00054   process    = "";
00055   id         = "";
00056   severity   = ELunspecified;
00057   module     = "";
00058   subroutine = "";
00059 
00060 }  // clear()
00061 
00062 
00063 // ----------------------------------------------------------------------
00064 
00065 } // end of namespace edm  */