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; }
171 : runEvent(
"pre-events")
172 , streamID(std::numeric_limits<unsigned int>::
max())
175 , warningEnabled(
true)
177 , spWithPhase(new messagedrop::StringProducerWithPhase)
178 , spPath (new messagedrop::StringProducerPath)
179 , spSinglet (new messagedrop::StringProducerSinglet)
180 , moduleNameProducer (spSinglet)
193 unsigned int moduleID,
218 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 CMS_THREAD_SAFE std::string jobMode
messagedrop::StringProducer const * moduleNameProducer
void setSinglet(const char *sing)
static CMS_THREAD_SAFE bool debugAlwaysSuppressed
virtual std::string theContext() const override
virtual ~StringProducer()
virtual std::string theContext() const override
const T & max(const T &a, const T &b)
std::string moduleContext()
std::string const * name_
static CMS_THREAD_SAFE bool warningAlwaysSuppressed
messagedrop::StringProducerSinglet * spSinglet
virtual std::string theContext() const override
messagedrop::StringProducerWithPhase * spWithPhase
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 CMS_THREAD_SAFE bool infoAlwaysSuppressed
messagedrop::StringProducerPath * spPath
EventID const & max(EventID const &lh, EventID const &rh)