CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Protected Member Functions | Friends
edm::service::ELerrorList Class Reference

#include <ELerrorList.h>

Inheritance diagram for edm::service::ELerrorList:
edm::service::ELdestination

Public Member Functions

virtual ELerrorListclone () const
 
 ELerrorList (std::list< edm::ErrorObj > &errorList)
 
 ELerrorList (const ELerrorList &orig)
 
virtual bool log (const edm::ErrorObj &msg)
 
virtual ~ELerrorList ()
 
- Public Member Functions inherited from edm::service::ELdestination
 ELdestination ()
 
virtual void finish ()
 
virtual ELstring getNewline () const
 
virtual void summarization (const edm::ELstring &title, const edm::ELstring &sumLines)
 
virtual ~ELdestination ()
 

Public Attributes

std::list< edm::ErrorObj > & errorObjs
 

Protected Member Functions

ELerrorListoperator= (const ELerrorList &orig)
 
- Protected Member Functions inherited from edm::service::ELdestination
virtual void changeFile (std::ostream &os)
 
virtual void changeFile (const ELstring &filename)
 
virtual void clearSummary ()
 
virtual void excludeModule (ELstring const &moduleName)
 
virtual void filterModule (ELstring const &moduleName)
 
virtual void flush ()
 
virtual void ignoreModule (ELstring const &moduleName)
 
virtual void respondToModule (ELstring const &moduleName)
 
virtual void setTableLimit (int n)
 
virtual std::map< ELextendedID,
StatsCount
statisticsMap () const
 
virtual void summary (ELdestControl &dest, const ELstring &title="")
 
virtual void summary (std::ostream &os, const ELstring &title="")
 
virtual void summary (ELstring &s, const ELstring &title="")
 
virtual void summary ()
 
virtual void summaryForJobReport (std::map< std::string, double > &sm)
 
virtual bool thisShouldBeIgnored (const ELstring &s) const
 
virtual void wipe ()
 
virtual void zero ()
 

Friends

class ELdestControl
 

Additional Inherited Members

- Protected Attributes inherited from edm::service::ELdestination
bool ignoreMostModules
 
ELset_string ignoreThese
 
ELstring indent
 
ELlimitsTable limits
 
int lineLength
 
ELstring newline
 
ELstring preamble
 
bool respondToMostModules
 
ELset_string respondToThese
 
ELseverityLevel threshold
 
ELseverityLevel traceThreshold
 
- Static Protected Attributes inherited from edm::service::ELdestination
static const int defaultLineLength = 80
 

Detailed Description

Definition at line 39 of file ELerrorList.h.

Constructor & Destructor Documentation

edm::service::ELerrorList::ELerrorList ( std::list< edm::ErrorObj > &  errorList)

Definition at line 34 of file ELerrorList.cc.

References dtNoiseDBValidation_cfg::cerr.

Referenced by clone().

34  :
35  ELdestination (),
36  errorObjs ( errorList )
37 {
38 
39  #ifdef ELerrorListCONSTRUCTOR_TRACE
40  std::cerr << "Constructor for ELerrorList()\n";
41  #endif
42 
43 } // ELerrorList()
std::list< edm::ErrorObj > & errorObjs
Definition: ELerrorList.h:46
edm::service::ELerrorList::ELerrorList ( const ELerrorList orig)

Definition at line 45 of file ELerrorList.cc.

References dtNoiseDBValidation_cfg::cerr, edm::service::ELdestination::ignoreMostModules, edm::service::ELdestination::ignoreThese, edm::service::ELdestination::respondToMostModules, and edm::service::ELdestination::respondToThese.

45  :
46  ELdestination (),
47  errorObjs ( orig.errorObjs )
48 {
49 
50  #ifdef ELerrorListCONSTRUCTOR_TRACE
51  std::cerr << "Copy Constructor for ELerrorList()\n";
52  #endif
53 
54  ignoreMostModules = orig.ignoreMostModules;
55  respondToThese = orig.respondToThese;
56  respondToMostModules = orig.respondToMostModules;
57  ignoreThese = orig.ignoreThese;
58 
59 } // ELerrorList()
std::list< edm::ErrorObj > & errorObjs
Definition: ELerrorList.h:46
edm::service::ELerrorList::~ELerrorList ( )
virtual

Definition at line 62 of file ELerrorList.cc.

References dtNoiseDBValidation_cfg::cerr.

62  {
63 
64  #ifdef ELerrorListCONSTRUCTOR_TRACE
65  std::cerr << "Destructor for ELerrorList\n";
66  #endif
67 
68 } // ~ELerrorList()

Member Function Documentation

ELerrorList * edm::service::ELerrorList::clone ( void  ) const
virtual

Implements edm::service::ELdestination.

Definition at line 76 of file ELerrorList.cc.

References ELerrorList().

76  {
77 
78  return new ELerrorList( *this );
79 
80 } // clone()
ELerrorList(std::list< edm::ErrorObj > &errorList)
Definition: ELerrorList.cc:34
bool edm::service::ELerrorList::log ( const edm::ErrorObj msg)
virtual

Reimplemented from edm::service::ELdestination.

Definition at line 83 of file ELerrorList.cc.

References edm::service::ELlimitsTable::add(), dtNoiseDBValidation_cfg::cerr, edm::ErrorObj::emitToken(), errorObjs, edm::service::ELadministrator::instance(), edm::service::ELdestination::limits, m, edm::ELextendedID::module, edm::ELextendedID::severity, edm::service::ELdestination::thisShouldBeIgnored(), edm::service::ELdestination::threshold, and edm::ErrorObj::xid().

83  {
84 
85  #ifdef ELerrorListTRACE_LOG
86  std::cerr << " =:=:=: Log to an ELerrorList \n";
87  #endif
88 
89  edm::ErrorObj m (msg);
90 
91  // See if this message is to be acted upon, and add it to limits table
92  // if it was not already present:
93  //
94  if ( msg.xid().severity < threshold ) return false;
95  if ( thisShouldBeIgnored(msg.xid().module) ) return false;
96  if ( ! limits.add( msg.xid() ) ) return false;
97 
98  #ifdef ELerrorListTRACE_LOG
99  std::cerr << " =:=:=: Limits table work done \n";
100  #endif
101 
102  // add a last item to the message: The fullContext string supplied.
103 
104  m.emitToken(ELadministrator::instance()->getContextSupplier().fullContext());
105 
106  // Now just put m on the list:
107 
108  errorObjs.push_back(m);
109 
110  // Done; message has been fully processed:
111  //
112 
113  #ifdef ELerrorListTRACE_LOG
114  std::cerr << " =:=:=: log(msg) done: \n";
115  #endif
116 
117  return true;
118 
119 } // log()
ELseverityLevel severity
Definition: ELextendedID.h:36
virtual bool thisShouldBeIgnored(const ELstring &s) const
const ELextendedID & xid() const
Definition: ErrorObj.cc:146
bool add(const ELextendedID &xid)
static ELadministrator * instance()
std::list< edm::ErrorObj > & errorObjs
Definition: ELerrorList.h:46
ELerrorList& edm::service::ELerrorList::operator= ( const ELerrorList orig)
protected

Friends And Related Function Documentation

friend class ELdestControl
friend

Definition at line 41 of file ELerrorList.h.

Member Data Documentation

std::list<edm::ErrorObj>& edm::service::ELerrorList::errorObjs

Definition at line 46 of file ELerrorList.h.

Referenced by log().