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 Types | Private Attributes | Static 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, const void *moduleID, const char *phase)
 
virtual void snapshot ()
 
 StringProducerWithPhase ()
 
virtual std::string theContext () const
 
- Public Member Functions inherited from edm::messagedrop::StringProducer
virtual ~StringProducer ()
 

Private Types

typedef std::map< const void
*, std::string >
::const_iterator 
NLMiter
 

Private Attributes

std::string cache_
 
std::string const * label_
 
std::string const label_initial_value_
 
const void * moduleID_
 
std::string const * name_
 
std::string const name_initial_value_
 
std::map< const void
*, std::string > 
nameLabelMap_
 
const char * phasePtr_
 
std::string snapshot_label_
 
std::string snapshot_name_
 
char snapshot_phase_ [PHASE_MAX_LENGTH+1]
 

Static Private Attributes

static const int PHASE_MAX_LENGTH = 32
 

Detailed Description

Definition at line 86 of file MessageDrop.cc.

Member Typedef Documentation

typedef std::map<const void*, std::string>::const_iterator edm::messagedrop::StringProducerWithPhase::NLMiter
private

Definition at line 88 of file MessageDrop.cc.

Constructor & Destructor Documentation

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

Definition at line 90 of file MessageDrop.cc.

91  : name_initial_value_ (" ") // change log 4
92  , label_initial_value_ (" ")
95  , phasePtr_ ("(Startup)")
96  , moduleID_ (0)
97  , cache_ ()
98  , nameLabelMap_ ()
99  , snapshot_name_ ()
100  , snapshot_label_ ()
101  , snapshot_phase_ () {
102  memset(snapshot_phase_, '\0', sizeof(snapshot_phase_));
103  }
std::map< const void *, std::string > nameLabelMap_
Definition: MessageDrop.cc:154
char snapshot_phase_[PHASE_MAX_LENGTH+1]
Definition: MessageDrop.cc:157

Member Function Documentation

void edm::messagedrop::StringProducerWithPhase::set ( std::string const &  name,
std::string const &  label,
const void *  moduleID,
const char *  phase 
)
inline
virtual void edm::messagedrop::StringProducerWithPhase::snapshot ( )
inlinevirtual
virtual std::string edm::messagedrop::StringProducerWithPhase::theContext ( ) const
inlinevirtual

Implements edm::messagedrop::StringProducer.

Definition at line 105 of file MessageDrop.cc.

105  {
106  if (cache_.empty()) {
107  if (moduleID_ != 0) {
108  NLMiter nameLableIter = nameLabelMap_.find(moduleID_);
109  if (nameLableIter != nameLabelMap_.end()) {
110  cache_.assign(nameLableIter->second);
111  cache_.append(phasePtr_);
112  return cache_;
113  }
114  }
115  cache_.assign(*name_);
116  cache_.append(":");
117  cache_.append(*label_);
119  cache_.append(phasePtr_);
120  }
121  return cache_;
122  }
std::map< const void *, std::string > nameLabelMap_
Definition: MessageDrop.cc:154
std::map< const void *, std::string >::const_iterator NLMiter
Definition: MessageDrop.cc:88

Member Data Documentation

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

Definition at line 153 of file MessageDrop.cc.

std::string const* edm::messagedrop::StringProducerWithPhase::label_
private
std::string const edm::messagedrop::StringProducerWithPhase::label_initial_value_
private

Definition at line 148 of file MessageDrop.cc.

const void* edm::messagedrop::StringProducerWithPhase::moduleID_
private

Definition at line 152 of file MessageDrop.cc.

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

Definition at line 149 of file MessageDrop.cc.

std::string const edm::messagedrop::StringProducerWithPhase::name_initial_value_
private

Definition at line 147 of file MessageDrop.cc.

std::map<const void*, std::string> edm::messagedrop::StringProducerWithPhase::nameLabelMap_
mutableprivate

Definition at line 154 of file MessageDrop.cc.

const int edm::messagedrop::StringProducerWithPhase::PHASE_MAX_LENGTH = 32
staticprivate

Definition at line 146 of file MessageDrop.cc.

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

Definition at line 151 of file MessageDrop.cc.

std::string edm::messagedrop::StringProducerWithPhase::snapshot_label_
private

Definition at line 156 of file MessageDrop.cc.

std::string edm::messagedrop::StringProducerWithPhase::snapshot_name_
private

Definition at line 155 of file MessageDrop.cc.

char edm::messagedrop::StringProducerWithPhase::snapshot_phase_[PHASE_MAX_LENGTH+1]
private

Definition at line 157 of file MessageDrop.cc.