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

Definition at line 111 of file MessageDrop.cc.

111  {
112  typePtr_ = type;
113  path_ = pathname;
114  cache_.clear();
115  }

References cache_, path_, BTVHLTOfflineSource_cfi::pathname, and typePtr_.

◆ theContext()

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

Implements edm::messagedrop::StringProducer.

Definition at line 104 of file MessageDrop.cc.

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

References cache_, path_, and typePtr_.

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().

BTVHLTOfflineSource_cfi.pathname
pathname
Definition: BTVHLTOfflineSource_cfi.py:35
edm::messagedrop::StringProducerPath::cache_
std::string cache_
Definition: MessageDrop.cc:121
edm::messagedrop::StringProducerPath::path_
std::string path_
Definition: MessageDrop.cc:119
gainCalibHelper::gainCalibPI::type
type
Definition: SiPixelGainCalibHelper.h:40
edm::messagedrop::StringProducerPath::typePtr_
const char * typePtr_
Definition: MessageDrop.cc:118