test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
edm::messagedrop::StringProducerWithPhase Class Reference
Inheritance diagram for edm::messagedrop::StringProducerWithPhase:
edm::messagedrop::StringProducer

Public Member Functions

void set (std::string const &name, std::string const &label, unsigned int moduleID, const char *phase)
 
 StringProducerWithPhase ()
 
virtual std::string theContext () const override
 
- Public Member Functions inherited from edm::messagedrop::StringProducer
virtual ~StringProducer ()
 

Private Attributes

std::string cache_
 
std::map< unsigned int,
std::string > 
idLabelMap_
 
std::string const * label_
 
unsigned int moduleID_
 
std::string const * name_
 
const char * phasePtr_
 

Detailed Description

Definition at line 78 of file MessageDrop.cc.

Constructor & Destructor Documentation

edm::messagedrop::StringProducerWithPhase::StringProducerWithPhase ( )
inline

Definition at line 81 of file MessageDrop.cc.

82  : name_ (&kBlankString)
83  , label_ (&kBlankString)
84  , phasePtr_ ("(Startup)")
86  , cache_ ()
87  , idLabelMap_ ()
88  {
89  }
std::map< unsigned int, std::string > idLabelMap_
Definition: MessageDrop.cc:125

Member Function Documentation

void edm::messagedrop::StringProducerWithPhase::set ( std::string const &  name,
std::string const &  label,
unsigned int  moduleID,
const char *  phase 
)
inline

Definition at line 109 of file MessageDrop.cc.

References diffTwoXMLs::label, and mergeVDriftHistosByStation::name.

virtual std::string edm::messagedrop::StringProducerWithPhase::theContext ( ) const
inlineoverridevirtual

Implements edm::messagedrop::StringProducer.

Definition at line 91 of file MessageDrop.cc.

References bookConverter::max.

91  {
92  if (cache_.empty()) {
94  auto nameLableIter = idLabelMap_.find(moduleID_);
95  if (nameLableIter != idLabelMap_.end()) {
96  cache_.assign(nameLableIter->second);
97  cache_.append(phasePtr_);
98  return cache_;
99  }
100  }
101  cache_.assign(*name_);
102  cache_.append(":");
103  cache_.append(*label_);
105  cache_.append(phasePtr_);
106  }
107  return cache_;
108  }
std::map< unsigned int, std::string > idLabelMap_
Definition: MessageDrop.cc:125

Member Data Documentation

std::string edm::messagedrop::StringProducerWithPhase::cache_
mutableprivate

Definition at line 124 of file MessageDrop.cc.

std::map<unsigned int, std::string> edm::messagedrop::StringProducerWithPhase::idLabelMap_
mutableprivate

Definition at line 125 of file MessageDrop.cc.

std::string const* edm::messagedrop::StringProducerWithPhase::label_
private
unsigned int edm::messagedrop::StringProducerWithPhase::moduleID_
private

Definition at line 123 of file MessageDrop.cc.

std::string const* edm::messagedrop::StringProducerWithPhase::name_
private

Definition at line 120 of file MessageDrop.cc.

const char* edm::messagedrop::StringProducerWithPhase::phasePtr_
private

Definition at line 122 of file MessageDrop.cc.