| # Gaudi Framework, version v22r2 |

Home |  | Generated: Tue May 10 2011

# AlgErrorAuditor.h

Go to the documentation of this file.

    00001 #ifndef GAUDIAUD_ALGERRORAUDITOR_H
    00002 #define GAUDIAUD_ALGERRORAUDITOR_H
    00003
    00004 #include "GaudiKernel/Auditor.h"
    00005 #include <map>
    00006 #include <string>
    00007
    00008 class IMessageSvc;
    00009
    00015 class AlgErrorAuditor : virtual public Auditor {
    00016 public:
    00017   AlgErrorAuditor(const std::string& name, ISvcLocator* pSvcLocator);
    00018   virtual ~AlgErrorAuditor();
    00019
    00020   virtual StatusCode initialize();
    00021   virtual StatusCode finalize();
    00022
    00023   virtual void beforeExecute(INamedInterface* alg);
    00024   virtual void afterExecute(INamedInterface* alg, const StatusCode&);
    00025 private:
    00026
    00027   BooleanProperty m_abort, m_throw;
    00028
    00029   void incrMap(const std::string& algName, int level);
    00030
    00031   int m_error;
    00032   int m_fatal;
    00033
    00034   std::map <std::string, int> m_algMap[2];
    00035
    00036 };
    00037
    00038 #endif

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines