CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/FWCore/MessageService/interface/ELcontextSupplier.h

Go to the documentation of this file.
00001 #ifndef FWCore_MessageService_ELcontextSupplier_h
00002 #define FWCore_MessageService_ELcontextSupplier_h
00003 
00004 
00005 // ----------------------------------------------------------------------
00006 //
00007 // ELcontextSupplier    a class with a few (pure virtual) methods to
00008 //                      provides strings for summary, ordinary, and
00009 //                      more verbose full constexts.  The context is
00010 //                      meant to convey framework-wide info, such as
00011 //                      current run and event.
00012 //
00013 //
00014 //      THIS HEADER FILE DEFINES AN INTERFACE AND IS INCLUDED IN
00015 //      FRAMEWORK CODE THAT OUGHT NOT TO BE FORCED TO RECOMPILE
00016 //      UNNECESSARILY.
00017 //
00018 //      THEREFORE, CHANGES IN THIS FILE SHOULD BE AVOIDED IF POSSIBLE.
00019 //
00020 // 7/7/98 mf    Created file.
00021 // 7/14/98 pgc  Renamed from ELcontextSupplier to ELcontextSupplier
00022 // 9/8/98 web   Minor touch-ups
00023 // 12/20/99 mf  Added virtual destructor.
00024 //
00025 // ----------------------------------------------------------------------
00026 
00027 
00028 #include "FWCore/MessageLogger/interface/ELstring.h"
00029 #include "FWCore/MessageLogger/interface/ErrorObj.h"
00030 
00031 namespace edm {       
00032 namespace service {       
00033 
00034 // ----------------------------------------------------------------------
00035 // ELcontextSupplier:
00036 // ----------------------------------------------------------------------
00037 
00038 class ELcontextSupplier  {
00039 
00040 public:
00041   virtual ELcontextSupplier * clone()          const = 0;
00042   virtual ELstring            context()        const = 0;
00043   virtual ELstring            summaryContext() const = 0;
00044   virtual ELstring            fullContext()    const = 0;
00045 
00046   virtual void editErrorObj( edm::ErrorObj & ) const  { }
00047   virtual edm::ELstring traceRoutine( ) const  { return edm::ELstring(""); }
00048 
00049   virtual ~ELcontextSupplier()  { ; }
00050 
00051 };  // ELcontextSupplier
00052 
00053 
00054 // ----------------------------------------------------------------------
00055 
00056 
00057 }        // end of namespace service
00058 }        // end of namespace edm
00059 
00060 
00061 #endif  // FWCore_MessageService_ELcontextSupplier_h