Public Member Functions | Private Attributes | List of all members
mf::MessageDrop::StringProducerPath Class Reference
Inheritance diagram for mf::MessageDrop::StringProducerPath:
mf::MessageDrop::StringProducer

Public Member Functions

virtual string theContext () const override
 
void set (string const &phase, string const &path)
 
- Public Member Functions inherited from mf::MessageDrop::StringProducer
virtual ~StringProducer () noexcept=default
 

Private Attributes

string phase_ {"(NoPath)"}
 
string path_ {}
 
string cache_
 

Detailed Description

Definition at line 84 of file MessageDrop.cc.

Member Function Documentation

void mf::MessageDrop::StringProducerPath::set ( string const &  phase,
string const &  path 
)
inline

Definition at line 99 of file MessageDrop.cc.

100  {
101  phase_ = phase;
102  path_ = path;
103  cache_.clear();
104  }
virtual string mf::MessageDrop::StringProducerPath::theContext ( ) const
inlineoverridevirtual

Implements mf::MessageDrop::StringProducer.

Definition at line 88 of file MessageDrop.cc.

89  {
90  if (cache_.empty()) {
91  cache_.assign(phase_);
92  cache_.append(" ");
93  cache_.append(path_);
94  }
95  return cache_;
96  }

Member Data Documentation

string mf::MessageDrop::StringProducerPath::cache_
mutableprivate

Definition at line 111 of file MessageDrop.cc.

string mf::MessageDrop::StringProducerPath::path_ {}
private

Definition at line 109 of file MessageDrop.cc.

string mf::MessageDrop::StringProducerPath::phase_ {"(NoPath)"}
private

Definition at line 107 of file MessageDrop.cc.


The documentation for this class was generated from the following file: