CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Private Attributes
edm::MessageDrop Struct Reference

#include <MessageDrop.h>

Public Member Functions

void clear ()
 
std::string moduleContext ()
 
void setModuleWithPhase (std::string const &name, std::string const &label, unsigned int moduleID, const char *phase)
 
void setPath (const char *type, std::string const &pathname)
 
void setSinglet (const char *sing)
 
 ~MessageDrop ()
 

Static Public Member Functions

static MessageDropinstance ()
 

Public Attributes

bool debugEnabled
 
bool errorEnabled
 
bool infoEnabled
 
std::string runEvent
 
unsigned int streamID
 
bool warningEnabled
 

Static Public Attributes

static bool debugAlwaysSuppressed = false
 
static bool infoAlwaysSuppressed = false
 
static std::string jobMode {}
 
static unsigned char messageLoggerScribeIsRunning = 0
 
static bool warningAlwaysSuppressed = false
 

Private Member Functions

 MessageDrop ()
 
 MessageDrop (MessageDrop const &)=delete
 
MessageDropoperator= (MessageDrop const &)=delete
 

Private Attributes

messagedrop::StringProducer const * moduleNameProducer
 
edm::propagate_const< messagedrop::StringProducerPath * > spPath
 
edm::propagate_const< messagedrop::StringProducerSinglet * > spSinglet
 
edm::propagate_const< messagedrop::StringProducerWithPhase * > spWithPhase
 

Detailed Description

Definition at line 84 of file MessageDrop.h.

Constructor & Destructor Documentation

MessageDrop::MessageDrop ( )
private

Definition at line 159 of file MessageDrop.cc.

160  : runEvent("pre-events"),
162  debugEnabled(true),
163  infoEnabled(true),
164  warningEnabled(true),
165  errorEnabled(true),
messagedrop::StringProducer const * moduleNameProducer
Definition: MessageDrop.h:116
edm::propagate_const< messagedrop::StringProducerWithPhase * > spWithPhase
Definition: MessageDrop.h:113
edm::propagate_const< messagedrop::StringProducerSinglet * > spSinglet
Definition: MessageDrop.h:115
unsigned int streamID
Definition: MessageDrop.h:101
edm::propagate_const< messagedrop::StringProducerPath * > spPath
Definition: MessageDrop.h:114
std::string runEvent
Definition: MessageDrop.h:100
edm::MessageDrop::MessageDrop ( MessageDrop const &  )
privatedelete
MessageDrop::~MessageDrop ( )

Definition at line 171 of file MessageDrop.cc.

References edm::propagate_const< T >::get(), spPath, spSinglet, and spWithPhase.

171  {
172  delete spSinglet.get();
173  delete spPath.get();
174  delete spWithPhase.get();
175  }
edm::propagate_const< messagedrop::StringProducerWithPhase * > spWithPhase
Definition: MessageDrop.h:113
edm::propagate_const< messagedrop::StringProducerSinglet * > spSinglet
Definition: MessageDrop.h:115
element_type const * get() const
edm::propagate_const< messagedrop::StringProducerPath * > spPath
Definition: MessageDrop.h:114

Member Function Documentation

void MessageDrop::clear ( void  )

Definition at line 196 of file MessageDrop.cc.

References messageLoggerScribeIsRunning, and setSinglet().

Referenced by edm::clearMessageLog().

196 { setSinglet(""); }
void setSinglet(const char *sing)
Definition: MessageDrop.cc:190
MessageDrop * MessageDrop::instance ( )
static

Definition at line 59 of file MessageDrop.cc.

References AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by edm::clearMessageLog(), edm::service::MessageLogger::establish(), edm::FlushMessageLog(), edm::isDebugEnabled(), edm::isErrorEnabled(), edm::isInfoEnabled(), edm::isMessageProcessingSetUp(), edm::isWarningEnabled(), edm::service::MessageLogger::jobFailure(), edm::service::MessageLogger::MessageLogger(), edm::MessageSender::ErrorObjDeleter::operator()(), edm::service::MessageLogger::postBeginJob(), edm::service::MessageLogger::postEvent(), edm::service::MessageLogger::postGlobalBeginLumi(), edm::service::MessageLogger::postGlobalBeginRun(), edm::service::MessageLogger::postGlobalEndLumi(), edm::service::MessageLogger::postGlobalEndRun(), edm::service::MessageLogger::postPathEvent(), edm::service::MessageLogger::postSourceEvent(), edm::service::MessageLogger::postStreamBeginLumi(), edm::service::MessageLogger::postStreamBeginRun(), edm::service::MessageLogger::postStreamEndLumi(), edm::service::MessageLogger::postStreamEndRun(), edm::service::MessageLogger::preEvent(), edm::service::MessageLogger::preGlobalBeginLumi(), edm::service::MessageLogger::preGlobalBeginRun(), edm::service::MessageLogger::preGlobalEndLumi(), edm::service::MessageLogger::preGlobalEndRun(), edm::service::MessageLogger::prePathEvent(), edm::service::MessageLogger::preStreamBeginLumi(), edm::service::MessageLogger::preStreamBeginRun(), edm::service::MessageLogger::preStreamEndLumi(), edm::service::MessageLogger::preStreamEndRun(), RPCUnpackingModule::produce(), SiPixelRawToDigi::produce(), omtf::OmtfUnpacker::produce(), RPCRecordFormatter::recordUnpack(), edm::service::MessageLoggerScribe::run(), run_app(), edm::service::MessageLoggerScribe::runCommand(), edm::service::SingleThreadMSPresence::SingleThreadMSPresence(), and edm::service::MessageLogger::unEstablish().

59  {
60  thread_local static MessageDrop s_drop{};
61  return &s_drop;
62 }
std::string MessageDrop::moduleContext ( )

Definition at line 195 of file MessageDrop.cc.

References moduleNameProducer, and edm::messagedrop::StringProducer::theContext().

Referenced by edm::MessageSender::ErrorObjDeleter::operator()().

195 { return moduleNameProducer->theContext(); }
messagedrop::StringProducer const * moduleNameProducer
Definition: MessageDrop.h:116
virtual std::string theContext() const =0
MessageDrop& edm::MessageDrop::operator= ( MessageDrop const &  )
privatedelete
void MessageDrop::setModuleWithPhase ( std::string const &  name,
std::string const &  label,
unsigned int  moduleID,
const char *  phase 
)

Definition at line 177 of file MessageDrop.cc.

References moduleNameProducer, and spWithPhase.

Referenced by edm::service::MessageLogger::MessageLogger().

180  {
181  spWithPhase->set(name, label, moduleID, phase);
183  }
messagedrop::StringProducer const * moduleNameProducer
Definition: MessageDrop.h:116
char const * label
edm::propagate_const< messagedrop::StringProducerWithPhase * > spWithPhase
Definition: MessageDrop.h:113
void MessageDrop::setPath ( const char *  type,
std::string const &  pathname 
)

Definition at line 185 of file MessageDrop.cc.

References moduleNameProducer, and spPath.

185  {
186  spPath->set(type, pathname);
188  }
type
Definition: HCALResponse.h:21
messagedrop::StringProducer const * moduleNameProducer
Definition: MessageDrop.h:116
edm::propagate_const< messagedrop::StringProducerPath * > spPath
Definition: MessageDrop.h:114
void MessageDrop::setSinglet ( const char *  sing)

Definition at line 190 of file MessageDrop.cc.

References moduleNameProducer, and spSinglet.

Referenced by clear(), edm::service::MessageLogger::establish(), edm::service::MessageLogger::jobFailure(), edm::service::MessageLogger::MessageLogger(), edm::service::MessageLogger::postBeginJob(), edm::service::MessageLogger::postGlobalBeginLumi(), edm::service::MessageLogger::postGlobalBeginRun(), edm::service::MessageLogger::postGlobalEndLumi(), edm::service::MessageLogger::postGlobalEndRun(), edm::service::MessageLogger::postPathEvent(), edm::service::MessageLogger::postStreamBeginLumi(), edm::service::MessageLogger::postStreamBeginRun(), edm::service::MessageLogger::postStreamEndLumi(), edm::service::MessageLogger::postStreamEndRun(), edm::service::MessageLogger::preEvent(), edm::service::MessageLogger::preGlobalBeginLumi(), edm::service::MessageLogger::preGlobalBeginRun(), edm::service::MessageLogger::preGlobalEndLumi(), edm::service::MessageLogger::preGlobalEndRun(), edm::service::MessageLogger::preStreamBeginLumi(), edm::service::MessageLogger::preStreamBeginRun(), edm::service::MessageLogger::preStreamEndLumi(), edm::service::MessageLogger::preStreamEndRun(), and edm::service::MessageLogger::unEstablish().

190  {
191  spSinglet->set(sing);
193  }
messagedrop::StringProducer const * moduleNameProducer
Definition: MessageDrop.h:116
edm::propagate_const< messagedrop::StringProducerSinglet * > spSinglet
Definition: MessageDrop.h:115

Member Data Documentation

bool MessageDrop::debugAlwaysSuppressed = false
static
bool edm::MessageDrop::debugEnabled
bool edm::MessageDrop::errorEnabled
bool MessageDrop::infoAlwaysSuppressed = false
static
bool edm::MessageDrop::infoEnabled
std::string MessageDrop::jobMode {}
static

Definition at line 107 of file MessageDrop.h.

Referenced by edm::service::MessageLogger::MessageLogger().

unsigned char MessageDrop::messageLoggerScribeIsRunning = 0
static
messagedrop::StringProducer const* edm::MessageDrop::moduleNameProducer
private

Definition at line 116 of file MessageDrop.h.

Referenced by moduleContext(), setModuleWithPhase(), setPath(), and setSinglet().

std::string edm::MessageDrop::runEvent
edm::propagate_const<messagedrop::StringProducerPath*> edm::MessageDrop::spPath
private

Definition at line 114 of file MessageDrop.h.

Referenced by setPath(), and ~MessageDrop().

edm::propagate_const<messagedrop::StringProducerSinglet*> edm::MessageDrop::spSinglet
private

Definition at line 115 of file MessageDrop.h.

Referenced by setSinglet(), and ~MessageDrop().

edm::propagate_const<messagedrop::StringProducerWithPhase*> edm::MessageDrop::spWithPhase
private

Definition at line 113 of file MessageDrop.h.

Referenced by setModuleWithPhase(), and ~MessageDrop().

unsigned int edm::MessageDrop::streamID
bool MessageDrop::warningAlwaysSuppressed = false
static
bool edm::MessageDrop::warningEnabled