CMS 3D CMS Logo

Public Member Functions | Private Attributes | Static Private Attributes

edm::messagedrop::StringProducerPath Class Reference

Inheritance diagram for edm::messagedrop::StringProducerPath:
edm::messagedrop::StringProducer

List of all members.

Public Member Functions

void set (const char *type, std::string const &pathname)
virtual void snapshot ()
 StringProducerPath ()
virtual std::string theContext () const

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.

    : typePtr_("PathNotYetEstablished")                 // change log 4
    , path_ (" ")
    , cache_()
    , snapshot_type_() {
      memset(snapshot_type_, '\0', sizeof(snapshot_type_));
    }

Member Function Documentation

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

Definition at line 176 of file MessageDrop.cc.

References path_, and timingPdfMaker::pathname.

Referenced by edm::MessageDrop::setPath().

                                                           {
      typePtr_ = type;
      path_ = pathname;
      cache_.clear();        
    } 
virtual void edm::messagedrop::StringProducerPath::snapshot ( ) [inline, virtual]

Implements edm::messagedrop::StringProducer.

Definition at line 181 of file MessageDrop.cc.

virtual std::string edm::messagedrop::StringProducerPath::theContext ( ) const [inline, virtual]

Implements edm::messagedrop::StringProducer.

Definition at line 169 of file MessageDrop.cc.

References path_.

                                          {
      if ( cache_.empty() ) {
        cache_.assign(typePtr_);
        cache_.append(path_);
      }
      return cache_; 
    }

Member Data Documentation

std::string edm::messagedrop::StringProducerPath::cache_ [mutable, private]

Definition at line 193 of file MessageDrop.cc.

Definition at line 192 of file MessageDrop.cc.

Definition at line 194 of file MessageDrop.cc.

Definition at line 190 of file MessageDrop.cc.

Definition at line 191 of file MessageDrop.cc.