Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
mf::MessageDrop Struct Reference

#include <MessageDrop.h>

Classes

class  StringProducer
 
class  StringProducerPath
 
class  StringProducerSinglet
 
class  StringProducerWithPhase
 

Public Types

using module_id_t = unsigned int
 

Public Member Functions

std::string moduleContext () const
 
void setModuleWithPhase (std::string const &name, std::string const &label, module_id_t moduleID, std::string const &phase)
 
void setPath (std::string const &path, std::string const &phase)
 
void setSinglet (std::string const &singlet)
 
void clear ()
 

Static Public Member Functions

static MessageDropinstance ()
 

Public Attributes

unsigned int messageStreamID
 
std::string iteration {"pre-events"}
 
bool debugEnabled {true}
 
bool infoEnabled {true}
 
bool warningEnabled {true}
 

Static Public Attributes

static bool debugAlwaysSuppressed {false}
 
static bool infoAlwaysSuppressed {false}
 
static bool warningAlwaysSuppressed {false}
 
static std::string jobMode {}
 
static unsigned char messageLoggerScribeIsRunning = 0
 

Private Member Functions

 ~MessageDrop ()
 
 MessageDrop ()
 
 MessageDrop (MessageDrop const &)=delete
 
 MessageDrop (MessageDrop &&)=delete
 
MessageDropoperator= (MessageDrop const &)=delete
 
MessageDropoperator= (MessageDrop &&)=delete
 

Private Attributes

cet::propagate_const< std::unique_ptr< StringProducerWithPhase > > spWithPhase_
 
cet::propagate_const< std::unique_ptr< StringProducerPath > > spPath_
 
cet::propagate_const< std::unique_ptr< StringProducerSinglet > > spSinglet_
 
cet::exempt_ptr< StringProducermoduleNameProducer_
 

Detailed Description

Definition at line 14 of file MessageDrop.h.

Member Typedef Documentation

using mf::MessageDrop::module_id_t = unsigned int

Definition at line 17 of file MessageDrop.h.

Constructor & Destructor Documentation

mf::MessageDrop::~MessageDrop ( )
private

Definition at line 133 of file MessageDrop.cc.

133 {}
mf::MessageDrop::MessageDrop ( )
private

Definition at line 135 of file MessageDrop.cc.

137  , spWithPhase_(new MessageDrop::StringProducerWithPhase)
138  , spPath_(new MessageDrop::StringProducerPath)
139  , spSinglet_(new MessageDrop::StringProducerSinglet)
141  {}
cet::propagate_const< std::unique_ptr< StringProducerWithPhase > > spWithPhase_
Definition: MessageDrop.h:84
unsigned int messageStreamID
Definition: MessageDrop.h:62
cet::propagate_const< std::unique_ptr< StringProducerSinglet > > spSinglet_
Definition: MessageDrop.h:88
cet::exempt_ptr< StringProducer > moduleNameProducer_
Definition: MessageDrop.h:90
cet::propagate_const< std::unique_ptr< StringProducerPath > > spPath_
Definition: MessageDrop.h:86
mf::MessageDrop::MessageDrop ( MessageDrop const &  )
privatedelete
mf::MessageDrop::MessageDrop ( MessageDrop &&  )
privatedelete

Member Function Documentation

void mf::MessageDrop::clear ( void  )

Definition at line 181 of file MessageDrop.cc.

182  {
183  setSinglet(""s);
184  }
void setSinglet(std::string const &singlet)
Definition: MessageDrop.cc:168
static const double s
Definition: Units.h:99
MessageDrop * mf::MessageDrop::instance ( )
static

Definition at line 144 of file MessageDrop.cc.

145  {
146  thread_local static MessageDrop s_drop;
147  return &s_drop;
148  }
string mf::MessageDrop::moduleContext ( ) const

Definition at line 175 of file MessageDrop.cc.

176  {
177  return moduleNameProducer_->theContext();
178  }
cet::exempt_ptr< StringProducer > moduleNameProducer_
Definition: MessageDrop.h:90
MessageDrop& mf::MessageDrop::operator= ( MessageDrop const &  )
privatedelete
MessageDrop& mf::MessageDrop::operator= ( MessageDrop &&  )
privatedelete
void mf::MessageDrop::setModuleWithPhase ( std::string const &  name,
std::string const &  label,
module_id_t  moduleID,
std::string const &  phase 
)

Definition at line 151 of file MessageDrop.cc.

155  {
156  spWithPhase_->set(name, label, moduleID, phase);
158  }
cet::propagate_const< std::unique_ptr< StringProducerWithPhase > > spWithPhase_
Definition: MessageDrop.h:84
cet::exempt_ptr< StringProducer > moduleNameProducer_
Definition: MessageDrop.h:90
void mf::MessageDrop::setPath ( std::string const &  path,
std::string const &  phase 
)

Definition at line 161 of file MessageDrop.cc.

162  {
163  spPath_->set(phase, path);
165  }
cet::exempt_ptr< StringProducer > moduleNameProducer_
Definition: MessageDrop.h:90
cet::propagate_const< std::unique_ptr< StringProducerPath > > spPath_
Definition: MessageDrop.h:86
void mf::MessageDrop::setSinglet ( std::string const &  singlet)

Definition at line 168 of file MessageDrop.cc.

169  {
170  spSinglet_->set(singlet);
172  }
cet::propagate_const< std::unique_ptr< StringProducerSinglet > > spSinglet_
Definition: MessageDrop.h:88
cet::exempt_ptr< StringProducer > moduleNameProducer_
Definition: MessageDrop.h:90

Member Data Documentation

bool mf::MessageDrop::debugAlwaysSuppressed {false}
static

Definition at line 73 of file MessageDrop.h.

bool mf::MessageDrop::debugEnabled {true}

Definition at line 66 of file MessageDrop.h.

bool mf::MessageDrop::infoAlwaysSuppressed {false}
static

Definition at line 75 of file MessageDrop.h.

bool mf::MessageDrop::infoEnabled {true}

Definition at line 68 of file MessageDrop.h.

std::string mf::MessageDrop::iteration {"pre-events"}

Definition at line 64 of file MessageDrop.h.

string mf::MessageDrop::jobMode {}
static

Definition at line 79 of file MessageDrop.h.

unsigned char mf::MessageDrop::messageLoggerScribeIsRunning = 0
static

Definition at line 81 of file MessageDrop.h.

unsigned int mf::MessageDrop::messageStreamID

Definition at line 62 of file MessageDrop.h.

cet::exempt_ptr<StringProducer> mf::MessageDrop::moduleNameProducer_
private

Definition at line 90 of file MessageDrop.h.

cet::propagate_const<std::unique_ptr<StringProducerPath> > mf::MessageDrop::spPath_
private

Definition at line 86 of file MessageDrop.h.

cet::propagate_const<std::unique_ptr<StringProducerSinglet> > mf::MessageDrop::spSinglet_
private

Definition at line 88 of file MessageDrop.h.

cet::propagate_const<std::unique_ptr<StringProducerWithPhase> > mf::MessageDrop::spWithPhase_
private

Definition at line 84 of file MessageDrop.h.

bool mf::MessageDrop::warningAlwaysSuppressed {false}
static

Definition at line 77 of file MessageDrop.h.

bool mf::MessageDrop::warningEnabled {true}

Definition at line 70 of file MessageDrop.h.


The documentation for this struct was generated from the following files: