CMS 3D CMS Logo

ELoutput.h
Go to the documentation of this file.
1 #ifndef FWCore_MessageService_ELoutput_h
2 #define FWCore_MessageService_ELoutput_h
3 
4 // ----------------------------------------------------------------------
5 //
6 // ELoutput is a subclass of ELdestination representing the standard
7 // provided destination.
8 //
9 // 7/8/98 mf Created file.
10 // 6/17/99 jvr Made output format options available for ELdestControl only
11 // 7/2/99 jvr Added separate/attachTime, Epilogue, and Serial options
12 // 2/22/00 mf Changed myDetX to myOutputX (to avoid future puzzlement!)
13 // and added ELoutput(ox) to cacilitate inherited classes.
14 // 6/7/00 web Consolidated ELoutput/X; add filterModule()
15 // 6/14/00 web Declare classes before granting friendship; remove using
16 // 10/4/00 mf add excludeModule()
17 // 4/4/01 mf Removed moduleOfInterest and moduleToExclude, in favor
18 // of using base class method.
19 // 6/23/03 mf changeFile(), flush()
20 // 6/11/07 mf changed default for emitAtStart to false
21 //
22 // ----------------------------------------------------------------------
23 
25 
28 
29 #include <memory>
30 
31 namespace edm {
32 
33  // ----------------------------------------------------------------------
34  // prerequisite classes:
35  // ----------------------------------------------------------------------
36 
37  class ErrorObj;
38  namespace service {
39 
40  // ----------------------------------------------------------------------
41  // ELoutput:
42  // ----------------------------------------------------------------------
43 
44  class ELoutput : public ELdestination {
45  public:
46  // --- Birth/death:
47  //
48  ELoutput();
49  ELoutput(std::ostream& os, bool emitAtStart = false); // 6/11/07 mf
50  ELoutput(const ELstring& fileName, bool emitAtStart = false);
51  ELoutput(const ELoutput& orig);
52  ~ELoutput() override;
53 
54  // --- Methods invoked by the ELadministrator:
55  //
56  public:
57  bool log(const edm::ErrorObj& msg) override;
58 
59  protected:
60  // trivial clearSummary(), wipe(), zero() from base class
61  // trivial three summary(..) from base class
62 
63  protected:
64  // --- Internal Methods -- Users should not invoke these:
65  //
66  protected:
67  void emitToken(const ELstring& s, bool nl = false);
68 
69  void suppressTime() override;
70  void includeTime() override;
71  void suppressModule() override;
72  void includeModule() override;
73  void suppressSubroutine() override;
74  void includeSubroutine() override;
75  void suppressText() override;
76  void includeText() override;
77  void suppressContext() override;
78  void includeContext() override;
79  void suppressSerial() override;
80  void includeSerial() override;
81  void useFullContext() override;
82  void useContext() override;
83  void separateTime() override;
84  void attachTime() override;
85  void separateEpilogue() override;
86  void attachEpilogue() override;
87 
88  void changeFile(std::ostream& os) override;
89  void changeFile(const ELstring& filename) override;
90  void flush() override;
91 
92  protected:
93  // --- member data:
94  //
95  std::shared_ptr<std::ostream> os;
98 
101 
102  // --- Verboten method:
103  //
104  ELoutput& operator=(const ELoutput& orig) = delete;
105 
106  }; // ELoutput
107 
108  // ----------------------------------------------------------------------
109 
110  } // end of namespace service
111 } // end of namespace edm
112 
113 #endif // FWCore_MessageService_ELoutput_h
edm::service::ELoutput::emitToken
void emitToken(const ELstring &s, bool nl=false)
Definition: ELoutput.cc:511
service
Definition: service.py:1
edm::service::ELoutput::useContext
void useContext() override
Definition: ELoutput.cc:612
edm::service::ELoutput
Definition: ELoutput.h:44
edm::service::ELoutput::suppressSubroutine
void suppressSubroutine() override
Definition: ELoutput.cc:600
edm::service::ELoutput::~ELoutput
~ELoutput() override
Definition: ELoutput.cc:281
edm::service::ELdestination
Definition: ELdestination.h:53
edm::service::ELoutput::changeFile
void changeFile(std::ostream &os) override
Definition: ELoutput.cc:624
ELextendedID.h
edm::service::ELoutput::wantModule
bool wantModule
Definition: ELoutput.h:99
edm::service::ELoutput::log
bool log(const edm::ErrorObj &msg) override
Definition: ELoutput.cc:295
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::ErrorObj
Definition: ErrorObj.h:44
edm::service::ELoutput::wantTimestamp
bool wantTimestamp
Definition: ELoutput.h:99
edm::service::ELoutput::includeContext
void includeContext() override
Definition: ELoutput.cc:605
edm::ELextendedID
Definition: ELextendedID.h:24
edm::service::ELoutput::wantTimeSeparate
bool wantTimeSeparate
Definition: ELoutput.h:99
edm::service::ELoutput::includeSubroutine
void includeSubroutine() override
Definition: ELoutput.cc:599
mps_check.msg
tuple msg
Definition: mps_check.py:285
edm::service::ELoutput::flush
void flush() override
Definition: ELoutput.cc:642
edm::service::ELoutput::includeModule
void includeModule() override
Definition: ELoutput.cc:596
MillePedeFileConverter_cfg.fileName
fileName
Definition: MillePedeFileConverter_cfg.py:32
edm::service::ELoutput::suppressSerial
void suppressSerial() override
Definition: ELoutput.cc:608
edm::service::ELoutput::wantFullContext
bool wantFullContext
Definition: ELoutput.h:99
edm::service::ELoutput::wantText
bool wantText
Definition: ELoutput.h:99
edm::service::ELoutput::wantSubroutine
bool wantSubroutine
Definition: ELoutput.h:99
edm::service::ELoutput::operator=
ELoutput & operator=(const ELoutput &orig)=delete
edm::service::ELoutput::suppressTime
void suppressTime() override
Definition: ELoutput.cc:594
alignCSCRings.s
s
Definition: alignCSCRings.py:92
edm::ELstring
std::string ELstring
Definition: ELstring.h:21
edm::service::ELoutput::includeSerial
void includeSerial() override
Definition: ELoutput.cc:609
edm::service::ELoutput::ELoutput
ELoutput()
Definition: ELoutput.cc:125
edm::service::ELoutput::attachTime
void attachTime() override
Definition: ELoutput.cc:615
edm::service::ELoutput::os
std::shared_ptr< std::ostream > os
Definition: ELoutput.h:95
corrVsCorr.filename
filename
Definition: corrVsCorr.py:123
ELdestination.h
edm::service::ELoutput::wantSerial
bool wantSerial
Definition: ELoutput.h:99
edm::service::ELoutput::separateTime
void separateTime() override
Definition: ELoutput.cc:614
edm::service::ELoutput::suppressContext
void suppressContext() override
Definition: ELoutput.cc:606
edm::service::ELoutput::preambleMode
bool preambleMode
Definition: ELoutput.h:99
edm::service::ELoutput::attachEpilogue
void attachEpilogue() override
Definition: ELoutput.cc:618
edm::service::ELoutput::includeText
void includeText() override
Definition: ELoutput.cc:602
edm::service::ELoutput::wantEpilogueSeparate
bool wantEpilogueSeparate
Definition: ELoutput.h:99
edm::service::ELoutput::wantSomeContext
bool wantSomeContext
Definition: ELoutput.h:99
edm::service::ELoutput::suppressModule
void suppressModule() override
Definition: ELoutput.cc:597
edm::service::ELoutput::useFullContext
void useFullContext() override
Definition: ELoutput.cc:611
ELstring.h
edm::service::ELoutput::suppressText
void suppressText() override
Definition: ELoutput.cc:603
edm::service::ELoutput::charsOnLine
int charsOnLine
Definition: ELoutput.h:96
edm::service::ELoutput::includeTime
void includeTime() override
Definition: ELoutput.cc:593
edm::service::ELoutput::separateEpilogue
void separateEpilogue() override
Definition: ELoutput.cc:617
edm::service::ELoutput::xid
edm::ELextendedID xid
Definition: ELoutput.h:97