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() override;
52 
53  // --- Methods invoked by the ELadministrator:
54  //
55  public:
56  bool log(const edm::ErrorObj& msg) override;
57 
58  protected:
59  // trivial clearSummary(), wipe(), zero() from base class
60  // trivial three summary(..) from base class
61 
62  protected:
63  // --- Internal Methods -- Users should not invoke these:
64  //
65  protected:
66  void emitToken(std::string_view s, bool nl = false);
67 
68  void suppressTime() override;
69  void includeTime() override;
70  void suppressModule() override;
71  void includeModule() override;
72  void suppressSubroutine() override;
73  void includeSubroutine() override;
74  void suppressText() override;
75  void includeText() override;
76  void suppressContext() override;
77  void includeContext() override;
78  void suppressSerial() override;
79  void includeSerial() override;
80  void useFullContext() override;
81  void useContext() override;
82  void separateTime() override;
83  void attachTime() override;
84  void separateEpilogue() override;
85  void attachEpilogue() override;
86 
87  void changeFile(std::ostream& os) override;
88  void changeFile(const std::string& filename) override;
89  void flush() override;
90 
91  protected:
92  // --- member data:
93  //
94  std::shared_ptr<std::ostream> os;
97 
100 
101  // --- Verboten method:
102  //
103  ELoutput& operator=(const ELoutput& orig) = delete;
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:612
edm::service::ELoutput
Definition: ELoutput.h:43
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:52
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:98
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:43
edm::service::ELoutput::wantTimestamp
bool wantTimestamp
Definition: ELoutput.h:98
edm::service::ELoutput::includeContext
void includeContext() override
Definition: ELoutput.cc:605
edm::ELextendedID
Definition: ELextendedID.h:25
edm::service::ELoutput::wantTimeSeparate
bool wantTimeSeparate
Definition: ELoutput.h:98
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:98
edm::service::ELoutput::wantText
bool wantText
Definition: ELoutput.h:98
edm::service::ELoutput::wantSubroutine
bool wantSubroutine
Definition: ELoutput.h:98
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::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:94
corrVsCorr.filename
filename
Definition: corrVsCorr.py:123
edm::service::ELoutput::emitToken
void emitToken(std::string_view s, bool nl=false)
Definition: ELoutput.cc:511
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ELdestination.h
edm::service::ELoutput::wantSerial
bool wantSerial
Definition: ELoutput.h:98
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:98
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:98
edm::service::ELoutput::wantSomeContext
bool wantSomeContext
Definition: ELoutput.h:98
edm::service::ELoutput::suppressModule
void suppressModule() override
Definition: ELoutput.cc:597
edm::service::ELoutput::useFullContext
void useFullContext() override
Definition: ELoutput.cc:611
edm::service::ELoutput::suppressText
void suppressText() override
Definition: ELoutput.cc:603
edm::service::ELoutput::charsOnLine
int charsOnLine
Definition: ELoutput.h:95
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:96