CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ELerrorList.h
Go to the documentation of this file.
1 #ifndef FWCore_MessageService_ELerrorList_h
2 #define FWCore_MessageService_ELerrorList_h
3 
4 
5 // ----------------------------------------------------------------------
6 //
7 // ELerrorList is a subclass of ELdestination representing a simple
8 // std::list of ErrorObjs's.
9 //
10 // 9/21/00 mf Created file.
11 // 10/4/00 mf Add excludeModule()
12 // 4/4/01 mf Removed moduleOfInterest and moduleToExclude, in favor
13 // of using base class method.
14 //
15 // ----------------------------------------------------------------------
16 
17 
19 
21 
22 #include <list>
23 
24 namespace edm {
25 namespace service {
26 
27 
28 // ----------------------------------------------------------------------
29 // prerequisite classes:
30 // ----------------------------------------------------------------------
31 
32 class ELdestControl;
33 
34 
35 // ----------------------------------------------------------------------
36 // ELerrorList:
37 // ----------------------------------------------------------------------
38 
39 class ELerrorList : public ELdestination {
40 
41  friend class ELdestControl;
42 
43 public:
44  // --- PUBLIC member data: this list is the whole point of the class!
45  //
46  std::list<edm::ErrorObj> & errorObjs;
47 
48 public:
49 
50  // --- Birth/death:
51  //
52  ELerrorList ( std::list<edm::ErrorObj> & errorList );
53  ELerrorList ( const ELerrorList & orig );
54  virtual ~ELerrorList();
55 
56  // --- Methods invoked by the ELadministrator:
57  //
58  virtual
59  ELerrorList *
60  clone() const;
61  // Used by attach() to put the destination on the ELadministrators list
62  //-| There is a note in Design Notes about semantics
63  //-| of copying a destination onto the list: ofstream
64  //-| ownership is passed to the new copy.
65 
66  virtual bool log( const edm::ErrorObj & msg );
67 
68  // --- Methods invoked through the ELdestControl handle:
69  //
70 protected:
71  // trivial clearSummary(), wipe(), zero() from base class
72  // trivial three summary(..) from base class
73 
74 protected:
75  // --- member data:
76  //
77 
78  // --- Verboten method:
79  //
80  ELerrorList & operator=( const ELerrorList & orig );
81 
82 }; // ELerrorList
83 
84 
85 // ----------------------------------------------------------------------
86 
87 
88 } // end of namespace service
89 } // end of namespace edm
90 
91 
92 #endif // FWCore_MessageService_ELerrorList_h
virtual ELerrorList * clone() const
Definition: ELerrorList.cc:76
ELerrorList & operator=(const ELerrorList &orig)
ELerrorList(std::list< edm::ErrorObj > &errorList)
Definition: ELerrorList.cc:34
virtual bool log(const edm::ErrorObj &msg)
Definition: ELerrorList.cc:83
std::list< edm::ErrorObj > & errorObjs
Definition: ELerrorList.h:46