CMS 3D CMS Logo

MessageDrop.h
Go to the documentation of this file.
1 #ifndef MessageLogger_MessageDrop_h
2 #define MessageLogger_MessageDrop_h
3 
4 // -*- C++ -*-
5 //
6 // Package: MessageLogger
7 // Class : MessageDrop
8 //
18 //
19 // Original Author: M. Fischler and Jim Kowalkowski
20 // Created: Tues Feb 14 16:38:19 CST 2006
21 //
22 
23 // Framework include files
24 
25 #include "FWCore/Utilities/interface/EDMException.h" // change log 4
28 
29 // system include files
30 
31 #include <string>
32 #include <string_view>
33 
34 // user include files
35 
36 namespace edm {
37 
38  namespace messagedrop {
39  class StringProducer;
41  class StringProducerPath;
43  } // namespace messagedrop
44 
45  struct MessageDrop {
46  private:
47  MessageDrop();
48 
49  public:
50  MessageDrop(MessageDrop const&) = delete;
51  MessageDrop& operator=(MessageDrop const&) = delete;
52 
53  ~MessageDrop();
54  static MessageDrop* instance();
56  void setModuleWithPhase(std::string const& name, std::string const& label, unsigned int moduleID, const char* phase);
57  void setPath(const char* type, std::string const& pathname);
58  void setSinglet(const char* sing);
59  void clear();
60 
61  std::string_view runEvent;
62  unsigned int streamID;
68 
75 
76  private:
81  };
82 
83  static const unsigned char MLSCRIBE_RUNNING_INDICATOR = 29;
84 
85 } // end of namespace edm
86 
87 #endif // MessageLogger_MessageDrop_h
edm::MessageDrop::spSinglet
edm::propagate_const< messagedrop::StringProducerSinglet * > spSinglet
Definition: MessageDrop.h:79
edm::MessageDrop::warningAlwaysSuppressed
static bool warningAlwaysSuppressed
Definition: MessageDrop.h:74
edm::messagedrop::StringProducer
Definition: MessageDrop.cc:44
edm::MLSCRIBE_RUNNING_INDICATOR
static const unsigned char MLSCRIBE_RUNNING_INDICATOR
Definition: MessageDrop.h:83
BTVHLTOfflineSource_cfi.pathname
pathname
Definition: BTVHLTOfflineSource_cfi.py:35
propagate_const.h
edm::MessageDrop::debugEnabled
bool debugEnabled
Definition: MessageDrop.h:63
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::MessageDrop::fwkInfoEnabled
bool fwkInfoEnabled
Definition: MessageDrop.h:65
edm::MessageDrop::infoAlwaysSuppressed
static bool infoAlwaysSuppressed
Definition: MessageDrop.h:72
EDMException.h
edm::messagedrop::StringProducerWithPhase
Definition: MessageDrop.cc:50
edm::MessageDrop::moduleNameProducer
messagedrop::StringProducer const * moduleNameProducer
Definition: MessageDrop.h:80
edm::propagate_const
Definition: propagate_const.h:32
edm::MessageDrop::warningEnabled
bool warningEnabled
Definition: MessageDrop.h:66
edm::MessageDrop::setModuleWithPhase
void setModuleWithPhase(std::string const &name, std::string const &label, unsigned int moduleID, const char *phase)
Definition: MessageDrop.cc:155
edm::MessageDrop::clear
void clear()
Definition: MessageDrop.cc:174
edm::messagedrop::StringProducerSinglet
Definition: MessageDrop.cc:124
edm::MessageDrop::streamID
unsigned int streamID
Definition: MessageDrop.h:62
edm::MessageDrop::messageLoggerScribeIsRunning
static unsigned char messageLoggerScribeIsRunning
Definition: MessageDrop.h:70
CMS_THREAD_SAFE
#define CMS_THREAD_SAFE
Definition: thread_safety_macros.h:4
edm::MessageDrop::debugAlwaysSuppressed
static bool debugAlwaysSuppressed
Definition: MessageDrop.h:71
edm::MessageDrop::MessageDrop
MessageDrop()
Definition: MessageDrop.cc:136
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SiPixelPI::phase
phase
Definition: SiPixelPayloadInspectorHelper.h:39
edm::MessageDrop::~MessageDrop
~MessageDrop()
Definition: MessageDrop.cc:149
edm::MessageDrop::spWithPhase
edm::propagate_const< messagedrop::StringProducerWithPhase * > spWithPhase
Definition: MessageDrop.h:77
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
thread_safety_macros.h
edm::MessageDrop::runEvent
std::string_view runEvent
Definition: MessageDrop.h:61
edm::MessageDrop
Definition: MessageDrop.h:45
edm::MessageDrop::setSinglet
void setSinglet(const char *sing)
Definition: MessageDrop.cc:168
edm::MessageDrop::setPath
void setPath(const char *type, std::string const &pathname)
Definition: MessageDrop.cc:163
edm::MessageDrop::errorEnabled
bool errorEnabled
Definition: MessageDrop.h:67
edm::messagedrop::StringProducerPath
Definition: MessageDrop.cc:97
edm::MessageDrop::instance
static MessageDrop * instance()
Definition: MessageDrop.cc:33
edm::MessageDrop::moduleContext
std::string moduleContext()
Definition: MessageDrop.cc:173
edm::MessageDrop::spPath
edm::propagate_const< messagedrop::StringProducerPath * > spPath
Definition: MessageDrop.h:78
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
edm::MessageDrop::jobMode
static std::string jobMode
Definition: MessageDrop.h:69
edm::MessageDrop::operator=
MessageDrop & operator=(MessageDrop const &)=delete
edm::MessageDrop::fwkInfoAlwaysSuppressed
static bool fwkInfoAlwaysSuppressed
Definition: MessageDrop.h:73
label
const char * label
Definition: PFTauDecayModeTools.cc:11
edm::MessageDrop::infoEnabled
bool infoEnabled
Definition: MessageDrop.h:64