test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions | Friends
edm::service::ELdestination Class Referenceabstract

#include <ELdestination.h>

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

Public Member Functions

virtual ELdestinationclone () const =0
 
 ELdestination ()
 
virtual void finish ()
 
virtual ELstring getNewline () const
 
virtual bool log (const edm::ErrorObj &msg)
 
virtual void summarization (const edm::ELstring &title, const edm::ELstring &sumLines)
 
virtual ~ELdestination ()
 

Protected Member Functions

virtual void changeFile (std::ostream &os)
 
virtual void changeFile (const ELstring &filename)
 
virtual void clearSummary ()
 
virtual void excludeModule (ELstring const &moduleName)
 
virtual void filterModule (ELstring const &moduleName)
 
virtual void flush ()
 
virtual void ignoreModule (ELstring const &moduleName)
 
virtual void respondToModule (ELstring const &moduleName)
 
virtual void setTableLimit (int n)
 
virtual std::map< ELextendedID,
StatsCount
statisticsMap () const
 
virtual void summary (ELdestControl &dest, const ELstring &title="")
 
virtual void summary (std::ostream &os, const ELstring &title="")
 
virtual void summary (ELstring &s, const ELstring &title="")
 
virtual void summary ()
 
virtual void summaryForJobReport (std::map< std::string, double > &sm)
 
virtual bool thisShouldBeIgnored (const ELstring &s) const
 
virtual void wipe ()
 
virtual void zero ()
 

Protected Attributes

bool ignoreMostModules
 
ELset_string ignoreThese
 
ELstring indent
 
ELlimitsTable limits
 
int lineLength
 
ELstring newline
 
ELstring preamble
 
bool respondToMostModules
 
ELset_string respondToThese
 
ELseverityLevel threshold
 
ELseverityLevel traceThreshold
 

Static Protected Attributes

static const int defaultLineLength = 80
 

Private Member Functions

virtual void attachEpilogue ()
 
virtual void attachTime ()
 
 ELdestination (const ELdestination &orig)
 
virtual int getLineLength () const
 
virtual void includeContext ()
 
virtual void includeModule ()
 
virtual void includeSerial ()
 
virtual void includeSubroutine ()
 
virtual void includeText ()
 
virtual void includeTime ()
 
virtual void noTerminationSummary ()
 
ELdestinationoperator= (const ELdestination &orig)
 
virtual void separateEpilogue ()
 
virtual void separateTime ()
 
virtual int setLineLength (int len)
 
virtual void suppressContext ()
 
virtual void suppressModule ()
 
virtual void suppressSerial ()
 
virtual void suppressSubroutine ()
 
virtual void suppressText ()
 
virtual void suppressTime ()
 
virtual void useContext ()
 
virtual void useFullContext ()
 

Friends

class ELadministrator
 
class ELdestControl
 

Detailed Description

Definition at line 54 of file ELdestination.h.

Constructor & Destructor Documentation

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

Definition at line 44 of file ELdestination.cc.

References ecal_dqm_sourceclient-live_cfg::cerr.

47 , limits ( )
48 , preamble ( "%MSG" )
49 , newline ( "\n" )
50 , indent ( " " )
52 , ignoreMostModules (false)
54 , respondToMostModules (false)
55 , ignoreThese()
56 {
57 
58  #ifdef ELdestinationCONSTRUCTOR_TRACE
59  std::cerr << "Constructor for ELdestination\n";
60  #endif
61 
62 } // ELdestination()
ELseverityLevel traceThreshold
static const int defaultLineLength
ELslProxy< ELhighestSeverityGen > const ELhighestSeverity
ELslProxy< ELzeroSeverityGen > const ELzeroSeverity
edm::service::ELdestination::~ELdestination ( )
virtual

Definition at line 65 of file ELdestination.cc.

References ecal_dqm_sourceclient-live_cfg::cerr.

65  {
66 
67  #ifdef ELdestinationCONSTRUCTOR_TRACE
68  std::cerr << "Destructor for ELdestination\n";
69  #endif
70 
71 } // ~ELdestination()
edm::service::ELdestination::ELdestination ( const ELdestination orig)
private

Member Function Documentation

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

Reimplemented in edm::service::ELoutput.

Definition at line 242 of file ELdestination.cc.

242 { ; }
void edm::service::ELdestination::attachTime ( )
privatevirtual

Reimplemented in edm::service::ELoutput.

Definition at line 239 of file ELdestination.cc.

239 { ; }
void edm::service::ELdestination::changeFile ( std::ostream &  os)
protectedvirtual

Reimplemented in edm::service::ELoutput.

Definition at line 195 of file ELdestination.cc.

References edm::ELwarning, log(), visualization-live-secondInstance_cfg::msg, edm::service::noosMsg, and edm::service::notELoutputMsg.

195  {
197  msg << notELoutputMsg;
198  log( msg );
199 }
static const ELstring noosMsg
ELslProxy< ELwarningGen > const ELwarning
static const ELstring notELoutputMsg
virtual bool log(const edm::ErrorObj &msg)
void edm::service::ELdestination::changeFile ( const ELstring filename)
protectedvirtual

Reimplemented in edm::service::ELoutput.

Definition at line 201 of file ELdestination.cc.

References edm::ELwarning, lut2db_cfg::filename, log(), visualization-live-secondInstance_cfg::msg, newline, edm::service::noosMsg, and edm::service::notELoutputMsg.

201  {
203  msg << notELoutputMsg << newline << "file requested is" << filename;
204  log( msg );
205 }
static const ELstring noosMsg
ELslProxy< ELwarningGen > const ELwarning
static const ELstring notELoutputMsg
tuple filename
Definition: lut2db_cfg.py:20
virtual bool log(const edm::ErrorObj &msg)
void edm::service::ELdestination::clearSummary ( )
protectedvirtual

Reimplemented in edm::service::ELstatistics.

Definition at line 98 of file ELdestination.cc.

References edm::ELwarning, edm::service::hereMsg, log(), visualization-live-secondInstance_cfg::msg, and edm::service::noClearSummaryMsg.

98  {
99 
101  msg << hereMsg;
102  log( msg );
103 
104 } // clearSummary()
ELslProxy< ELwarningGen > const ELwarning
static const ELstring hereMsg
static const ELstring noClearSummaryMsg
virtual bool log(const edm::ErrorObj &msg)
virtual ELdestination* edm::service::ELdestination::clone ( ) const
pure virtual
void edm::service::ELdestination::excludeModule ( ELstring const &  moduleName)
protectedvirtual

Definition at line 141 of file ELdestination.cc.

References ignoreModule(), and respondToModule().

141  {
142  respondToModule("*");
144 }
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)
protectedvirtual

Definition at line 136 of file ELdestination.cc.

References ignoreModule(), and respondToModule().

136  {
137  ignoreModule("*");
139 }
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 176 of file ELdestination.cc.

Referenced by progressbar.ProgressBar::__next__().

176 { }
void edm::service::ELdestination::flush ( )
protectedvirtual

Reimplemented in edm::service::ELoutput.

Definition at line 207 of file ELdestination.cc.

References edm::ELwarning, log(), visualization-live-secondInstance_cfg::msg, and edm::service::noosMsg.

207  {
209  msg << "cannot flush()";
210  log( msg );
211 }
static const ELstring noosMsg
ELslProxy< ELwarningGen > const ELwarning
virtual bool log(const edm::ErrorObj &msg)
int edm::service::ELdestination::getLineLength ( ) const
privatevirtual

Definition at line 254 of file ELdestination.cc.

References lineLength.

254 { return lineLength; }
ELstring edm::service::ELdestination::getNewline ( ) const
virtual

Definition at line 246 of file ELdestination.cc.

References newline.

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

Definition at line 124 of file ELdestination.cc.

References ignoreMostModules, ignoreThese, respondToMostModules, and respondToThese.

Referenced by excludeModule(), and filterModule().

124  {
125  if (moduleName=="*") {
126  respondToMostModules = false;
127  ignoreMostModules = true;
128  respondToThese.clear();
129  ignoreThese.clear();
130  } else {
131  ignoreThese.insert(moduleName);
132  respondToThese.erase(moduleName);
133  }
134 }
std::string moduleName(Provenance const &provenance)
Definition: Provenance.cc:27
void edm::service::ELdestination::includeContext ( )
privatevirtual

Reimplemented in edm::service::ELoutput.

Definition at line 230 of file ELdestination.cc.

230 { ; }
void edm::service::ELdestination::includeModule ( )
privatevirtual

Reimplemented in edm::service::ELoutput.

Definition at line 221 of file ELdestination.cc.

221 { ; }
void edm::service::ELdestination::includeSerial ( )
privatevirtual

Reimplemented in edm::service::ELoutput.

Definition at line 233 of file ELdestination.cc.

233 { ; }
void edm::service::ELdestination::includeSubroutine ( )
privatevirtual

Reimplemented in edm::service::ELoutput.

Definition at line 224 of file ELdestination.cc.

224 { ; }
void edm::service::ELdestination::includeText ( )
privatevirtual

Reimplemented in edm::service::ELoutput.

Definition at line 218 of file ELdestination.cc.

218 { ; }
void edm::service::ELdestination::includeTime ( )
privatevirtual

Reimplemented in edm::service::ELoutput.

Definition at line 227 of file ELdestination.cc.

227 { ; }
bool edm::service::ELdestination::log ( const edm::ErrorObj msg)
virtual

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

Definition at line 78 of file ELdestination.cc.

Referenced by changeFile(), clearSummary(), flush(), and summarization().

78 { return false; }
void edm::service::ELdestination::noTerminationSummary ( )
privatevirtual

Reimplemented in edm::service::ELstatistics.

Definition at line 244 of file ELdestination.cc.

244 { ; }
ELdestination& edm::service::ELdestination::operator= ( const ELdestination orig)
private
void edm::service::ELdestination::respondToModule ( ELstring const &  moduleName)
protectedvirtual

Definition at line 112 of file ELdestination.cc.

References ignoreMostModules, ignoreThese, respondToMostModules, and respondToThese.

Referenced by excludeModule(), and filterModule().

112  {
113  if (moduleName=="*") {
114  ignoreMostModules = false;
115  respondToMostModules = true;
116  ignoreThese.clear();
117  respondToThese.clear();
118  } else {
119  respondToThese.insert(moduleName);
120  ignoreThese.erase(moduleName);
121  }
122 }
std::string moduleName(Provenance const &provenance)
Definition: Provenance.cc:27
void edm::service::ELdestination::separateEpilogue ( )
privatevirtual

Reimplemented in edm::service::ELoutput.

Definition at line 241 of file ELdestination.cc.

241 { ; }
void edm::service::ELdestination::separateTime ( )
privatevirtual

Reimplemented in edm::service::ELoutput.

Definition at line 238 of file ELdestination.cc.

238 { ; }
int edm::service::ELdestination::setLineLength ( int  len)
privatevirtual

Definition at line 248 of file ELdestination.cc.

References lineLength, and groupFilesInBlocks::temp.

248  {
249  int temp=lineLength;
250  lineLength = len;
251  return temp;
252 }
void edm::service::ELdestination::setTableLimit ( int  n)
protectedvirtual
std::map< ELextendedID, StatsCount > edm::service::ELdestination::statisticsMap ( ) const
protectedvirtual

Reimplemented in edm::service::ELstatistics.

Definition at line 191 of file ELdestination.cc.

191  {
192  return std::map<ELextendedID , StatsCount> ();
193 }
void edm::service::ELdestination::summarization ( const edm::ELstring title,
const edm::ELstring sumLines 
)
virtual

Reimplemented in edm::service::ELoutput.

Definition at line 181 of file ELdestination.cc.

References edm::ELwarning, edm::service::hereMsg, log(), visualization-live-secondInstance_cfg::msg, newline, edm::service::noSummarizationMsg, and indexGen::title.

183  {
184 
186  msg << hereMsg << newline << title;
187  log( msg );
188 
189 }
ELslProxy< ELwarningGen > const ELwarning
static const ELstring hereMsg
static const ELstring noSummarizationMsg
virtual bool log(const edm::ErrorObj &msg)
void edm::service::ELdestination::summary ( ELdestControl dest,
const ELstring title = "" 
)
protectedvirtual

Reimplemented in edm::service::ELstatistics.

Definition at line 148 of file ELdestination.cc.

References edm::ELwarning, edm::service::ELdestControl::getNewline(), edm::service::hereMsg, edm::service::ELdestControl::log(), visualization-live-secondInstance_cfg::msg, edm::service::noSummaryMsg, and indexGen::title.

148  {
149 
151  msg << noSummaryMsg << " " << hereMsg << dest.getNewline() << title;
152  dest.log( msg );
153 
154 } // summary()
ELslProxy< ELwarningGen > const ELwarning
static const ELstring hereMsg
static const ELstring noSummaryMsg
void edm::service::ELdestination::summary ( std::ostream &  os,
const ELstring title = "" 
)
protectedvirtual

Reimplemented in edm::service::ELstatistics.

Definition at line 157 of file ELdestination.cc.

References edm::ELwarning, edm::service::hereMsg, and edm::service::noSummaryMsg.

157  {
158 
159  os << "%MSG" << ELwarning.getSymbol() << " "
160  << noSummaryMsg << " " << hereMsg << std::endl
161  << title << std::endl;
162 
163 } // summary()
ELslProxy< ELwarningGen > const ELwarning
static const ELstring hereMsg
static const ELstring noSummaryMsg
void edm::service::ELdestination::summary ( ELstring s,
const ELstring title = "" 
)
protectedvirtual

Reimplemented in edm::service::ELstatistics.

Definition at line 166 of file ELdestination.cc.

References edm::ELwarning, edm::service::hereMsg, and edm::service::noSummaryMsg.

166  {
167 
168  s = ELstring("%MSG") + ELwarning.getSymbol() + " "
169  + noSummaryMsg + " " + hereMsg + "\n"
170  + title + "\n";
171 
172 } // summary()
ELslProxy< ELwarningGen > const ELwarning
static const ELstring hereMsg
static const ELstring noSummaryMsg
std::string ELstring
Definition: ELstring.h:26
void edm::service::ELdestination::summary ( )
protectedvirtual

Reimplemented in edm::service::ELstatistics.

Definition at line 146 of file ELdestination.cc.

146 { }
void edm::service::ELdestination::summaryForJobReport ( std::map< std::string, double > &  sm)
protectedvirtual

Reimplemented in edm::service::ELstatistics.

Definition at line 174 of file ELdestination.cc.

174 { }
void edm::service::ELdestination::suppressContext ( )
privatevirtual

Reimplemented in edm::service::ELoutput.

Definition at line 229 of file ELdestination.cc.

229 { ; }
void edm::service::ELdestination::suppressModule ( )
privatevirtual

Reimplemented in edm::service::ELoutput.

Definition at line 220 of file ELdestination.cc.

220 { ; }
void edm::service::ELdestination::suppressSerial ( )
privatevirtual

Reimplemented in edm::service::ELoutput.

Definition at line 232 of file ELdestination.cc.

232 { ; }
void edm::service::ELdestination::suppressSubroutine ( )
privatevirtual

Reimplemented in edm::service::ELoutput.

Definition at line 223 of file ELdestination.cc.

223 { ; }
void edm::service::ELdestination::suppressText ( )
privatevirtual

Reimplemented in edm::service::ELoutput.

Definition at line 217 of file ELdestination.cc.

217 { ; } // $$ jvr
void edm::service::ELdestination::suppressTime ( )
privatevirtual

Reimplemented in edm::service::ELoutput.

Definition at line 226 of file ELdestination.cc.

226 { ; }
bool edm::service::ELdestination::thisShouldBeIgnored ( const ELstring s) const
protectedvirtual

Definition at line 261 of file ELdestination.cc.

References ignoreMostModules, ignoreThese, respondToMostModules, and respondToThese.

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

261  {
262  if (respondToMostModules) {
263  return ( ignoreThese.find(s) != ignoreThese.end() );
264  } else if (ignoreMostModules) {
265  return ( respondToThese.find(s) == respondToThese.end() );
266  } else {
267  return false;
268  }
269 }
void edm::service::ELdestination::useContext ( )
privatevirtual

Reimplemented in edm::service::ELoutput.

Definition at line 236 of file ELdestination.cc.

236 { ; }
void edm::service::ELdestination::useFullContext ( )
privatevirtual

Reimplemented in edm::service::ELoutput.

Definition at line 235 of file ELdestination.cc.

235 { ; }
void edm::service::ELdestination::wipe ( )
protectedvirtual

Reimplemented in edm::service::ELstatistics.

Definition at line 107 of file ELdestination.cc.

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

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

Reimplemented in edm::service::ELstatistics.

Definition at line 110 of file ELdestination.cc.

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

Friends And Related Function Documentation

friend class ELadministrator
friend

Definition at line 56 of file ELdestination.h.

friend class ELdestControl
friend

Definition at line 57 of file ELdestination.h.

Member Data Documentation

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

Definition at line 135 of file ELdestination.h.

bool edm::service::ELdestination::ignoreMostModules
protected
ELset_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
ELset_string edm::service::ELdestination::respondToThese
protected
ELseverityLevel edm::service::ELdestination::threshold
protected
ELseverityLevel edm::service::ELdestination::traceThreshold
protected