CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 CMS_THREAD_SAFE bool debugAlwaysSuppressed =false
 
static CMS_THREAD_SAFE bool infoAlwaysSuppressed =false
 
static CMS_THREAD_SAFE std::string jobMode {}
 
static CMS_THREAD_SAFE
unsigned char 
messageLoggerScribeIsRunning = 0
 
static CMS_THREAD_SAFE bool warningAlwaysSuppressed =false
 

Private Member Functions

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

Private Attributes

messagedrop::StringProducer const * moduleNameProducer
 
messagedrop::StringProducerPathspPath
 
messagedrop::StringProducerSingletspSinglet
 
messagedrop::StringProducerWithPhasespWithPhase
 

Detailed Description

Definition at line 84 of file MessageDrop.h.

Constructor & Destructor Documentation

MessageDrop::MessageDrop ( )
private

Definition at line 170 of file MessageDrop.cc.

171  : runEvent("pre-events")
173  , debugEnabled(true)
174  , infoEnabled(true)
175  , warningEnabled(true)
176  , errorEnabled(true)
181 {
182 }
messagedrop::StringProducer const * moduleNameProducer
Definition: MessageDrop.h:118
const T & max(const T &a, const T &b)
unsigned int streamID
Definition: MessageDrop.h:103
messagedrop::StringProducerSinglet * spSinglet
Definition: MessageDrop.h:117
messagedrop::StringProducerWithPhase * spWithPhase
Definition: MessageDrop.h:115
std::string runEvent
Definition: MessageDrop.h:102
messagedrop::StringProducerPath * spPath
Definition: MessageDrop.h:116
edm::MessageDrop::MessageDrop ( MessageDrop const &  )
private
MessageDrop::~MessageDrop ( )

Definition at line 184 of file MessageDrop.cc.

References spPath, spSinglet, and spWithPhase.

185 {
186  delete spSinglet;
187  delete spPath;
188  delete spWithPhase;
189 }
messagedrop::StringProducerSinglet * spSinglet
Definition: MessageDrop.h:117
messagedrop::StringProducerWithPhase * spWithPhase
Definition: MessageDrop.h:115
messagedrop::StringProducerPath * spPath
Definition: MessageDrop.h:116

Member Function Documentation

void MessageDrop::clear ( void  )

Definition at line 212 of file MessageDrop.cc.

References setSinglet().

Referenced by edm::clearMessageLog().

212  {
213  setSinglet("");
214 }
void setSinglet(const char *sing)
Definition: MessageDrop.cc:204
MessageDrop * MessageDrop::instance ( )
static

Definition at line 60 of file MessageDrop.cc.

Referenced by edm::clearMessageLog(), edm::service::MessageLogger::establish(), edm::service::MessageLogger::establishModule(), edm::FlushMessageLog(), PixelDataFormatter::interpretRawData(), 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::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(), SiPixelDigiToRaw::produce(), SiPixelRawToDigi::produce(), RPCRecordFormatter::recordUnpack(), edm::service::MessageLoggerScribe::run(), run_app(), edm::service::MessageLoggerScribe::runCommand(), edm::service::SingleThreadMSPresence::SingleThreadMSPresence(), edm::service::MessageLogger::unEstablish(), and edm::service::MessageLogger::unEstablishModule().

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

Definition at line 209 of file MessageDrop.cc.

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

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

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

Definition at line 191 of file MessageDrop.cc.

References moduleNameProducer, edm::messagedrop::StringProducerWithPhase::set(), and spWithPhase.

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

194  {
195  spWithPhase->set(name, label, moduleID, phase);
197 }
void set(std::string const &name, std::string const &label, unsigned int moduleID, const char *phase)
Definition: MessageDrop.cc:109
messagedrop::StringProducer const * moduleNameProducer
Definition: MessageDrop.h:118
messagedrop::StringProducerWithPhase * spWithPhase
Definition: MessageDrop.h:115
void MessageDrop::setPath ( const char *  type,
std::string const &  pathname 
)

Definition at line 199 of file MessageDrop.cc.

References moduleNameProducer, edm::messagedrop::StringProducerPath::set(), and spPath.

199  {
200  spPath->set(type, pathname);
202 }
type
Definition: HCALResponse.h:21
void set(const char *type, std::string const &pathname)
Definition: MessageDrop.cc:143
messagedrop::StringProducer const * moduleNameProducer
Definition: MessageDrop.h:118
messagedrop::StringProducerPath * spPath
Definition: MessageDrop.h:116
void MessageDrop::setSinglet ( const char *  sing)

Definition at line 204 of file MessageDrop.cc.

References moduleNameProducer, edm::messagedrop::StringProducerSinglet::set(), and spSinglet.

Referenced by clear(), edm::service::MessageLogger::establish(), edm::service::MessageLogger::jobFailure(), 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(), edm::service::MessageLogger::unEstablish(), and edm::service::MessageLogger::unEstablishModule().

204  {
205  spSinglet->set(sing);
207 }
messagedrop::StringProducer const * moduleNameProducer
Definition: MessageDrop.h:118
messagedrop::StringProducerSinglet * spSinglet
Definition: MessageDrop.h:117

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 109 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 118 of file MessageDrop.h.

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

std::string edm::MessageDrop::runEvent
messagedrop::StringProducerPath* edm::MessageDrop::spPath
private

Definition at line 116 of file MessageDrop.h.

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

messagedrop::StringProducerSinglet* edm::MessageDrop::spSinglet
private

Definition at line 117 of file MessageDrop.h.

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

messagedrop::StringProducerWithPhase* edm::MessageDrop::spWithPhase
private

Definition at line 115 of file MessageDrop.h.

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

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