68 namespace messagedrop {
79 : name_(&kBlankString),
80 label_(&kBlankString),
81 phasePtr_(
"(Startup)"),
82 moduleID_(
std::numeric_limits<unsigned
int>::
max()),
89 auto nameLableIter = idLabelMap_.find(moduleID_);
90 if (nameLableIter != idLabelMap_.end()) {
91 cache_.assign(nameLableIter->second);
92 cache_.append(phasePtr_);
96 cache_.assign(*name_);
98 cache_.append(*label_);
99 idLabelMap_[moduleID_] = cache_;
100 cache_.append(phasePtr_);
107 moduleID_ = moduleID;
124 : typePtr_(
"PathNotYetEstablished")
129 if (cache_.empty()) {
130 cache_.assign(typePtr_);
131 cache_.append(
path_);
151 void set(
const char* sing) { singlet_ = sing; }
166 spWithPhase(new messagedrop::StringProducerWithPhase),
167 spPath(new messagedrop::StringProducerPath),
168 spSinglet(new messagedrop::StringProducerSinglet),
179 unsigned int moduleID,
186 spPath->set(type, pathname);
static unsigned char messageLoggerScribeIsRunning
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 theContext() const override
std::string moduleContext()
element_type const * get() const
std::string theContext() const override
std::string const * name_
static bool warningAlwaysSuppressed
edm::propagate_const< messagedrop::StringProducerPath * > spPath
std::string_view runEvent
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)