| # Gaudi Framework, version v22r2 |

Home |  | Generated: Tue May 10 2011

# NameAuditor.cpp

Go to the documentation of this file.

    00001 // NameAuditor:
    00002 //  An auditor that prints the name of each algorithm method before
    00003 // and after it is called///
    00004
    00005 #include "NameAuditor.h"
    00006
    00007 #include "GaudiKernel/MsgStream.h"
    00008 #include "GaudiKernel/AudFactory.h"
    00009
    00010 DECLARE_AUDITOR_FACTORY(NameAuditor)
    00011
    00012 NameAuditor::NameAuditor(const std::string& name, ISvcLocator* pSvcLocator):
    00013   CommonAuditor(name, pSvcLocator) {
    00014 }
    00015
    00016 void NameAuditor::i_before(CustomEventTypeRef evt, const std::string& caller)
    00017 {
    00018   MsgStream log( msgSvc(), name() );
    00019   log << MSG::INFO << "About to Enter " << caller << " with auditor trigger "
    00020       << evt << endmsg;
    00021 }
    00022
    00023 void NameAuditor::i_after(CustomEventTypeRef evt, const std::string& caller, const StatusCode&)
    00024 {
    00025   MsgStream log( msgSvc(), name() );
    00026   log << MSG::INFO << "Just Exited " << caller << " with auditor trigger "
    00027       << evt << endmsg;
    00028 }

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