CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
edm::messagedrop::StringProducerPath Class Reference
Inheritance diagram for edm::messagedrop::StringProducerPath:
edm::messagedrop::StringProducer

Public Member Functions

void set (const char *type, std::string const &pathname)
 
 StringProducerPath ()
 
std::string theContext () const override
 
- Public Member Functions inherited from edm::messagedrop::StringProducer
virtual ~StringProducer ()
 

Private Attributes

std::string cache_
 
std::string path_
 
const char * typePtr_
 

Detailed Description

Definition at line 97 of file MessageDrop.cc.

Constructor & Destructor Documentation

◆ StringProducerPath()

edm::messagedrop::StringProducerPath::StringProducerPath ( )
inline

Definition at line 99 of file MessageDrop.cc.

100  : typePtr_("PathNotYetEstablished") // change log 4
101  ,
102  path_(" "),
103  cache_() {}

Member Function Documentation

◆ set()

void edm::messagedrop::StringProducerPath::set ( const char *  type,
std::string const &  pathname 
)
inline

◆ theContext()

std::string edm::messagedrop::StringProducerPath::theContext ( ) const
inlineoverridevirtual

Implements edm::messagedrop::StringProducer.

Definition at line 104 of file MessageDrop.cc.

References cache_, path_, and typePtr_.

104  {
105  if (cache_.empty()) {
106  cache_.assign(typePtr_);
107  cache_.append(path_);
108  }
109  return cache_;
110  }

Member Data Documentation

◆ cache_

std::string edm::messagedrop::StringProducerPath::cache_
mutableprivate

Definition at line 121 of file MessageDrop.cc.

Referenced by set(), and theContext().

◆ path_

std::string edm::messagedrop::StringProducerPath::path_
private

Definition at line 119 of file MessageDrop.cc.

Referenced by set(), and theContext().

◆ typePtr_

const char* edm::messagedrop::StringProducerPath::typePtr_
private

Definition at line 118 of file MessageDrop.cc.

Referenced by set(), and theContext().