CMS 3D CMS Logo

Public Member Functions | Protected 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::ELlog4cplus edm::service::ELerrorList edm::service::ELfwkJobReport edm::service::ELoutput edm::service::ELstatistics edm::service::ELcollected

List of all members.

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 (ELstring &s, const ELstring &title="")
virtual void summary (ELdestControl &dest, const ELstring &title="")
virtual void summary (std::ostream &os, 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 dtNoiseDBValidation_cfg::cerr.

: threshold     ( ELzeroSeverity    )
, traceThreshold( ELhighestSeverity )
, limits        (                   )
, preamble      ( "%MSG"            )
, newline       ( "\n"              )
, indent        ( "      "          )
, lineLength    ( defaultLineLength )
, ignoreMostModules (false)
, respondToThese()
, respondToMostModules (false)
, ignoreThese()
{

  #ifdef ELdestinationCONSTRUCTOR_TRACE
    std::cerr << "Constructor for ELdestination\n";
  #endif

}  // ELdestination()
edm::service::ELdestination::~ELdestination ( ) [virtual]

Definition at line 65 of file ELdestination.cc.

References dtNoiseDBValidation_cfg::cerr.

                               {

  #ifdef ELdestinationCONSTRUCTOR_TRACE
    std::cerr << "Destructor for ELdestination\n";
  #endif

}  // ~ELdestination()
edm::service::ELdestination::ELdestination ( const ELdestination orig) [private]

Member Function Documentation

void edm::service::ELdestination::attachEpilogue ( ) [private, virtual]

Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.

Definition at line 242 of file ELdestination.cc.

{ ; }
void edm::service::ELdestination::attachTime ( ) [private, virtual]

Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.

Definition at line 239 of file ELdestination.cc.

{ ; }
void edm::service::ELdestination::changeFile ( const ELstring filename) [protected, virtual]
void edm::service::ELdestination::changeFile ( std::ostream &  os) [protected, virtual]
void edm::service::ELdestination::clearSummary ( ) [protected, virtual]
virtual ELdestination* edm::service::ELdestination::clone ( ) const [pure virtual]
void edm::service::ELdestination::excludeModule ( ELstring const &  moduleName) [protected, virtual]

Definition at line 141 of file ELdestination.cc.

References ignoreModule(), and respondToModule().

                                                                {
  respondToModule("*");
  ignoreModule(moduleName);
}
void edm::service::ELdestination::filterModule ( ELstring const &  moduleName) [protected, virtual]

Definition at line 136 of file ELdestination.cc.

References ignoreModule(), and respondToModule().

                                                               {
  ignoreModule("*");
  respondToModule(moduleName);
}
void edm::service::ELdestination::finish ( ) [virtual]

Reimplemented in edm::service::ELfwkJobReport.

Definition at line 176 of file ELdestination.cc.

{  }
void edm::service::ELdestination::flush ( ) [protected, virtual]
int edm::service::ELdestination::getLineLength ( ) const [private, virtual]

Definition at line 254 of file ELdestination.cc.

References lineLength.

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

Definition at line 246 of file ELdestination.cc.

References newline.

{ return newline; }
void edm::service::ELdestination::ignoreModule ( ELstring const &  moduleName) [protected, virtual]

Definition at line 124 of file ELdestination.cc.

References ignoreMostModules, ignoreThese, respondToMostModules, and respondToThese.

Referenced by excludeModule(), and filterModule().

                                                               {
  if (moduleName=="*") {
    respondToMostModules = false;
    ignoreMostModules = true;
    respondToThese.clear();
    ignoreThese.clear();
  } else {
    ignoreThese.insert(moduleName);
    respondToThese.erase(moduleName);
  }
}
void edm::service::ELdestination::includeContext ( ) [private, virtual]

Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.

Definition at line 230 of file ELdestination.cc.

{ ; }
void edm::service::ELdestination::includeModule ( ) [private, virtual]

Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.

Definition at line 221 of file ELdestination.cc.

{ ; }
void edm::service::ELdestination::includeSerial ( ) [private, virtual]

Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.

Definition at line 233 of file ELdestination.cc.

{ ; }
void edm::service::ELdestination::includeSubroutine ( ) [private, virtual]

Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.

Definition at line 224 of file ELdestination.cc.

{ ; }
void edm::service::ELdestination::includeText ( ) [private, virtual]

Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.

Definition at line 218 of file ELdestination.cc.

{ ; }
void edm::service::ELdestination::includeTime ( ) [private, virtual]

Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.

Definition at line 227 of file ELdestination.cc.

{ ; }
bool edm::service::ELdestination::log ( const edm::ErrorObj msg) [virtual]
void edm::service::ELdestination::noTerminationSummary ( ) [private, virtual]

Reimplemented in edm::service::ELstatistics.

Definition at line 244 of file ELdestination.cc.

{ ; }
ELdestination& edm::service::ELdestination::operator= ( const ELdestination orig) [private]
void edm::service::ELdestination::respondToModule ( ELstring const &  moduleName) [protected, virtual]

Definition at line 112 of file ELdestination.cc.

References ignoreMostModules, ignoreThese, respondToMostModules, and respondToThese.

Referenced by excludeModule(), and filterModule().

                                                                  {
  if (moduleName=="*") {
    ignoreMostModules = false;
    respondToMostModules = true;
    ignoreThese.clear();
    respondToThese.clear();
  } else {
    respondToThese.insert(moduleName);
    ignoreThese.erase(moduleName);
  }
}
void edm::service::ELdestination::separateEpilogue ( ) [private, virtual]

Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.

Definition at line 241 of file ELdestination.cc.

{ ; }
void edm::service::ELdestination::separateTime ( ) [private, virtual]

Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.

Definition at line 238 of file ELdestination.cc.

{ ; }
int edm::service::ELdestination::setLineLength ( int  len) [private, virtual]

Definition at line 248 of file ELdestination.cc.

References lineLength, and groupFilesInBlocks::temp.

                                         {
  int temp=lineLength;
  lineLength = len;
  return temp;
}
void edm::service::ELdestination::setTableLimit ( int  n) [protected, virtual]

Definition at line 178 of file ELdestination.cc.

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

{ limits.setTableLimit( n ); }
std::map< ELextendedID, StatsCount > edm::service::ELdestination::statisticsMap ( ) const [protected, virtual]

Reimplemented in edm::service::ELstatistics.

Definition at line 191 of file ELdestination.cc.

                                                                     {
  return std::map<ELextendedID , StatsCount> ();
}
void edm::service::ELdestination::summarization ( const edm::ELstring title,
const edm::ELstring sumLines 
) [virtual]
void edm::service::ELdestination::summary ( ELstring s,
const ELstring title = "" 
) [protected, virtual]

Reimplemented in edm::service::ELstatistics.

Definition at line 166 of file ELdestination.cc.

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

                                                                   {

  s = ELstring("%MSG") + ELwarning2.getSymbol() + " "
      + noSummaryMsg + " " + hereMsg + "\n"
    + title + "\n";

}  // summary()
void edm::service::ELdestination::summary ( ) [protected, virtual]

Reimplemented in edm::service::ELstatistics.

Definition at line 146 of file ELdestination.cc.

{ }
void edm::service::ELdestination::summary ( ELdestControl dest,
const ELstring title = "" 
) [protected, virtual]
void edm::service::ELdestination::summary ( std::ostream &  os,
const ELstring title = "" 
) [protected, virtual]

Reimplemented in edm::service::ELstatistics.

Definition at line 157 of file ELdestination.cc.

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

                                                                      {

  os << "%MSG" << ELwarning2.getSymbol() << " "
       << noSummaryMsg << " " << hereMsg << std::endl
     << title << std::endl;

}  // summary()
void edm::service::ELdestination::summaryForJobReport ( std::map< std::string, double > &  sm) [protected, virtual]

Reimplemented in edm::service::ELstatistics.

Definition at line 174 of file ELdestination.cc.

{ }
void edm::service::ELdestination::suppressContext ( ) [private, virtual]

Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.

Definition at line 229 of file ELdestination.cc.

{ ; }
void edm::service::ELdestination::suppressModule ( ) [private, virtual]

Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.

Definition at line 220 of file ELdestination.cc.

{ ; }
void edm::service::ELdestination::suppressSerial ( ) [private, virtual]

Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.

Definition at line 232 of file ELdestination.cc.

{ ; }
void edm::service::ELdestination::suppressSubroutine ( ) [private, virtual]

Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.

Definition at line 223 of file ELdestination.cc.

{ ; }
void edm::service::ELdestination::suppressText ( ) [private, virtual]

Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.

Definition at line 217 of file ELdestination.cc.

{ ; }                      // $$ jvr
void edm::service::ELdestination::suppressTime ( ) [private, virtual]

Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.

Definition at line 226 of file ELdestination.cc.

{ ; }
bool edm::service::ELdestination::thisShouldBeIgnored ( const ELstring s) const [protected, virtual]
void edm::service::ELdestination::useContext ( ) [private, virtual]

Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.

Definition at line 236 of file ELdestination.cc.

{ ; }
void edm::service::ELdestination::useFullContext ( ) [private, virtual]

Reimplemented in edm::ELlog4cplus, edm::service::ELfwkJobReport, and edm::service::ELoutput.

Definition at line 235 of file ELdestination.cc.

{ ; }
void edm::service::ELdestination::wipe ( ) [protected, virtual]

Reimplemented in edm::service::ELstatistics.

Definition at line 107 of file ELdestination.cc.

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

{ limits.wipe(); }
void edm::service::ELdestination::zero ( ) [protected, virtual]

Reimplemented in edm::service::ELstatistics.

Definition at line 110 of file ELdestination.cc.

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

{ limits.zero(); }

Friends And Related Function Documentation

friend class ELadministrator [friend]

Reimplemented in edm::service::ELstatistics.

Definition at line 56 of file ELdestination.h.

friend class ELdestControl [friend]

Member Data Documentation

const int edm::service::ELdestination::defaultLineLength = 80 [static, protected]

Definition at line 135 of file ELdestination.h.