CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes | Static 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)
 
virtual void snapshot ()
 
 StringProducerPath ()
 
virtual std::string theContext () const
 
- Public Member Functions inherited from edm::messagedrop::StringProducer
virtual ~StringProducer ()
 

Private Attributes

std::string cache_
 
std::string path_
 
char snapshot_type_ [TYPE_MAX_LENGTH+1]
 
const char * typePtr_
 

Static Private Attributes

static const int TYPE_MAX_LENGTH = 32
 

Detailed Description

Definition at line 160 of file MessageDrop.cc.

Constructor & Destructor Documentation

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

Definition at line 162 of file MessageDrop.cc.

163  : typePtr_("PathNotYetEstablished") // change log 4
164  , path_ (" ")
165  , cache_()
166  , snapshot_type_() {
167  memset(snapshot_type_, '\0', sizeof(snapshot_type_));
168  }
char snapshot_type_[TYPE_MAX_LENGTH+1]
Definition: MessageDrop.cc:194

Member Function Documentation

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

Implements edm::messagedrop::StringProducer.

Definition at line 181 of file MessageDrop.cc.

182  {
183  if ( snapshot_type_ != typePtr_ ) { // change log 6
184  std::strncpy (snapshot_type_,typePtr_,TYPE_MAX_LENGTH);
185  }
188  }
char snapshot_type_[TYPE_MAX_LENGTH+1]
Definition: MessageDrop.cc:194
virtual std::string edm::messagedrop::StringProducerPath::theContext ( ) const
inlinevirtual

Implements edm::messagedrop::StringProducer.

Definition at line 169 of file MessageDrop.cc.

References path_.

169  {
170  if ( cache_.empty() ) {
171  cache_.assign(typePtr_);
172  cache_.append(path_);
173  }
174  return cache_;
175  }

Member Data Documentation

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

Definition at line 193 of file MessageDrop.cc.

std::string edm::messagedrop::StringProducerPath::path_
private
char edm::messagedrop::StringProducerPath::snapshot_type_[TYPE_MAX_LENGTH+1]
private

Definition at line 194 of file MessageDrop.cc.

const int edm::messagedrop::StringProducerPath::TYPE_MAX_LENGTH = 32
staticprivate

Definition at line 190 of file MessageDrop.cc.

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

Definition at line 191 of file MessageDrop.cc.