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 (std::ostream &os)
 
virtual void changeFile (const ELstring &filename)
 
 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 ELstring &s, int interval)
 
void setInterval (const ELseverityLevel &sv, int interval)
 
void setLimit (const ELstring &s, int n)
 
void setLimit (const ELseverityLevel &sv, int n)
 
virtual int setLineLength (int len)
 
virtual void setTableLimit (int n)
 
void setThreshold (const ELseverityLevel &sv)
 
void setTimespan (const ELstring &s, int n)
 
void setTimespan (const ELseverityLevel &sv, 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

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

Definition at line 42 of file ELdestination.cc.

References MessageLogger_cfi::cerr.

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()
ELseverityLevel traceThreshold
std::unordered_set< std::string > ignoreThese
static const int defaultLineLength
ELslProxy< ELhighestSeverityGen > const ELhighestSeverity
ELslProxy< ELzeroSeverityGen > const ELzeroSeverity
std::unordered_set< std::string > respondToThese
edm::service::ELdestination::~ELdestination ( )
virtual

Definition at line 60 of file ELdestination.cc.

References MessageLogger_cfi::cerr.

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

Member Function Documentation

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

Reimplemented in edm::service::ELoutput.

Definition at line 195 of file ELdestination.cc.

195 { ; }
void edm::service::ELdestination::attachTime ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 192 of file ELdestination.cc.

192 { ; }
void edm::service::ELdestination::changeFile ( std::ostream &  os)
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 148 of file ELdestination.cc.

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

148  {
150  msg << notELoutputMsg;
151  log(msg);
152  }
static const ELstring noosMsg
ELslProxy< ELwarningGen > const ELwarning
static const ELstring notELoutputMsg
tuple msg
Definition: mps_check.py:285
virtual bool log(const edm::ErrorObj &msg)
void edm::service::ELdestination::changeFile ( const ELstring filename)
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 154 of file ELdestination.cc.

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

154  {
156  msg << notELoutputMsg << newline << "file requested is" << filename;
157  log(msg);
158  }
static const ELstring noosMsg
ELslProxy< ELwarningGen > const ELwarning
static const ELstring notELoutputMsg
tuple msg
Definition: mps_check.py:285
virtual bool log(const edm::ErrorObj &msg)
void edm::service::ELdestination::excludeModule ( ELstring const &  moduleName)
virtual

Definition at line 139 of file ELdestination.cc.

References ignoreModule(), and respondToModule().

139  {
140  respondToModule("*");
142  }
virtual void ignoreModule(ELstring const &moduleName)
std::string moduleName(Provenance const &provenance)
Definition: Provenance.cc:27
virtual void respondToModule(ELstring const &moduleName)
void edm::service::ELdestination::filterModule ( ELstring const &  moduleName)
virtual

Definition at line 134 of file ELdestination.cc.

References ignoreModule(), and respondToModule().

134  {
135  ignoreModule("*");
137  }
virtual void ignoreModule(ELstring const &moduleName)
std::string moduleName(Provenance const &provenance)
Definition: Provenance.cc:27
virtual void respondToModule(ELstring const &moduleName)
void edm::service::ELdestination::finish ( )
virtual

Definition at line 144 of file ELdestination.cc.

Referenced by progressbar.ProgressBar::__next__().

144 {}
void edm::service::ELdestination::flush ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 160 of file ELdestination.cc.

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

160  {
162  msg << "cannot flush()";
163  log(msg);
164  }
static const ELstring noosMsg
ELslProxy< ELwarningGen > const ELwarning
tuple msg
Definition: mps_check.py:285
virtual bool log(const edm::ErrorObj &msg)
int edm::service::ELdestination::getLineLength ( ) const
virtual

Definition at line 205 of file ELdestination.cc.

References lineLength.

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

Definition at line 197 of file ELdestination.cc.

References newline.

197 { return newline; }
void edm::service::ELdestination::ignoreModule ( ELstring const &  moduleName)
virtual

Definition at line 122 of file ELdestination.cc.

References ignoreMostModules, ignoreThese, respondToMostModules, and respondToThese.

Referenced by excludeModule(), and filterModule().

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  }
std::unordered_set< std::string > ignoreThese
std::string moduleName(Provenance const &provenance)
Definition: Provenance.cc:27
std::unordered_set< std::string > respondToThese
void edm::service::ELdestination::includeContext ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 183 of file ELdestination.cc.

183 { ; }
void edm::service::ELdestination::includeModule ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 174 of file ELdestination.cc.

174 { ; }
void edm::service::ELdestination::includeSerial ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 186 of file ELdestination.cc.

186 { ; }
void edm::service::ELdestination::includeSubroutine ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 177 of file ELdestination.cc.

177 { ; }
void edm::service::ELdestination::includeText ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 171 of file ELdestination.cc.

171 { ; }
void edm::service::ELdestination::includeTime ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 180 of file ELdestination.cc.

180 { ; }
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.

Referenced by changeFile(), and flush().

71 { return false; }
ELdestination& edm::service::ELdestination::operator= ( const ELdestination orig)
privatedelete
void edm::service::ELdestination::respondToModule ( ELstring const &  moduleName)
virtual

Definition at line 110 of file ELdestination.cc.

References ignoreMostModules, ignoreThese, respondToMostModules, and respondToThese.

Referenced by excludeModule(), and filterModule().

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  }
std::unordered_set< std::string > ignoreThese
std::string moduleName(Provenance const &provenance)
Definition: Provenance.cc:27
std::unordered_set< std::string > respondToThese
void edm::service::ELdestination::separateEpilogue ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 194 of file ELdestination.cc.

194 { ; }
void edm::service::ELdestination::separateTime ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 191 of file ELdestination.cc.

191 { ; }
void edm::service::ELdestination::setInterval ( const ELstring s,
int  interval 
)

Definition at line 98 of file ELdestination.cc.

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

98 { limits.setInterval(s, interval); }
void setInterval(const ELstring &id, int interval)
void edm::service::ELdestination::setInterval ( const ELseverityLevel sv,
int  interval 
)
void edm::service::ELdestination::setLimit ( const ELstring s,
int  n 
)

Definition at line 94 of file ELdestination.cc.

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

94 { limits.setLimit(s, n); }
void setLimit(const ELstring &id, int n)
void edm::service::ELdestination::setLimit ( const ELseverityLevel sv,
int  n 
)
int edm::service::ELdestination::setLineLength ( int  len)
virtual

Definition at line 199 of file ELdestination.cc.

References lineLength, and groupFilesInBlocks::temp.

199  {
200  int temp = lineLength;
201  lineLength = len;
202  return temp;
203  }
void edm::service::ELdestination::setTableLimit ( int  n)
virtual
void edm::service::ELdestination::setThreshold ( const ELseverityLevel sv)
void edm::service::ELdestination::setTimespan ( const ELstring s,
int  n 
)

Definition at line 102 of file ELdestination.cc.

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

102 { limits.setTimespan(s, n); }
void setTimespan(const ELstring &id, int n)
void edm::service::ELdestination::setTimespan ( const ELseverityLevel sv,
int  n 
)
void edm::service::ELdestination::setTraceThreshold ( const ELseverityLevel sv)
void edm::service::ELdestination::suppressContext ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 182 of file ELdestination.cc.

182 { ; }
void edm::service::ELdestination::suppressModule ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 173 of file ELdestination.cc.

173 { ; }
void edm::service::ELdestination::suppressSerial ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 185 of file ELdestination.cc.

185 { ; }
void edm::service::ELdestination::suppressSubroutine ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 176 of file ELdestination.cc.

176 { ; }
void edm::service::ELdestination::suppressText ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 170 of file ELdestination.cc.

170 { ; } // $$ jvr
void edm::service::ELdestination::suppressTime ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 179 of file ELdestination.cc.

179 { ; }
bool edm::service::ELdestination::thisShouldBeIgnored ( const ELstring s) const
virtual

Definition at line 211 of file ELdestination.cc.

References ignoreMostModules, ignoreThese, respondToMostModules, and respondToThese.

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

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  }
std::unordered_set< std::string > ignoreThese
std::unordered_set< std::string > respondToThese
void edm::service::ELdestination::useContext ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 189 of file ELdestination.cc.

189 { ; }
void edm::service::ELdestination::useFullContext ( )
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 188 of file ELdestination.cc.

188 { ; }
void edm::service::ELdestination::wipe ( )
virtual

Reimplemented in edm::service::ELstatistics.

Definition at line 106 of file ELdestination.cc.

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

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

Reimplemented in edm::service::ELstatistics.

Definition at line 108 of file ELdestination.cc.

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

Friends And Related Function Documentation

friend class ELadministrator
friend

Definition at line 54 of file ELdestination.h.

Member Data Documentation

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

Definition at line 131 of file ELdestination.h.

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