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

Constructor & Destructor Documentation

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

Definition at line 130 of file MessageDrop.cc.

131  : typePtr_("PathNotYetEstablished") // change log 4
132  , path_ (" ")
133  , cache_()
134  {
135  }

Member Function Documentation

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

Definition at line 143 of file MessageDrop.cc.

References path_.

143  {
144  typePtr_ = type;
145  path_ = pathname;
146  cache_.clear();
147  }
type
Definition: HCALResponse.h:21
std::string edm::messagedrop::StringProducerPath::theContext ( ) const
inlineoverridevirtual

Implements edm::messagedrop::StringProducer.

Definition at line 136 of file MessageDrop.cc.

References path_.

136  {
137  if ( cache_.empty() ) {
138  cache_.assign(typePtr_);
139  cache_.append(path_);
140  }
141  return cache_;
142  }

Member Data Documentation

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

Definition at line 151 of file MessageDrop.cc.

std::string edm::messagedrop::StringProducerPath::path_
private
const char* edm::messagedrop::StringProducerPath::typePtr_
private

Definition at line 149 of file MessageDrop.cc.