70 namespace messagedrop {
82 : name_ (&kBlankString)
83 , label_ (&kBlankString)
84 , phasePtr_ (
"(Startup)")
85 , moduleID_ (
std::numeric_limits<unsigned
int>::
max())
94 auto nameLableIter = idLabelMap_.find(moduleID_);
95 if (nameLableIter != idLabelMap_.end()) {
96 cache_.assign(nameLableIter->second);
97 cache_.append(phasePtr_);
101 cache_.assign(*name_);
103 cache_.append(*label_);
104 idLabelMap_[moduleID_] = cache_;
105 cache_.append(phasePtr_);
111 unsigned int moduleID,
115 moduleID_ = moduleID;
131 : typePtr_(
"PathNotYetEstablished")
137 if ( cache_.empty() ) {
138 cache_.assign(typePtr_);
139 cache_.append(
path_);
157 : singlet_(
"(NoModuleName)")
163 void set(
const char * sing) {singlet_ = sing; }
177 ,
spWithPhase(new messagedrop::StringProducerWithPhase)
178 ,
spPath (new messagedrop::StringProducerPath)
179 ,
spSinglet (new messagedrop::StringProducerSinglet)
193 unsigned int moduleID,
200 spPath->set(type, pathname);
static unsigned char messageLoggerScribeIsRunning
virtual std::string theContext() const override
virtual std::string theContext() const override
StringProducerWithPhase()
std::map< unsigned int, std::string > idLabelMap_
void setModuleWithPhase(std::string const &name, std::string const &label, unsigned int moduleID, const char *phase)
static MessageDrop * instance()
static std::string jobMode
messagedrop::StringProducer const * moduleNameProducer
void setSinglet(const char *sing)
static bool debugAlwaysSuppressed
virtual ~StringProducer()
edm::propagate_const< messagedrop::StringProducerWithPhase * > spWithPhase
edm::propagate_const< messagedrop::StringProducerSinglet * > spSinglet
std::string moduleContext()
element_type const * get() const
std::string const * name_
virtual std::string theContext() const override
static bool warningAlwaysSuppressed
edm::propagate_const< messagedrop::StringProducerPath * > spPath
void setPath(const char *type, std::string const &pathname)
std::string const * label_
static bool infoAlwaysSuppressed
virtual std::string theContext() const =0
EventID const & max(EventID const &lh, EventID const &rh)