#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 MessageDrop * | instance () |
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::Exception * | ex_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 &) | |
MessageDrop & | operator= (MessageDrop const &) |
Private Attributes | |
messagedrop::StringProducer const * | moduleNameProducer |
messagedrop::StringProducerPath * | spPath |
messagedrop::StringProducerSinglet * | spSinglet |
messagedrop::StringProducerWithPhase * | spWithPhase |
Definition at line 84 of file MessageDrop.h.
MessageDrop::MessageDrop | ( | ) | [private] |
Definition at line 224 of file MessageDrop.cc.
: moduleName ("") , runEvent("pre-events") , jobreport_name() , jobMode("") , spWithPhase(new messagedrop::StringProducerWithPhase) , spPath (new messagedrop::StringProducerPath) , spSinglet (new messagedrop::StringProducerSinglet) , moduleNameProducer (spSinglet) { }
edm::MessageDrop::MessageDrop | ( | MessageDrop const & | ) | [private] |
MessageDrop::~MessageDrop | ( | ) |
Definition at line 236 of file MessageDrop.cc.
References spPath, spSinglet, and spWithPhase.
{ delete spSinglet; delete spPath; delete spWithPhase; }
MessageDrop * MessageDrop::instance | ( | ) | [static] |
Definition at line 65 of file MessageDrop.cc.
References drop.
Referenced by edm::FlushMessageLog(), edm::isMessageProcessingSetUp(), run_app(), and edm::snapshotMessageLog().
{ static boost::thread_specific_ptr<MessageDrop> drops; MessageDrop* drop = drops.get(); if(drop==0) { drops.reset(new MessageDrop); drop=drops.get(); } return 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()().
{ return moduleNameProducer->theContext(); }
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().
{ spWithPhase->set(name, label, moduleID, phase); moduleNameProducer = spWithPhase; }
void MessageDrop::setPath | ( | const char * | type, |
std::string const & | pathname | ||
) |
Definition at line 251 of file MessageDrop.cc.
References moduleNameProducer, edm::messagedrop::StringProducerPath::set(), and spPath.
void MessageDrop::setSinglet | ( | const char * | sing | ) |
Definition at line 256 of file MessageDrop.cc.
References moduleNameProducer, edm::messagedrop::StringProducerSinglet::set(), and spSinglet.
Referenced by edm::service::MessageLogger::establish(), and edm::service::MessageLogger::unEstablishModule().
{ spSinglet->set(sing); moduleNameProducer = spSinglet; }
void MessageDrop::snapshot | ( | ) |
Definition at line 265 of file MessageDrop.cc.
References moduleNameProducer.
Referenced by edm::service::MessageLogger::establishModuleCtor(), and edm::snapshotMessageLog().
{ const_cast<messagedrop::StringProducer *>(moduleNameProducer)->snapshot(); }
bool MessageDrop::debugAlwaysSuppressed = false [static] |
Definition at line 111 of file MessageDrop.h.
Referenced by edm::service::MessageLoggerScribe::configure_dest(), edm::service::MessageLoggerScribe::configure_ordinary_destinations(), and edm::isDebugEnabled().
bool MessageDrop::debugEnabled = true [static] |
Definition at line 105 of file MessageDrop.h.
Referenced by edm::service::MessageLogger::establish(), edm::service::MessageLogger::establishModule(), edm::service::MessageLogger::establishModuleCtor(), edm::isDebugEnabled(), edm::service::MessageLogger::MessageLogger(), and edm::service::MessageLogger::unEstablishModule().
bool MessageDrop::errorEnabled = true [static] |
Definition at line 108 of file MessageDrop.h.
Referenced by edm::service::MessageLogger::establish(), edm::service::MessageLogger::establishModule(), edm::service::MessageLogger::establishModuleCtor(), edm::isErrorEnabled(), and edm::service::MessageLogger::unEstablishModule().
edm::Exception * MessageDrop::ex_p = 0 [static] |
Definition at line 110 of file MessageDrop.h.
bool MessageDrop::infoAlwaysSuppressed = false [static] |
Definition at line 112 of file MessageDrop.h.
Referenced by edm::service::MessageLoggerScribe::configure_dest(), edm::service::MessageLoggerScribe::configure_ordinary_destinations(), and edm::isInfoEnabled().
bool MessageDrop::infoEnabled = true [static] |
Definition at line 106 of file MessageDrop.h.
Referenced by edm::service::MessageLogger::establish(), edm::service::MessageLogger::establishModule(), edm::service::MessageLogger::establishModuleCtor(), edm::isInfoEnabled(), and edm::service::MessageLogger::unEstablishModule().
std::string edm::MessageDrop::jobMode |
Definition at line 104 of file MessageDrop.h.
std::string edm::MessageDrop::jobreport_name |
Definition at line 103 of file MessageDrop.h.
unsigned char MessageDrop::messageLoggerScribeIsRunning = 0 [static] |
Definition at line 109 of file MessageDrop.h.
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 |
Definition at line 102 of file MessageDrop.h.
Referenced by edm::MessageSender::ErrorObjDeleter::operator()().
Definition at line 116 of file MessageDrop.h.
Referenced by setPath(), and ~MessageDrop().
Definition at line 117 of file MessageDrop.h.
Referenced by setSinglet(), and ~MessageDrop().
Definition at line 115 of file MessageDrop.h.
Referenced by setModuleWithPhase(), and ~MessageDrop().
bool MessageDrop::warningAlwaysSuppressed = false [static] |
Definition at line 113 of file MessageDrop.h.
Referenced by edm::service::MessageLoggerScribe::configure_dest(), edm::service::MessageLoggerScribe::configure_ordinary_destinations(), and edm::isWarningEnabled().
bool MessageDrop::warningEnabled = true [static] |
Definition at line 107 of file MessageDrop.h.
Referenced by edm::service::MessageLogger::establish(), edm::service::MessageLogger::establishModule(), edm::service::MessageLogger::establishModuleCtor(), edm::isWarningEnabled(), and edm::service::MessageLogger::unEstablishModule().