|
Gaudi Framework, version v23r2 |
| Home | Generated: Thu Jun 28 2012 |
Description: Register/Unregister the AlgContext of each algorithm before entering the algorithm and after leaving it. More...
#include <AlgContextAuditor.h>


Public Member Functions | |
| virtual void | beforeInitialize (INamedInterface *a) |
| virtual void | afterInitialize (INamedInterface *a) |
| virtual void | beforeExecute (INamedInterface *a) |
| virtual void | afterExecute (INamedInterface *a, const StatusCode &s) |
| virtual void | beforeFinalize (INamedInterface *a) |
| virtual void | afterFinalize (INamedInterface *a) |
| AlgContextAuditor (const std::string &name, ISvcLocator *pSvc) | |
| standard constructor | |
| virtual | ~AlgContextAuditor () |
| virtual destructor | |
| virtual StatusCode | initialize () |
| standard initialization, | |
| virtual StatusCode | finalize () |
| standard finalization, | |
Private Member Functions | |
| AlgContextAuditor () | |
| the default constructor is disabled | |
| AlgContextAuditor (const AlgContextAuditor &) | |
| copy constructor is disabled | |
| AlgContextAuditor & | operator= (const AlgContextAuditor &) |
| assignment operator is disabled | |
Private Attributes | |
| IAlgContextSvc * | m_svc |
| the pointer to Algorithm Context Service | |
Description: Register/Unregister the AlgContext of each algorithm before entering the algorithm and after leaving it.
Definition at line 22 of file AlgContextAuditor.h.
| AlgContextAuditor::AlgContextAuditor | ( | const std::string & | name, |
| ISvcLocator * | pSvc | ||
| ) |
| AlgContextAuditor::~AlgContextAuditor | ( | ) | [virtual] |
| AlgContextAuditor::AlgContextAuditor | ( | ) | [private] |
the default constructor is disabled
| AlgContextAuditor::AlgContextAuditor | ( | const AlgContextAuditor & | ) | [private] |
copy constructor is disabled
| void AlgContextAuditor::afterExecute | ( | INamedInterface * | a, |
| const StatusCode & | s | ||
| ) | [virtual] |
Reimplemented from Auditor.
Definition at line 122 of file AlgContextAuditor.cpp.
{
if ( 0 != m_svc ) {
IAlgorithm* alg = toAlg(a);
if (alg != 0) m_svc -> unSetCurrentAlg ( alg ).ignore() ;
}
}
| void AlgContextAuditor::afterFinalize | ( | INamedInterface * | a ) | [virtual] |
Reimplemented from Auditor.
Definition at line 108 of file AlgContextAuditor.cpp.
{
if ( 0 != m_svc ) {
IAlgorithm* alg = toAlg(a);
if (alg != 0) m_svc -> unSetCurrentAlg ( alg ).ignore() ;
}
}
| void AlgContextAuditor::afterInitialize | ( | INamedInterface * | a ) | [virtual] |
Reimplemented from Auditor.
Definition at line 94 of file AlgContextAuditor.cpp.
{
if ( 0 != m_svc ) {
IAlgorithm* alg = toAlg(a);
if (alg != 0) m_svc -> unSetCurrentAlg ( alg ).ignore() ;
}
}
| void AlgContextAuditor::beforeExecute | ( | INamedInterface * | a ) | [virtual] |
Reimplemented from Auditor.
Definition at line 115 of file AlgContextAuditor.cpp.
{
if ( 0 != m_svc ) {
IAlgorithm* alg = toAlg(a);
if (alg != 0) m_svc -> setCurrentAlg ( alg ).ignore() ;
}
}
| void AlgContextAuditor::beforeFinalize | ( | INamedInterface * | a ) | [virtual] |
Reimplemented from Auditor.
Definition at line 101 of file AlgContextAuditor.cpp.
{
if ( 0 != m_svc ) {
IAlgorithm* alg = toAlg(a);
if (alg != 0) m_svc -> setCurrentAlg ( alg ).ignore() ;
}
}
| void AlgContextAuditor::beforeInitialize | ( | INamedInterface * | a ) | [virtual] |
Reimplemented from Auditor.
Definition at line 87 of file AlgContextAuditor.cpp.
{
if ( 0 != m_svc ) {
IAlgorithm* alg = toAlg(a);
if (alg != 0) m_svc -> setCurrentAlg ( alg ).ignore() ;
}
}
| StatusCode AlgContextAuditor::finalize | ( | ) | [virtual] |
standard finalization,
Reimplemented from Auditor.
Definition at line 80 of file AlgContextAuditor.cpp.
{
if ( 0 != m_svc ) { m_svc-> release() ; m_svc = 0 ; }
// finalize the base class
return Auditor::finalize () ;
}
| StatusCode AlgContextAuditor::initialize | ( | ) | [virtual] |
standard initialization,
Reimplemented from Auditor.
Definition at line 55 of file AlgContextAuditor.cpp.
{
// initialize the base class
StatusCode sc = Auditor::initialize() ;
if ( sc.isFailure() ) { return sc ; } // RETURN
if ( 0 != m_svc ) { m_svc -> release() ; m_svc = 0 ; }
sc = Auditor::service ( "AlgContextSvc" , m_svc , true ) ;
if ( sc.isFailure() )
{
MsgStream log ( msgSvc() , name() ) ;
log << MSG::ERROR << "Unable to locate 'AlgContextSvc'" << sc << endmsg ;
m_svc = 0 ;
return sc ; // RETURN
}
if ( 0 == m_svc )
{
MsgStream log ( msgSvc() , name() ) ;
log << MSG::ERROR << "Invalid pointer to IAlgContextSvc" << endmsg ;
return StatusCode::FAILURE ; // RETURN
}
return StatusCode::SUCCESS ;
}
| AlgContextAuditor& AlgContextAuditor::operator= | ( | const AlgContextAuditor & | ) | [private] |
assignment operator is disabled
IAlgContextSvc* AlgContextAuditor::m_svc [private] |
the pointer to Algorithm Context Service
Definition at line 56 of file AlgContextAuditor.h.