#include <AlgContextAuditor.h>
Inheritance diagram for AlgContextAuditor:
modified by Vanya BELYAEV ibelyaev@physics.syr.edu
Definition at line 39 of file AlgContextAuditor.h.
AlgContextAuditor::AlgContextAuditor | ( | const std::string & | name, | |
ISvcLocator * | pSvc | |||
) |
AlgContextAuditor::~AlgContextAuditor | ( | ) | [virtual] |
AlgContextAuditor::AlgContextAuditor | ( | ) | [private] |
no default constructor
AlgContextAuditor::AlgContextAuditor | ( | const AlgContextAuditor & | ) | [private] |
no copy constructor
void AlgContextAuditor::beforeInitialize | ( | INamedInterface * | a | ) | [virtual] |
Reimplemented from Auditor.
Definition at line 117 of file AlgContextAuditor.cpp.
00117 { 00118 if ( 0 != m_svc ) { 00119 IAlgorithm* alg = toAlg(a); 00120 if (alg != 0) m_svc -> setCurrentAlg ( alg ).ignore() ; 00121 } 00122 }
void AlgContextAuditor::afterInitialize | ( | INamedInterface * | a | ) | [virtual] |
Reimplemented from Auditor.
Definition at line 124 of file AlgContextAuditor.cpp.
00124 { 00125 if ( 0 != m_svc ) { 00126 IAlgorithm* alg = toAlg(a); 00127 if (alg != 0) m_svc -> unSetCurrentAlg ( alg ).ignore() ; 00128 } 00129 }
void AlgContextAuditor::beforeExecute | ( | INamedInterface * | a | ) | [virtual] |
Reimplemented from Auditor.
Definition at line 145 of file AlgContextAuditor.cpp.
00145 { 00146 if ( 0 != m_svc ) { 00147 IAlgorithm* alg = toAlg(a); 00148 if (alg != 0) m_svc -> setCurrentAlg ( alg ).ignore() ; 00149 } 00150 }
void AlgContextAuditor::afterExecute | ( | INamedInterface * | a, | |
const StatusCode & | s | |||
) | [virtual] |
Reimplemented from Auditor.
Definition at line 152 of file AlgContextAuditor.cpp.
00153 { 00154 if ( 0 != m_svc ) { 00155 IAlgorithm* alg = toAlg(a); 00156 if (alg != 0) m_svc -> unSetCurrentAlg ( alg ).ignore() ; 00157 } 00158 }
void AlgContextAuditor::beforeFinalize | ( | INamedInterface * | a | ) | [virtual] |
Reimplemented from Auditor.
Definition at line 131 of file AlgContextAuditor.cpp.
00131 { 00132 if ( 0 != m_svc ) { 00133 IAlgorithm* alg = toAlg(a); 00134 if (alg != 0) m_svc -> setCurrentAlg ( alg ).ignore() ; 00135 } 00136 }
void AlgContextAuditor::afterFinalize | ( | INamedInterface * | a | ) | [virtual] |
Reimplemented from Auditor.
Definition at line 138 of file AlgContextAuditor.cpp.
00138 { 00139 if ( 0 != m_svc ) { 00140 IAlgorithm* alg = toAlg(a); 00141 if (alg != 0) m_svc -> unSetCurrentAlg ( alg ).ignore() ; 00142 } 00143 }
StatusCode AlgContextAuditor::initialize | ( | ) | [virtual] |
standard initialization, see
Reimplemented from Auditor.
Definition at line 85 of file AlgContextAuditor.cpp.
00086 { 00087 // initialize the base class 00088 StatusCode sc = Auditor::initialize() ; 00089 if ( sc.isFailure() ) { return sc ; } // RETURN 00090 if ( 0 != m_svc ) { m_svc -> release() ; m_svc = 0 ; } 00091 sc = Auditor::service ( "AlgContextSvc" , m_svc , true ) ; 00092 if ( sc.isFailure() ) 00093 { 00094 MsgStream log ( msgSvc() , name() ) ; 00095 log << MSG::ERROR << "Unable to locate 'AlgContextSvc'" << sc << endreq ; 00096 m_svc = 0 ; 00097 return sc ; // RETURN 00098 } 00099 if ( 0 == m_svc ) 00100 { 00101 MsgStream log ( msgSvc() , name() ) ; 00102 log << MSG::ERROR << "Invalid pointer to IAlgContextSvc" << endreq ; 00103 return StatusCode::FAILURE ; // RETURN 00104 } 00105 return StatusCode::SUCCESS ; 00106 }
StatusCode AlgContextAuditor::finalize | ( | ) | [virtual] |
standard finalization, see
Reimplemented from Auditor.
Definition at line 110 of file AlgContextAuditor.cpp.
00111 { 00112 if ( 0 != m_svc ) { m_svc-> release() ; m_svc = 0 ; } 00113 // finalize the base class 00114 return Auditor::finalize () ; 00115 }
AlgContextAuditor& AlgContextAuditor::operator= | ( | const AlgContextAuditor & | ) | [private] |
no assignement
IAlgContextSvc* AlgContextAuditor::m_svc [private] |