CMS 3D CMS Logo

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

#include <ELdestControl.h>

Public Member Functions

void attachEpilogue ()
 
void attachTime ()
 
void changeFile (std::ostream &os)
 
void changeFile (const ELstring &filename)
 
ELdestControlclearSummary ()
 
 ELdestControl (boost::shared_ptr< ELdestination > dest)
 
 ELdestControl ()
 
void excludeModule (ELstring const &moduleName)
 
void filterModule (ELstring const &moduleName)
 
void flush ()
 
int getLineLength () const
 
ELstring getNewline () const
 
void ignoreModule (ELstring const &moduleName)
 
void includeContext ()
 
void includeModule ()
 
void includeSerial ()
 
void includeSubroutine ()
 
void includeText ()
 
void includeTime ()
 
bool log (edm::ErrorObj &msg)
 
void noTerminationSummary ()
 
void respondToModule (ELstring const &moduleName)
 
void separateEpilogue ()
 
void separateTime ()
 
ELdestControlsetInterval (const ELstring &s, int interval)
 
ELdestControlsetInterval (const ELseverityLevel &sv, int interval)
 
ELdestControlsetLimit (const ELstring &s, int n)
 
ELdestControlsetLimit (const ELseverityLevel &sv, int n)
 
int setLineLength (int len)
 
ELdestControlsetNewline (const ELstring &newline)
 
ELdestControlsetPreamble (const ELstring &preamble)
 
ELdestControlsetTableLimit (int n)
 
ELdestControlsetThreshold (const ELseverityLevel &sv)
 
ELdestControlsetTimespan (const ELstring &s, int n)
 
ELdestControlsetTimespan (const ELseverityLevel &sv, int n)
 
ELdestControlsetTraceThreshold (const ELseverityLevel &sv)
 
std::map< ELextendedID,
StatsCount
statisticsMap () const
 
void summarization (const ELstring &title, const ELstring &sumLines)
 
void summary (ELdestControl &dest, const char *title="")
 
void summary (std::ostream &os, const char *title="")
 
void summary (ELstring &s, const char *title="")
 
void summary ()
 
void summaryForJobReport (std::map< std::string, double > &sm)
 
void suppressContext ()
 
void suppressModule ()
 
void suppressSerial ()
 
void suppressSubroutine ()
 
void suppressText ()
 
void suppressTime ()
 
void useContext ()
 
void useFullContext ()
 
ELdestControlwipe ()
 
ELdestControlzero ()
 
 ~ELdestControl ()
 

Private Attributes

boost::shared_ptr< ELdestinationd
 

Detailed Description

Definition at line 53 of file ELdestControl.h.

Constructor & Destructor Documentation

edm::service::ELdestControl::ELdestControl ( boost::shared_ptr< ELdestination dest)

Definition at line 44 of file ELdestControl.cc.

References dtNoiseDBValidation_cfg::cerr.

45 : d ( dest )
46 {
47  #ifdef ELdestinationCONSTRUCTOR_TRACE
48  std::cerr << "Constructor for ELdestControl\n";
49  #endif
50 } // ELdestControl()
boost::shared_ptr< ELdestination > d
edm::service::ELdestControl::ELdestControl ( )

Definition at line 53 of file ELdestControl.cc.

References dtNoiseDBValidation_cfg::cerr.

54 : d ( )
55 {
56  #ifdef ELdestinationCONSTRUCTOR_TRACE
57  std::cerr << "Default Constructor for ELdestControl\n";
58  #endif
59 } // ELdestControl()
boost::shared_ptr< ELdestination > d
edm::service::ELdestControl::~ELdestControl ( )

Definition at line 62 of file ELdestControl.cc.

References dtNoiseDBValidation_cfg::cerr.

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

Member Function Documentation

void edm::service::ELdestControl::attachEpilogue ( )

Definition at line 152 of file ELdestControl.cc.

References d.

152 { if (d) d->attachEpilogue(); }
boost::shared_ptr< ELdestination > d
void edm::service::ELdestControl::attachTime ( )

Definition at line 149 of file ELdestControl.cc.

References d.

149 { if (d) d->attachTime(); }
boost::shared_ptr< ELdestination > d
void edm::service::ELdestControl::changeFile ( std::ostream &  os)

Definition at line 277 of file ELdestControl.cc.

References d.

277  {
278  if (d) d->changeFile(os);
279 }
boost::shared_ptr< ELdestination > d
void edm::service::ELdestControl::changeFile ( const ELstring filename)

Definition at line 281 of file ELdestControl.cc.

References d.

281  {
282  if (d) d->changeFile(filename);
283 }
boost::shared_ptr< ELdestination > d
tuple filename
Definition: lut2db_cfg.py:20
ELdestControl & edm::service::ELdestControl::clearSummary ( )

Definition at line 229 of file ELdestControl.cc.

References d.

229  {
230  if (d) d->clearSummary();
231  return * this;
232 }
boost::shared_ptr< ELdestination > d
void edm::service::ELdestControl::excludeModule ( ELstring const &  moduleName)

Definition at line 181 of file ELdestControl.cc.

References d.

181  {
182  if (d) d->excludeModule( moduleName );
183 }
boost::shared_ptr< ELdestination > d
std::string moduleName(Provenance const &provenance)
Definition: Provenance.cc:27
void edm::service::ELdestControl::filterModule ( ELstring const &  moduleName)

Definition at line 177 of file ELdestControl.cc.

References d.

177  {
178  if (d) d->filterModule( moduleName );
179 }
boost::shared_ptr< ELdestination > d
std::string moduleName(Provenance const &provenance)
Definition: Provenance.cc:27
void edm::service::ELdestControl::flush ( )

Definition at line 285 of file ELdestControl.cc.

References d.

285  {
286  if (d) d->flush();
287 }
boost::shared_ptr< ELdestination > d
int edm::service::ELdestControl::getLineLength ( ) const

Definition at line 169 of file ELdestControl.cc.

References d.

169  {
170  if (d) {
171  return d->getLineLength();
172  } else {
173  return 0;
174  }
175 }
boost::shared_ptr< ELdestination > d
ELstring edm::service::ELdestControl::getNewline ( ) const

Definition at line 261 of file ELdestControl.cc.

References d.

Referenced by edm::service::ELdestination::summary().

261  {
262  if (d) {
263  return d->getNewline();
264  } else {
265  return ELstring();
266  }
267 }
boost::shared_ptr< ELdestination > d
std::string ELstring
Definition: ELstring.h:26
void edm::service::ELdestControl::ignoreModule ( ELstring const &  moduleName)

Definition at line 185 of file ELdestControl.cc.

References d.

185  {
186  if (d) d->ignoreModule( moduleName );
187 }
boost::shared_ptr< ELdestination > d
std::string moduleName(Provenance const &provenance)
Definition: Provenance.cc:27
void edm::service::ELdestControl::includeContext ( )

Definition at line 140 of file ELdestControl.cc.

References d.

140 { if (d) d->includeContext(); }
boost::shared_ptr< ELdestination > d
void edm::service::ELdestControl::includeModule ( )

Definition at line 131 of file ELdestControl.cc.

References d.

131 { if (d) d->includeModule(); }
boost::shared_ptr< ELdestination > d
void edm::service::ELdestControl::includeSerial ( )

Definition at line 143 of file ELdestControl.cc.

References d.

143 { if (d) d->includeSerial(); }
boost::shared_ptr< ELdestination > d
void edm::service::ELdestControl::includeSubroutine ( )

Definition at line 134 of file ELdestControl.cc.

References d.

134 { if (d) d->includeSubroutine(); }
boost::shared_ptr< ELdestination > d
void edm::service::ELdestControl::includeText ( )

Definition at line 128 of file ELdestControl.cc.

References d.

128 { if (d) d->includeText(); }
boost::shared_ptr< ELdestination > d
void edm::service::ELdestControl::includeTime ( )

Definition at line 137 of file ELdestControl.cc.

References d.

137 { if (d) d->includeTime(); }
boost::shared_ptr< ELdestination > d
bool edm::service::ELdestControl::log ( edm::ErrorObj msg)

Definition at line 247 of file ELdestControl.cc.

References d.

Referenced by edm::service::ELdestination::summary().

247  {
248  if (d) {
249  return d->log( msg );
250  } else {
251  return false;
252  }
253 }
boost::shared_ptr< ELdestination > d
void edm::service::ELdestControl::noTerminationSummary ( )

Definition at line 154 of file ELdestControl.cc.

References d.

Referenced by edm::service::ThreadSafeLogMessageLoggerScribe::configure_statistics(), and edm::service::MessageLoggerScribe::configure_statistics().

154 {if (d) d->noTerminationSummary(); }
boost::shared_ptr< ELdestination > d
void edm::service::ELdestControl::respondToModule ( ELstring const &  moduleName)

Definition at line 189 of file ELdestControl.cc.

References d.

189  {
190  if (d) d->respondToModule( moduleName );
191 }
boost::shared_ptr< ELdestination > d
std::string moduleName(Provenance const &provenance)
Definition: Provenance.cc:27
void edm::service::ELdestControl::separateEpilogue ( )

Definition at line 151 of file ELdestControl.cc.

References d.

151 { if (d) d->separateEpilogue(); }
boost::shared_ptr< ELdestination > d
void edm::service::ELdestControl::separateTime ( )

Definition at line 148 of file ELdestControl.cc.

References d.

148 { if (d) d->separateTime(); }
boost::shared_ptr< ELdestination > d
ELdestControl & edm::service::ELdestControl::setInterval ( const ELstring s,
int  interval 
)

Definition at line 97 of file ELdestControl.cc.

References d.

Referenced by edm::service::ThreadSafeLogMessageLoggerScribe::configure_dest(), edm::service::MessageLoggerScribe::configure_dest(), and setInterval().

97  {
98  if (d) d->limits.setInterval( s, interval );
99  return * this;
100 }
boost::shared_ptr< ELdestination > d
tuple interval
Definition: MergeJob_cfg.py:20
ELdestControl & edm::service::ELdestControl::setInterval ( const ELseverityLevel sv,
int  interval 
)

Definition at line 92 of file ELdestControl.cc.

References setInterval().

92  {
93  if (d) d->limits.setInterval( sv, interval );
94  return * this;
95 }
boost::shared_ptr< ELdestination > d
tuple interval
Definition: MergeJob_cfg.py:20
ELdestControl & edm::service::ELdestControl::setLimit ( const ELstring s,
int  n 
)

Definition at line 85 of file ELdestControl.cc.

References d.

Referenced by edm::service::ThreadSafeLogMessageLoggerScribe::configure_dest(), and edm::service::MessageLoggerScribe::configure_dest().

85  {
86  if (d) d->limits.setLimit( s, n );
87  return * this;
88 }
boost::shared_ptr< ELdestination > d
ELdestControl & edm::service::ELdestControl::setLimit ( const ELseverityLevel sv,
int  n 
)

Definition at line 103 of file ELdestControl.cc.

References d.

103  {
104  if (d) d->limits.setLimit( sv, n );
105  return * this;
106 }
boost::shared_ptr< ELdestination > d
int edm::service::ELdestControl::setLineLength ( int  len)

Definition at line 161 of file ELdestControl.cc.

References d.

Referenced by edm::service::ThreadSafeLogMessageLoggerScribe::configure_dest(), and edm::service::MessageLoggerScribe::configure_dest().

161  {
162  if (d) {
163  return d->setLineLength(len);
164  } else {
165  return 0;
166  }
167 }
boost::shared_ptr< ELdestination > d
ELdestControl & edm::service::ELdestControl::setNewline ( const ELstring newline)

Definition at line 194 of file ELdestControl.cc.

References d.

194  {
195  if (d) d->newline = newline;
196  return * this;
197 }
boost::shared_ptr< ELdestination > d
ELdestControl & edm::service::ELdestControl::setPreamble ( const ELstring preamble)

Definition at line 156 of file ELdestControl.cc.

References d.

156  {
157  if (d) d->preamble = preamble;
158  return * this;
159 }
boost::shared_ptr< ELdestination > d
ELdestControl & edm::service::ELdestControl::setTableLimit ( int  n)

Definition at line 121 of file ELdestControl.cc.

References d.

121  {
122  if (d) d->limits.setTableLimit( n );
123  return * this;
124 }
boost::shared_ptr< ELdestination > d
ELdestControl & edm::service::ELdestControl::setThreshold ( const ELseverityLevel sv)
ELdestControl & edm::service::ELdestControl::setTimespan ( const ELstring s,
int  n 
)

Definition at line 109 of file ELdestControl.cc.

References d.

Referenced by edm::service::ThreadSafeLogMessageLoggerScribe::configure_dest(), and edm::service::MessageLoggerScribe::configure_dest().

109  {
110  if (d) d->limits.setTimespan( s, n );
111  return * this;
112 }
boost::shared_ptr< ELdestination > d
ELdestControl & edm::service::ELdestControl::setTimespan ( const ELseverityLevel sv,
int  n 
)

Definition at line 115 of file ELdestControl.cc.

References d.

115  {
116  if (d) d->limits.setTimespan( sv, n );
117  return * this;
118 }
boost::shared_ptr< ELdestination > d
ELdestControl & edm::service::ELdestControl::setTraceThreshold ( const ELseverityLevel sv)

Definition at line 79 of file ELdestControl.cc.

References d.

79  {
80  if (d) d->traceThreshold = sv;
81  return * this;
82 }
boost::shared_ptr< ELdestination > d
std::map< ELextendedID, StatsCount > edm::service::ELdestControl::statisticsMap ( ) const

Definition at line 269 of file ELdestControl.cc.

References d.

269  {
270  if (d) {
271  return d->statisticsMap();
272  } else {
273  return std::map<ELextendedID , StatsCount>();
274  }
275 }
boost::shared_ptr< ELdestination > d
void edm::service::ELdestControl::summarization ( const ELstring title,
const ELstring sumLines 
)

Definition at line 255 of file ELdestControl.cc.

References d.

Referenced by edm::service::ELstatistics::summary().

257  {
258  if (d) d->summarization ( title, sumLines );
259 }
boost::shared_ptr< ELdestination > d
void edm::service::ELdestControl::summary ( ELdestControl dest,
const char *  title = "" 
)

Definition at line 206 of file ELdestControl.cc.

References d.

206  {
207  if (d) d->summary( dest, title );
208 }
boost::shared_ptr< ELdestination > d
void edm::service::ELdestControl::summary ( std::ostream &  os,
const char *  title = "" 
)

Definition at line 211 of file ELdestControl.cc.

References d.

211  {
212  if (d) d->summary( os, title );
213 }
boost::shared_ptr< ELdestination > d
void edm::service::ELdestControl::summary ( ELstring s,
const char *  title = "" 
)

Definition at line 216 of file ELdestControl.cc.

References d.

216  {
217  if (d) d->summary( s, title );
218 }
boost::shared_ptr< ELdestination > d
void edm::service::ELdestControl::summary ( )

Definition at line 220 of file ELdestControl.cc.

References d.

220  {
221  if (d) d->summary( );
222 }
boost::shared_ptr< ELdestination > d
void edm::service::ELdestControl::summaryForJobReport ( std::map< std::string, double > &  sm)

Definition at line 224 of file ELdestControl.cc.

References d.

224  {
225  if (d) d->summaryForJobReport(sm);
226 }
boost::shared_ptr< ELdestination > d
void edm::service::ELdestControl::suppressContext ( )

Definition at line 139 of file ELdestControl.cc.

References d.

139 { if (d) d->suppressContext(); }
boost::shared_ptr< ELdestination > d
void edm::service::ELdestControl::suppressModule ( )

Definition at line 130 of file ELdestControl.cc.

References d.

130 { if (d) d->suppressModule(); }
boost::shared_ptr< ELdestination > d
void edm::service::ELdestControl::suppressSerial ( )

Definition at line 142 of file ELdestControl.cc.

References d.

142 { if (d) d->suppressSerial(); }
boost::shared_ptr< ELdestination > d
void edm::service::ELdestControl::suppressSubroutine ( )

Definition at line 133 of file ELdestControl.cc.

References d.

133 { if (d) d->suppressSubroutine(); }
boost::shared_ptr< ELdestination > d
void edm::service::ELdestControl::suppressText ( )

Definition at line 127 of file ELdestControl.cc.

References d.

127 { if (d) d->suppressText(); } // $$ jvr
boost::shared_ptr< ELdestination > d
void edm::service::ELdestControl::suppressTime ( )
void edm::service::ELdestControl::useContext ( )

Definition at line 146 of file ELdestControl.cc.

References d.

146 { if (d) d->useContext(); }
boost::shared_ptr< ELdestination > d
void edm::service::ELdestControl::useFullContext ( )

Definition at line 145 of file ELdestControl.cc.

References d.

145 { if (d) d->useFullContext(); }
boost::shared_ptr< ELdestination > d
ELdestControl & edm::service::ELdestControl::wipe ( )

Definition at line 235 of file ELdestControl.cc.

References d.

235  {
236  if (d) d->wipe();
237  return * this;
238 }
boost::shared_ptr< ELdestination > d
ELdestControl & edm::service::ELdestControl::zero ( )

Definition at line 241 of file ELdestControl.cc.

References d.

241  {
242  if (d) d->zero();
243  return * this;
244 }
boost::shared_ptr< ELdestination > d

Member Data Documentation

boost::shared_ptr<ELdestination> edm::service::ELdestControl::d
private