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

Private Attributes

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

Detailed Description

Definition at line 81 of file MessageDrop.h.

Constructor & Destructor Documentation

MessageDrop::MessageDrop ( )
private

Definition at line 209 of file MessageDrop.cc.

210  : moduleName ("")
211  , runEvent("pre-events")
212  , jobreport_name()
213  , jobMode("")
218 {
219 }
std::string jobreport_name
Definition: MessageDrop.h:98
messagedrop::StringProducer const * moduleNameProducer
Definition: MessageDrop.h:113
std::string moduleName
Definition: MessageDrop.h:88
std::string jobMode
Definition: MessageDrop.h:99
messagedrop::StringProducerSinglet * spSinglet
Definition: MessageDrop.h:112
messagedrop::StringProducerWithPhase * spWithPhase
Definition: MessageDrop.h:110
std::string runEvent
Definition: MessageDrop.h:97
messagedrop::StringProducerPath * spPath
Definition: MessageDrop.h:111
MessageDrop::~MessageDrop ( )

Definition at line 221 of file MessageDrop.cc.

References spPath, spSinglet, and spWithPhase.

222 {
223  delete spSinglet;
224  delete spPath;
225  delete spWithPhase;
226 }
messagedrop::StringProducerSinglet * spSinglet
Definition: MessageDrop.h:112
messagedrop::StringProducerWithPhase * spWithPhase
Definition: MessageDrop.h:110
messagedrop::StringProducerPath * spPath
Definition: MessageDrop.h:111

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::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(), edm::service::MessageLogger::unEstablishModule(), and edm::MessageSender::~MessageSender().

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

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

Referenced by edm::MessageSender::~MessageSender().

246  {
247  return moduleNameProducer->theContext();
248 }
messagedrop::StringProducer const * moduleNameProducer
Definition: MessageDrop.h:113
virtual std::string theContext() const =0
void MessageDrop::setModuleWithPhase ( std::string const &  name,
std::string const &  label,
const void *  moduleID,
const char *  phase 
)

Definition at line 228 of file MessageDrop.cc.

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

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

231  {
232  spWithPhase->set(name, label, moduleID, phase);
234 }
const std::string & label
Definition: MVAComputer.cc:186
messagedrop::StringProducer const * moduleNameProducer
Definition: MessageDrop.h:113
void set(std::string const &name, std::string const &label, const void *moduleID, const char *phase)
Definition: MessageDrop.cc:116
messagedrop::StringProducerWithPhase * spWithPhase
Definition: MessageDrop.h:110
void MessageDrop::setPath ( const char *  type,
std::string const &  pathname 
)
void MessageDrop::setSinglet ( const char *  sing)
void MessageDrop::snapshot ( )

Definition at line 250 of file MessageDrop.cc.

References moduleNameProducer.

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

250  {
252 }
messagedrop::StringProducer const * moduleNameProducer
Definition: MessageDrop.h:113

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

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

Definition at line 99 of file MessageDrop.h.

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

std::string edm::MessageDrop::jobreport_name

Definition at line 98 of file MessageDrop.h.

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

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

Definition at line 88 of file MessageDrop.h.

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

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

Definition at line 113 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 111 of file MessageDrop.h.

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

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

Definition at line 112 of file MessageDrop.h.

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

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

Definition at line 110 of file MessageDrop.h.

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

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