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 
27 
28 #include <memory>
29 
30 namespace edm {
31 
32  // ----------------------------------------------------------------------
33  // prerequisite classes:
34  // ----------------------------------------------------------------------
35 
36  class ErrorObj;
37  namespace service {
38 
39  // ----------------------------------------------------------------------
40  // ELoutput:
41  // ----------------------------------------------------------------------
42 
43  class ELoutput : public ELdestination {
44  public:
45  // --- Birth/death:
46  //
47  ELoutput();
48  ELoutput(std::ostream& os, bool emitAtStart = false); // 6/11/07 mf
49  ELoutput(const std::string& fileName, bool emitAtStart = false);
50  ELoutput(const ELoutput& orig);
51  ELoutput& operator=(const ELoutput& orig) = delete;
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(std::string_view 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 std::string& 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 
105  }; // ELoutput
106 
107  // ----------------------------------------------------------------------
108 
109  } // end of namespace service
110 } // end of namespace edm
111 
112 #endif // FWCore_MessageService_ELoutput_h
service
Definition: service.py:1
edm::service::ELoutput::useContext
void useContext() override
Definition: ELoutput.cc:613
edm::service::ELoutput
Definition: ELoutput.h:43
edm::service::ELoutput::suppressSubroutine
void suppressSubroutine() override
Definition: ELoutput.cc:601
edm::service::ELoutput::~ELoutput
~ELoutput() override
Definition: ELoutput.cc:282
edm::service::ELdestination
Definition: ELdestination.h:52
edm::service::ELoutput::changeFile
void changeFile(std::ostream &os) override
Definition: ELoutput.cc:625
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:296
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::ErrorObj
Definition: ErrorObj.h:43
edm::service::ELoutput::wantTimestamp
bool wantTimestamp
Definition: ELoutput.h:99
edm::service::ELoutput::includeContext
void includeContext() override
Definition: ELoutput.cc:606
edm::ELextendedID
Definition: ELextendedID.h:25
edm::service::ELoutput::wantTimeSeparate
bool wantTimeSeparate
Definition: ELoutput.h:99
edm::service::ELoutput::includeSubroutine
void includeSubroutine() override
Definition: ELoutput.cc:600
mps_check.msg
tuple msg
Definition: mps_check.py:285
edm::service::ELoutput::flush
void flush() override
Definition: ELoutput.cc:643
edm::service::ELoutput::includeModule
void includeModule() override
Definition: ELoutput.cc:597
MillePedeFileConverter_cfg.fileName
fileName
Definition: MillePedeFileConverter_cfg.py:32
edm::service::ELoutput::suppressSerial
void suppressSerial() override
Definition: ELoutput.cc:609
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:595
alignCSCRings.s
s
Definition: alignCSCRings.py:92
edm::service::ELoutput::includeSerial
void includeSerial() override
Definition: ELoutput.cc:610
edm::service::ELoutput::ELoutput
ELoutput()
Definition: ELoutput.cc:126
edm::service::ELoutput::attachTime
void attachTime() override
Definition: ELoutput.cc:616
edm::service::ELoutput::os
std::shared_ptr< std::ostream > os
Definition: ELoutput.h:95
corrVsCorr.filename
filename
Definition: corrVsCorr.py:123
edm::service::ELoutput::emitToken
void emitToken(std::string_view s, bool nl=false)
Definition: ELoutput.cc:512
ELdestination.h
edm::service::ELoutput::wantSerial
bool wantSerial
Definition: ELoutput.h:99
edm::service::ELoutput::separateTime
void separateTime() override
Definition: ELoutput.cc:615
edm::service::ELoutput::suppressContext
void suppressContext() override
Definition: ELoutput.cc:607
edm::service::ELoutput::preambleMode
bool preambleMode
Definition: ELoutput.h:99
edm::service::ELoutput::attachEpilogue
void attachEpilogue() override
Definition: ELoutput.cc:619
edm::service::ELoutput::includeText
void includeText() override
Definition: ELoutput.cc:603
edm::service::ELoutput::wantEpilogueSeparate
bool wantEpilogueSeparate
Definition: ELoutput.h:99
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::service::ELoutput::wantSomeContext
bool wantSomeContext
Definition: ELoutput.h:99
edm::service::ELoutput::suppressModule
void suppressModule() override
Definition: ELoutput.cc:598
edm::service::ELoutput::useFullContext
void useFullContext() override
Definition: ELoutput.cc:612
edm::service::ELoutput::suppressText
void suppressText() override
Definition: ELoutput.cc:604
edm::service::ELoutput::charsOnLine
int charsOnLine
Definition: ELoutput.h:96
edm::service::ELoutput::includeTime
void includeTime() override
Definition: ELoutput.cc:594
edm::service::ELoutput::separateEpilogue
void separateEpilogue() override
Definition: ELoutput.cc:618
edm::service::ELoutput::xid
edm::ELextendedID xid
Definition: ELoutput.h:97