42 namespace messagedrop {
53 : name_(&kBlankString),
54 label_(&kBlankString),
55 phasePtr_(
"(Startup)"),
56 moduleID_(std::numeric_limits<unsigned int>::
max()),
63 auto nameLableIter = idLabelMap_.find(moduleID_);
64 if (nameLableIter != idLabelMap_.end()) {
65 cache_.assign(nameLableIter->second);
66 cache_.append(phasePtr_);
70 cache_.assign(*name_);
72 cache_.append(*label_);
73 idLabelMap_[moduleID_] = cache_;
74 cache_.append(phasePtr_);
100 : typePtr_(
"PathNotYetEstablished")
105 if (cache_.empty()) {
106 cache_.assign(typePtr_);
107 cache_.append(
path_);
128 void set(
const char* sing) { singlet_ = sing; }
137 : runEvent(
"pre-events"),
138 streamID(std::numeric_limits<unsigned int>::
max()),
141 fwkInfoEnabled(
true),
142 warningEnabled(
true),
144 spWithPhase(new messagedrop::StringProducerWithPhase),
145 spPath(new messagedrop::StringProducerPath),
146 spSinglet(new messagedrop::StringProducerSinglet),
147 moduleNameProducer(spSinglet) {}
157 unsigned int moduleID,
164 spPath->set(type, pathname);
177 unsigned char MessageDrop::messageLoggerScribeIsRunning = 0;
void set(std::string const &name, std::string const &label, unsigned int moduleID, const char *phase)
StringProducerWithPhase()
void set(const char *type, std::string const &pathname)
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()
std::string const * name_
static bool warningAlwaysSuppressed
edm::propagate_const< messagedrop::StringProducerPath * > spPath
std::string theContext() const override
static bool fwkInfoAlwaysSuppressed
constexpr element_type const * get() const
virtual std::string theContext() const =0
void set(const char *sing)
void setPath(const char *type, std::string const &pathname)
std::string const * label_
static bool infoAlwaysSuppressed
std::string theContext() const override
EventID const & max(EventID const &lh, EventID const &rh)