CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions | Friends
edm::service::ELdestination Class Reference

#include <ELdestination.h>

Inheritance diagram for edm::service::ELdestination:
edm::service::ELoutput edm::service::ELstatistics

Public Member Functions

virtual void attachEpilogue ()
 
virtual void attachTime ()
 
virtual void changeFile (const ELstring &filename)
 
virtual void changeFile (std::ostream &os)
 
 ELdestination ()
 
virtual void excludeModule (ELstring const &moduleName)
 
virtual void filterModule (ELstring const &moduleName)
 
virtual void finish ()
 
virtual void flush ()
 
virtual int getLineLength () const
 
virtual ELstring getNewline () const
 
virtual void ignoreModule (ELstring const &moduleName)
 
virtual void includeContext ()
 
virtual void includeModule ()
 
virtual void includeSerial ()
 
virtual void includeSubroutine ()
 
virtual void includeText ()
 
virtual void includeTime ()
 
virtual bool log (const edm::ErrorObj &msg)
 
virtual void respondToModule (ELstring const &moduleName)
 
virtual void separateEpilogue ()
 
virtual void separateTime ()
 
void setInterval (const ELseverityLevel &sv, int interval)
 
void setInterval (const ELstring &s, int interval)
 
void setLimit (const ELseverityLevel &sv, int n)
 
void setLimit (const ELstring &s, int n)
 
virtual int setLineLength (int len)
 
virtual void setTableLimit (int n)
 
void setThreshold (const ELseverityLevel &sv)
 
void setTimespan (const ELseverityLevel &sv, int n)
 
void setTimespan (const ELstring &s, int n)
 
void setTraceThreshold (const ELseverityLevel &sv)
 
virtual void suppressContext ()
 
virtual void suppressModule ()
 
virtual void suppressSerial ()
 
virtual void suppressSubroutine ()
 
virtual void suppressText ()
 
virtual void suppressTime ()
 
virtual bool thisShouldBeIgnored (const ELstring &s) const
 
virtual void useContext ()
 
virtual void useFullContext ()
 
virtual void wipe ()
 
virtual void zero ()
 
virtual ~ELdestination ()
 

Protected Attributes

bool ignoreMostModules
 
std::unordered_set< std::string > ignoreThese
 
ELstring indent
 
ELlimitsTable limits
 
int lineLength
 
ELstring newline
 
ELstring preamble
 
bool respondToMostModules
 
std::unordered_set< std::string > respondToThese
 
ELseverityLevel threshold
 
ELseverityLevel traceThreshold
 

Static Protected Attributes

static const int defaultLineLength = 80
 

Private Member Functions

 ELdestination (const ELdestination &orig)=delete
 
ELdestinationoperator= (const ELdestination &orig)=delete
 

Friends

class ELadministrator
 

Detailed Description

Definition at line 53 of file ELdestination.h.

Constructor & Destructor Documentation

◆ ELdestination() [1/2]

edm::service::ELdestination::ELdestination ( )

Definition at line 42 of file ELdestination.cc.

45  limits(),
46  preamble("%MSG"),
47  newline("\n"),
48  indent(" "),
50  ignoreMostModules(false),
52  respondToMostModules(false),
53  ignoreThese() {
54 #ifdef ELdestinationCONSTRUCTOR_TRACE
55  std::cerr << "Constructor for ELdestination\n";
56 #endif
57 
58  } // ELdestination()

References beam_dqm_sourceclient-live_cfg::cerr.

◆ ~ELdestination()

edm::service::ELdestination::~ELdestination ( )
virtual

Definition at line 60 of file ELdestination.cc.

60  {
61 #ifdef ELdestinationCONSTRUCTOR_TRACE
62  std::cerr << "Destructor for ELdestination\n";
63 #endif
64 
65  } // ~ELdestination()

References beam_dqm_sourceclient-live_cfg::cerr.

◆ ELdestination() [2/2]

edm::service::ELdestination::ELdestination ( const ELdestination orig)
privatedelete

Member Function Documentation

◆ attachEpilogue()

void edm::service::ELdestination::attachEpilogue ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 195 of file ELdestination.cc.

195 { ; }

◆ attachTime()

void edm::service::ELdestination::attachTime ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 192 of file ELdestination.cc.

192 { ; }

◆ changeFile() [1/2]

void edm::service::ELdestination::changeFile ( const ELstring filename)
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 154 of file ELdestination.cc.

154  {
156  msg << notELoutputMsg << newline << "file requested is" << filename;
157  log(msg);
158  }

References edm::ELwarning, corrVsCorr::filename, log(), mps_check::msg, newline, edm::service::noosMsg, and edm::service::notELoutputMsg.

◆ changeFile() [2/2]

void edm::service::ELdestination::changeFile ( std::ostream &  os)
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 148 of file ELdestination.cc.

148  {
150  msg << notELoutputMsg;
151  log(msg);
152  }

References edm::ELwarning, log(), mps_check::msg, edm::service::noosMsg, and edm::service::notELoutputMsg.

◆ excludeModule()

void edm::service::ELdestination::excludeModule ( ELstring const &  moduleName)
virtual

Definition at line 139 of file ELdestination.cc.

139  {
140  respondToModule("*");
142  }

References ignoreModule(), edm::moduleName(), and respondToModule().

◆ filterModule()

void edm::service::ELdestination::filterModule ( ELstring const &  moduleName)
virtual

Definition at line 134 of file ELdestination.cc.

134  {
135  ignoreModule("*");
137  }

References ignoreModule(), edm::moduleName(), and respondToModule().

◆ finish()

void edm::service::ELdestination::finish ( )
virtual

Definition at line 144 of file ELdestination.cc.

144 {}

Referenced by progressbar.ProgressBar::__next__().

◆ flush()

void edm::service::ELdestination::flush ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 160 of file ELdestination.cc.

160  {
162  msg << "cannot flush()";
163  log(msg);
164  }

References edm::ELwarning, log(), mps_check::msg, and edm::service::noosMsg.

◆ getLineLength()

int edm::service::ELdestination::getLineLength ( ) const
virtual

Definition at line 205 of file ELdestination.cc.

205 { return lineLength; }

References lineLength.

◆ getNewline()

ELstring edm::service::ELdestination::getNewline ( ) const
virtual

Definition at line 197 of file ELdestination.cc.

197 { return newline; }

References newline.

◆ ignoreModule()

void edm::service::ELdestination::ignoreModule ( ELstring const &  moduleName)
virtual

Definition at line 122 of file ELdestination.cc.

122  {
123  if (moduleName == "*") {
124  respondToMostModules = false;
125  ignoreMostModules = true;
126  respondToThese.clear();
127  ignoreThese.clear();
128  } else {
129  ignoreThese.insert(moduleName);
130  respondToThese.erase(moduleName);
131  }
132  }

References ignoreMostModules, ignoreThese, edm::moduleName(), respondToMostModules, and respondToThese.

Referenced by excludeModule(), and filterModule().

◆ includeContext()

void edm::service::ELdestination::includeContext ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 183 of file ELdestination.cc.

183 { ; }

◆ includeModule()

void edm::service::ELdestination::includeModule ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 174 of file ELdestination.cc.

174 { ; }

◆ includeSerial()

void edm::service::ELdestination::includeSerial ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 186 of file ELdestination.cc.

186 { ; }

◆ includeSubroutine()

void edm::service::ELdestination::includeSubroutine ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 177 of file ELdestination.cc.

177 { ; }

◆ includeText()

void edm::service::ELdestination::includeText ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 171 of file ELdestination.cc.

171 { ; }

◆ includeTime()

void edm::service::ELdestination::includeTime ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 180 of file ELdestination.cc.

180 { ; }

◆ log()

bool edm::service::ELdestination::log ( const edm::ErrorObj msg)
virtual

Reimplemented in edm::service::ELstatistics, and edm::service::ELoutput.

Definition at line 71 of file ELdestination.cc.

71 { return false; }

Referenced by changeFile(), and flush().

◆ operator=()

ELdestination& edm::service::ELdestination::operator= ( const ELdestination orig)
privatedelete

◆ respondToModule()

void edm::service::ELdestination::respondToModule ( ELstring const &  moduleName)
virtual

Definition at line 110 of file ELdestination.cc.

110  {
111  if (moduleName == "*") {
112  ignoreMostModules = false;
113  respondToMostModules = true;
114  ignoreThese.clear();
115  respondToThese.clear();
116  } else {
117  respondToThese.insert(moduleName);
118  ignoreThese.erase(moduleName);
119  }
120  }

References ignoreMostModules, ignoreThese, edm::moduleName(), respondToMostModules, and respondToThese.

Referenced by excludeModule(), and filterModule().

◆ separateEpilogue()

void edm::service::ELdestination::separateEpilogue ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 194 of file ELdestination.cc.

194 { ; }

◆ separateTime()

void edm::service::ELdestination::separateTime ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 191 of file ELdestination.cc.

191 { ; }

◆ setInterval() [1/2]

void edm::service::ELdestination::setInterval ( const ELseverityLevel sv,
int  interval 
)

◆ setInterval() [2/2]

void edm::service::ELdestination::setInterval ( const ELstring s,
int  interval 
)

◆ setLimit() [1/2]

void edm::service::ELdestination::setLimit ( const ELseverityLevel sv,
int  n 
)

◆ setLimit() [2/2]

void edm::service::ELdestination::setLimit ( const ELstring s,
int  n 
)

◆ setLineLength()

int edm::service::ELdestination::setLineLength ( int  len)
virtual

Definition at line 199 of file ELdestination.cc.

199  {
200  int temp = lineLength;
201  lineLength = len;
202  return temp;
203  }

References lineLength, and groupFilesInBlocks::temp.

◆ setTableLimit()

void edm::service::ELdestination::setTableLimit ( int  n)
virtual

◆ setThreshold()

void edm::service::ELdestination::setThreshold ( const ELseverityLevel sv)

Definition at line 90 of file ELdestination.cc.

90 { threshold = sv; }

References pfDeepBoostedJetPreprocessParams_cfi::sv, and threshold.

◆ setTimespan() [1/2]

void edm::service::ELdestination::setTimespan ( const ELseverityLevel sv,
int  n 
)

◆ setTimespan() [2/2]

void edm::service::ELdestination::setTimespan ( const ELstring s,
int  n 
)

◆ setTraceThreshold()

void edm::service::ELdestination::setTraceThreshold ( const ELseverityLevel sv)

Definition at line 92 of file ELdestination.cc.

92 { traceThreshold = sv; }

References pfDeepBoostedJetPreprocessParams_cfi::sv, and traceThreshold.

◆ suppressContext()

void edm::service::ELdestination::suppressContext ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 182 of file ELdestination.cc.

182 { ; }

◆ suppressModule()

void edm::service::ELdestination::suppressModule ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 173 of file ELdestination.cc.

173 { ; }

◆ suppressSerial()

void edm::service::ELdestination::suppressSerial ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 185 of file ELdestination.cc.

185 { ; }

◆ suppressSubroutine()

void edm::service::ELdestination::suppressSubroutine ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 176 of file ELdestination.cc.

176 { ; }

◆ suppressText()

void edm::service::ELdestination::suppressText ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 170 of file ELdestination.cc.

170 { ; } // $$ jvr

◆ suppressTime()

void edm::service::ELdestination::suppressTime ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 179 of file ELdestination.cc.

179 { ; }

◆ thisShouldBeIgnored()

bool edm::service::ELdestination::thisShouldBeIgnored ( const ELstring s) const
virtual

Definition at line 211 of file ELdestination.cc.

211  {
212  if (respondToMostModules) {
213  return (ignoreThese.find(s) != ignoreThese.end());
214  } else if (ignoreMostModules) {
215  return (respondToThese.find(s) == respondToThese.end());
216  } else {
217  return false;
218  }
219  }

References ignoreMostModules, ignoreThese, respondToMostModules, respondToThese, and alignCSCRings::s.

Referenced by edm::service::ELoutput::log(), and edm::service::ELstatistics::log().

◆ useContext()

void edm::service::ELdestination::useContext ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 189 of file ELdestination.cc.

189 { ; }

◆ useFullContext()

void edm::service::ELdestination::useFullContext ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 188 of file ELdestination.cc.

188 { ; }

◆ wipe()

void edm::service::ELdestination::wipe ( )
virtual

Reimplemented in edm::service::ELstatistics.

Definition at line 106 of file ELdestination.cc.

106 { limits.wipe(); }

References limits, and edm::service::ELlimitsTable::wipe().

◆ zero()

void edm::service::ELdestination::zero ( )
virtual

Reimplemented in edm::service::ELstatistics.

Definition at line 108 of file ELdestination.cc.

108 { limits.zero(); }

References limits, and edm::service::ELlimitsTable::zero().

Friends And Related Function Documentation

◆ ELadministrator

friend class ELadministrator
friend

Definition at line 54 of file ELdestination.h.

Member Data Documentation

◆ defaultLineLength

const int edm::service::ELdestination::defaultLineLength = 80
staticprotected

Definition at line 131 of file ELdestination.h.

◆ ignoreMostModules

bool edm::service::ELdestination::ignoreMostModules
protected

◆ ignoreThese

std::unordered_set<std::string> edm::service::ELdestination::ignoreThese
protected

◆ indent

ELstring edm::service::ELdestination::indent
protected

◆ limits

ELlimitsTable edm::service::ELdestination::limits
protected

◆ lineLength

int edm::service::ELdestination::lineLength
protected

◆ newline

ELstring edm::service::ELdestination::newline
protected

◆ preamble

ELstring edm::service::ELdestination::preamble
protected

◆ respondToMostModules

bool edm::service::ELdestination::respondToMostModules
protected

◆ respondToThese

std::unordered_set<std::string> edm::service::ELdestination::respondToThese
protected

◆ threshold

ELseverityLevel edm::service::ELdestination::threshold
protected

◆ traceThreshold

ELseverityLevel edm::service::ELdestination::traceThreshold
protected
edm::service::ELdestination::ignoreModule
virtual void ignoreModule(ELstring const &moduleName)
Definition: ELdestination.cc:122
edm::ELwarning
const ELslProxy< ELwarningGen > ELwarning
Definition: ELseverityLevel.cc:302
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
edm::service::notELoutputMsg
static const ELstring notELoutputMsg
Definition: ELdestination.cc:84
edm::service::ELdestination::respondToModule
virtual void respondToModule(ELstring const &moduleName)
Definition: ELdestination.cc:110
edm::ELzeroSeverity
const ELslProxy< ELzeroSeverityGen > ELzeroSeverity
Definition: ELseverityLevel.cc:284
edm::service::ELdestination::respondToThese
std::unordered_set< std::string > respondToThese
Definition: ELdestination.h:126
edm::service::ELdestination::traceThreshold
ELseverityLevel traceThreshold
Definition: ELdestination.h:119
edm::ErrorObj
Definition: ErrorObj.h:44
edm::service::ELlimitsTable::setTimespan
void setTimespan(const ELstring &id, int n)
Definition: ELlimitsTable.cc:216
mps_check.msg
tuple msg
Definition: mps_check.py:285
edm::service::ELdestination::lineLength
int lineLength
Definition: ELdestination.h:124
groupFilesInBlocks.temp
list temp
Definition: groupFilesInBlocks.py:142
edm::service::ELlimitsTable::setLimit
void setLimit(const ELstring &id, int n)
Definition: ELlimitsTable.cc:196
edm::service::ELlimitsTable::wipe
void wipe()
Definition: ELlimitsTable.cc:165
edm::service::ELdestination::newline
ELstring newline
Definition: ELdestination.h:122
alignCSCRings.s
s
Definition: alignCSCRings.py:92
pfDeepBoostedJetPreprocessParams_cfi.sv
sv
Definition: pfDeepBoostedJetPreprocessParams_cfi.py:226
edm::service::ELdestination::respondToMostModules
bool respondToMostModules
Definition: ELdestination.h:127
corrVsCorr.filename
filename
Definition: corrVsCorr.py:123
edm::service::ELdestination::ignoreMostModules
bool ignoreMostModules
Definition: ELdestination.h:125
edm::ELhighestSeverity
const ELslProxy< ELhighestSeverityGen > ELhighestSeverity
Definition: ELseverityLevel.cc:326
beam_dqm_sourceclient-live_cfg.cerr
cerr
Definition: beam_dqm_sourceclient-live_cfg.py:17
edm::service::ELlimitsTable::setTableLimit
void setTableLimit(int n)
Definition: ELlimitsTable.cc:63
readEcalDQMStatus.interval
interval
Definition: readEcalDQMStatus.py:18
edm::service::noosMsg
static const ELstring noosMsg
Definition: ELdestination.cc:83
edm::service::ELdestination::limits
ELlimitsTable limits
Definition: ELdestination.h:120
edm::service::ELdestination::threshold
ELseverityLevel threshold
Definition: ELdestination.h:118
edm::service::ELdestination::indent
ELstring indent
Definition: ELdestination.h:123
edm::service::ELlimitsTable::setInterval
void setInterval(const ELstring &id, int interval)
Definition: ELlimitsTable.cc:205
edm::service::ELlimitsTable::zero
void zero()
Definition: ELlimitsTable.cc:187
edm::service::ELdestination::defaultLineLength
static const int defaultLineLength
Definition: ELdestination.h:131
edm::service::ELdestination::preamble
ELstring preamble
Definition: ELdestination.h:121
edm::moduleName
std::string moduleName(Provenance const &provenance, ProcessHistory const &history)
Definition: Provenance.cc:27
edm::service::ELdestination::log
virtual bool log(const edm::ErrorObj &msg)
Definition: ELdestination.cc:71
edm::service::ELdestination::ignoreThese
std::unordered_set< std::string > ignoreThese
Definition: ELdestination.h:128