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

Constructor & Destructor Documentation

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

Definition at line 123 of file MessageDrop.cc.

124  : typePtr_("PathNotYetEstablished") // change log 4
125  ,
126  path_(" "),
127  cache_() {}

Member Function Documentation

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

Definition at line 135 of file MessageDrop.cc.

References path_.

135  {
136  typePtr_ = type;
137  path_ = pathname;
138  cache_.clear();
139  }
type
Definition: HCALResponse.h:21
std::string edm::messagedrop::StringProducerPath::theContext ( ) const
inlineoverridevirtual

Implements edm::messagedrop::StringProducer.

Definition at line 128 of file MessageDrop.cc.

References path_.

128  {
129  if (cache_.empty()) {
130  cache_.assign(typePtr_);
131  cache_.append(path_);
132  }
133  return cache_;
134  }

Member Data Documentation

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

Definition at line 144 of file MessageDrop.cc.

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

Definition at line 142 of file MessageDrop.cc.