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

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

Static Public Member Functions

static MessageDropinstance ()
 

Public Attributes

std::string jobMode
 
std::string jobreport_name
 
std::string moduleName
 
std::string runEvent
 

Static Public Attributes

static bool debugAlwaysSuppressed =false
 
static bool debugEnabled =true
 
static bool errorEnabled =true
 
static edm::Exceptionex_p = 0
 
static bool infoAlwaysSuppressed =false
 
static bool infoEnabled =true
 
static unsigned char messageLoggerScribeIsRunning = 0
 
static bool warningAlwaysSuppressed =false
 
static bool warningEnabled =true
 

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 224 of file MessageDrop.cc.

225  : moduleName ("")
226  , runEvent("pre-events")
227  , jobreport_name()
228  , jobMode("")
233 {
234 }
std::string jobreport_name
Definition: MessageDrop.h:103
messagedrop::StringProducer const * moduleNameProducer
Definition: MessageDrop.h:118
std::string moduleName
Definition: MessageDrop.h:93
std::string jobMode
Definition: MessageDrop.h:104
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 236 of file MessageDrop.cc.

References spPath, spSinglet, and spWithPhase.

237 {
238  delete spSinglet;
239  delete spPath;
240  delete spWithPhase;
241 }
messagedrop::StringProducerSinglet * spSinglet
Definition: MessageDrop.h:117
messagedrop::StringProducerWithPhase * spWithPhase
Definition: MessageDrop.h:115
messagedrop::StringProducerPath * spPath
Definition: MessageDrop.h:116

Member Function Documentation

MessageDrop * MessageDrop::instance ( )
static

Definition at line 65 of file MessageDrop.cc.

References drop.

Referenced by RPCReadOutMapping::detUnitFrame(), edm::service::MessageLogger::establish(), edm::service::MessageLogger::establishModule(), edm::service::MessageLogger::establishModuleCtor(), edm::FlushMessageLog(), PixelDataFormatter::interpretRawData(), edm::isMessageProcessingSetUp(), edm::service::MessageLogger::jobFailure(), edm::service::MessageLogger::MessageLogger(), DBSpecToDetUnit::operator()(), edm::MessageSender::ErrorObjDeleter::operator()(), edm::service::MessageLogger::postBeginJob(), edm::service::MessageLogger::postBeginLumi(), edm::service::MessageLogger::postBeginRun(), edm::service::MessageLogger::postEndLumi(), edm::service::MessageLogger::postEndRun(), edm::service::MessageLogger::postEventProcessing(), edm::service::MessageLogger::postPathBeginLumi(), edm::service::MessageLogger::postPathBeginRun(), edm::service::MessageLogger::postPathEndLumi(), edm::service::MessageLogger::postPathEndRun(), edm::service::MessageLogger::postProcessPath(), edm::service::MessageLogger::preBeginLumi(), edm::service::MessageLogger::preBeginRun(), edm::service::MessageLogger::preEndLumi(), edm::service::MessageLogger::preEndRun(), edm::service::MessageLogger::preEventProcessing(), edm::service::MessageLogger::prePathBeginLumi(), edm::service::MessageLogger::prePathBeginRun(), edm::service::MessageLogger::prePathEndLumi(), edm::service::MessageLogger::prePathEndRun(), edm::service::MessageLogger::preProcessPath(), RPCUnpackingModule::produce(), SiPixelDigiToRaw::produce(), SiPixelRawToDigi::produce(), RPCRecordFormatter::recordUnpack(), edm::service::MessageLoggerScribe::run(), run_app(), edm::service::MessageLoggerScribe::runCommand(), edm::service::SingleThreadMSPresence::SingleThreadMSPresence(), edm::snapshotMessageLog(), edm::service::MessageLogger::unEstablish(), and edm::service::MessageLogger::unEstablishModule().

66 {
67  static boost::thread_specific_ptr<MessageDrop> drops;
68  MessageDrop* drop = drops.get();
69  if(drop==0) {
70  drops.reset(new MessageDrop);
71  drop=drops.get();
72  }
73  return drop;
74 }
const int drop
std::string MessageDrop::moduleContext ( )

Definition at line 261 of file MessageDrop.cc.

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

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

261  {
262  return moduleNameProducer->theContext();
263 }
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,
const void *  moduleID,
const char *  phase 
)

Definition at line 243 of file MessageDrop.cc.

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

Referenced by edm::service::MessageLogger::establishModule(), and edm::service::MessageLogger::establishModuleCtor().

246  {
247  spWithPhase->set(name, label, moduleID, phase);
249 }
messagedrop::StringProducer const * moduleNameProducer
Definition: MessageDrop.h:118
void set(std::string const &name, std::string const &label, const void *moduleID, const char *phase)
Definition: MessageDrop.cc:123
messagedrop::StringProducerWithPhase * spWithPhase
Definition: MessageDrop.h:115
void MessageDrop::setPath ( const char *  type,
std::string const &  pathname 
)
void MessageDrop::setSinglet ( const char *  sing)
void MessageDrop::snapshot ( )

Definition at line 265 of file MessageDrop.cc.

References moduleNameProducer.

Referenced by edm::service::MessageLogger::establishModuleCtor(), and edm::snapshotMessageLog().

265  {
267 }
messagedrop::StringProducer const * moduleNameProducer
Definition: MessageDrop.h:118

Member Data Documentation

bool MessageDrop::debugAlwaysSuppressed =false
static
bool MessageDrop::debugEnabled =true
static
bool MessageDrop::errorEnabled =true
static
edm::Exception * MessageDrop::ex_p = 0
static

Definition at line 110 of file MessageDrop.h.

bool MessageDrop::infoAlwaysSuppressed =false
static
bool MessageDrop::infoEnabled =true
static
std::string edm::MessageDrop::jobMode

Definition at line 104 of file MessageDrop.h.

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

std::string edm::MessageDrop::jobreport_name

Definition at line 103 of file MessageDrop.h.

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

unsigned char MessageDrop::messageLoggerScribeIsRunning = 0
static
std::string edm::MessageDrop::moduleName

Definition at line 93 of file MessageDrop.h.

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

messagedrop::StringProducer const* edm::MessageDrop::moduleNameProducer
private

Definition at line 118 of file MessageDrop.h.

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

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().

bool MessageDrop::warningAlwaysSuppressed =false
static
bool MessageDrop::warningEnabled =true
static