| # Gaudi Framework, version v20r2
Generated: 18 Jul 2008

- Main Page
- Namespaces
- Classes
- Files
- Directories
- Related Pages

- Search for |

- File List
- File Members

# AlgContextAuditor.cpp File Reference

## Detailed Description

Implementation file for class AlgContexAuditor.

Author:
  M. Shapiro, LBNL

  modified by Vanya BELYAEV ibelyaev@physics.syr.edu

Definition in file AlgContextAuditor.cpp.

`#include <cassert>`
`#include "GaudiKernel/IAlgContextSvc.h"`
`#include "GaudiKernel/IAlgorithm.h"`
`#include "GaudiKernel/AudFactory.h"`
`#include "GaudiKernel/INamedInterface.h"`
`#include "GaudiKernel/SmartIF.h"`
`#include "GaudiKernel/MsgStream.h"`
`#include "AlgContextAuditor.h"`

Include dependency graph for AlgContextAuditor.cpp:

Go to the source code of this file.

## Functions
IAlgorithm * | toAlg (IInterface *ni)
| make a safe cast using "smart interface"
| DECLARE_AUDITOR_FACTORY (AlgContextAuditor)

## Function Documentation

DECLARE_AUDITOR_FACTORY | ( | AlgContextAuditor |  | ) |

IAlgorithm* @75::toAlg | ( | IInterface * | ni | ) | `[inline, static]`

make a safe cast using "smart interface"

See also:
  INamedInterface

  IAlgorithm

  SmartIF

  IInterface::queryInterface

Parameters:

  | i | pointer to INamedInterface

Returns:
  pointer to IAlgorithm

Definition at line 58 of file AlgContextAuditor.cpp.

References IAlgorithm::interfaceID().

Referenced by AlgContextAuditor::afterExecute(), AlgContextAuditor::afterFinalize(), AlgContextAuditor::afterInitialize(), AlgContextAuditor::beforeExecute(), AlgContextAuditor::beforeFinalize(), and AlgContextAuditor::beforeInitialize().

    00059   {
    00060     if ( 0 == ni ) { return 0 ; }
    00061     SmartIF<IAlgorithm> alg ( IAlgorithm::interfaceID() , ni ) ;
    00062     return alg ;
    00063   }