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 124 of file MessageDrop.cc.

Constructor & Destructor Documentation

◆ StringProducerPath()

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

Definition at line 126 of file MessageDrop.cc.

127  : typePtr_("PathNotYetEstablished") // change log 4
128  ,
129  path_(" "),
130  cache_() {}

Member Function Documentation

◆ set()

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

Definition at line 138 of file MessageDrop.cc.

138  {
139  typePtr_ = type;
140  path_ = pathname;
141  cache_.clear();
142  }

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

◆ theContext()

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

Implements edm::messagedrop::StringProducer.

Definition at line 131 of file MessageDrop.cc.

131  {
132  if (cache_.empty()) {
133  cache_.assign(typePtr_);
134  cache_.append(path_);
135  }
136  return cache_;
137  }

References cache_, path_, and typePtr_.

Member Data Documentation

◆ cache_

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

Definition at line 148 of file MessageDrop.cc.

Referenced by set(), and theContext().

◆ path_

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

◆ typePtr_

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

Definition at line 145 of file MessageDrop.cc.

Referenced by set(), and theContext().

BTVHLTOfflineSource_cfi.pathname
pathname
Definition: BTVHLTOfflineSource_cfi.py:28
edm::messagedrop::StringProducerPath::cache_
std::string cache_
Definition: MessageDrop.cc:148
edm::messagedrop::StringProducerPath::path_
std::string path_
Definition: MessageDrop.cc:146
type
type
Definition: HCALResponse.h:21
edm::messagedrop::StringProducerPath::typePtr_
const char * typePtr_
Definition: MessageDrop.cc:145