| # Gaudi Framework, version v22r4 |

Home |  | Generated: Fri Sep 2 2011

Public Member Functions | Private Member Functions

# NameAuditor Class Reference

Prints the name of each algorithm before entering the algorithm and after leaving it. More...

`#include <NameAuditor.h>`

Inheritance diagram for NameAuditor:
[legend]
Collaboration diagram for NameAuditor:
[legend]

List of all members.

## Public Member Functions
| NameAuditor (const std::string &name, ISvcLocator *pSvcLocator)
## Private Member Functions
virtual void | i_before (CustomEventTypeRef evt, const std::string &caller)
| Print a message on "before".
virtual void | i_after (CustomEventTypeRef evt, const std::string &caller, const StatusCode &sc)
| Print a message on "after".

## Detailed Description

Prints the name of each algorithm before entering the algorithm and after leaving it.

Author:
  M. Shapiro, LBNL
  Marco Clemencic

Definition at line 11 of file NameAuditor.h.

## Constructor & Destructor Documentation

NameAuditor::NameAuditor | ( | const std::string & | name,
|  | ISvcLocator * | pSvcLocator
| ) |  |

Definition at line 12 of file NameAuditor.cpp.

                                                                           :
      CommonAuditor(name, pSvcLocator) {
    }

## Member Function Documentation

void NameAuditor::i_after | ( | CustomEventTypeRef | evt,
|  | const std::string & | caller,
|  | const StatusCode & | sc
| ) |  | `[private, virtual]`

Print a message on "after".

Implements CommonAuditor.

Definition at line 23 of file NameAuditor.cpp.

    {
      MsgStream log( msgSvc(), name() );
      log << MSG::INFO << "Just Exited " << caller << " with auditor trigger "
          << evt << endmsg;
    }

void NameAuditor::i_before | ( | CustomEventTypeRef | evt,
|  | const std::string & | caller
| ) |  | `[private, virtual]`

Print a message on "before".

Implements CommonAuditor.

Definition at line 16 of file NameAuditor.cpp.

    {
      MsgStream log( msgSvc(), name() );
      log << MSG::INFO << "About to Enter " << caller << " with auditor trigger "
          << evt << endmsg;
    }

The documentation for this class was generated from the following files:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r4/GaudiAud/src/NameAuditor.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r4/GaudiAud/src/NameAuditor.cpp

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