It is a simple guard, which "locks" the scope for the Auditor Service is am exception-safe way.
More...
#include <GaudiKernel/Guards.h>
|
| AuditorGuard (INamedInterface *obj, IAuditor *svc, IAuditor::StandardEventType evt) |
| constructor More...
|
|
| AuditorGuard (INamedInterface *obj, IAuditor *svc, IAuditor::CustomEventTypeRef evt) |
| constructor More...
|
|
| AuditorGuard (INamedInterface *obj, IAuditor *svc, IAuditor::StandardEventType evt, const StatusCode &sc) |
| constructor More...
|
|
| AuditorGuard (INamedInterface *obj, IAuditor *svc, IAuditor::CustomEventTypeRef evt, const StatusCode &sc) |
| constructor More...
|
|
| AuditorGuard (std::string name, IAuditor *svc, IAuditor::StandardEventType evt) |
| constructor More...
|
|
| AuditorGuard (std::string name, IAuditor *svc, IAuditor::CustomEventTypeRef evt) |
| constructor More...
|
|
| AuditorGuard (std::string name, IAuditor *svc, IAuditor::StandardEventType evt, const StatusCode &sc) |
| constructor More...
|
|
| AuditorGuard (std::string name, IAuditor *svc, IAuditor::CustomEventTypeRef evt, const StatusCode &sc) |
| constructor More...
|
|
| ~AuditorGuard () |
| dectructor More...
|
|
const StatusCode & | code () const |
|
| AuditorGuard (INamedInterface *obj, IAuditor *svc, IAuditor::StandardEventType evt) |
| constructor More...
|
|
| AuditorGuard (INamedInterface *obj, IAuditor *svc, IAuditor::CustomEventTypeRef evt) |
| constructor More...
|
|
| AuditorGuard (INamedInterface *obj, IAuditor *svc, IAuditor::StandardEventType evt, const StatusCode &sc) |
| constructor More...
|
|
| AuditorGuard (INamedInterface *obj, IAuditor *svc, IAuditor::CustomEventTypeRef evt, const StatusCode &sc) |
| constructor More...
|
|
| AuditorGuard (std::string name, IAuditor *svc, IAuditor::StandardEventType evt) |
| constructor More...
|
|
| AuditorGuard (std::string name, IAuditor *svc, IAuditor::CustomEventTypeRef evt) |
| constructor More...
|
|
| AuditorGuard (std::string name, IAuditor *svc, IAuditor::StandardEventType evt, const StatusCode &sc) |
| constructor More...
|
|
| AuditorGuard (std::string name, IAuditor *svc, IAuditor::CustomEventTypeRef evt, const StatusCode &sc) |
| constructor More...
|
|
| ~AuditorGuard () |
| dectructor More...
|
|
const StatusCode & | code () const |
|
It is a simple guard, which "locks" the scope for the Auditor Service is am exception-safe way.
The pattern ensures that "post-action" will be always executed
{
auditSvc() ,
...
...
auditor.setCode ( sc ) ;
...
}
- Author
- Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
- Date
- 2007-03-07
Definition at line 214 of file Guards.h.
constructor
Definition at line 64 of file Guards.cpp.
IAuditor::StandardEventType m_evt
Event type (standard events)
INamedInterface * m_obj
the guarded object
SmartIF< IAuditor > m_svc
auditor service
constructor
Definition at line 73 of file Guards.cpp.
IAuditor::StandardEventType m_evt
Event type (standard events)
IAuditor::CustomEventType m_cevt
Event type (custom events)
INamedInterface * m_obj
the guarded object
SmartIF< IAuditor > m_svc
auditor service
bool m_customEvtType
Flag to remember which event type was used.
constructor
Definition at line 84 of file Guards.cpp.
IAuditor::StandardEventType m_evt
Event type (standard events)
INamedInterface * m_obj
the guarded object
const StatusCode * m_sc
Pointer to a status code instance, to be passed to the "after" function if needed The instance must h...
SmartIF< IAuditor > m_svc
auditor service
bool m_customEvtType
Flag to remember which event type was used.
constructor
Definition at line 96 of file Guards.cpp.
IAuditor::StandardEventType m_evt
Event type (standard events)
IAuditor::CustomEventType m_cevt
Event type (custom events)
INamedInterface * m_obj
the guarded object
const StatusCode * m_sc
Pointer to a status code instance, to be passed to the "after" function if needed The instance must h...
SmartIF< IAuditor > m_svc
auditor service
bool m_customEvtType
Flag to remember which event type was used.
constructor
Definition at line 109 of file Guards.cpp.
IAuditor::StandardEventType m_evt
Event type (standard events)
SmartIF< IAuditor > m_svc
auditor service
std::string m_objName
the guarded object name (if there is no INamedInterface)
bool m_customEvtType
Flag to remember which event type was used.
constructor
Definition at line 119 of file Guards.cpp.
IAuditor::StandardEventType m_evt
Event type (standard events)
IAuditor::CustomEventType m_cevt
Event type (custom events)
SmartIF< IAuditor > m_svc
auditor service
std::string m_objName
the guarded object name (if there is no INamedInterface)
bool m_customEvtType
Flag to remember which event type was used.
constructor
Definition at line 130 of file Guards.cpp.
IAuditor::StandardEventType m_evt
Event type (standard events)
const StatusCode * m_sc
Pointer to a status code instance, to be passed to the "after" function if needed The instance must h...
SmartIF< IAuditor > m_svc
auditor service
std::string m_objName
the guarded object name (if there is no INamedInterface)
bool m_customEvtType
Flag to remember which event type was used.
constructor
Definition at line 142 of file Guards.cpp.
IAuditor::StandardEventType m_evt
Event type (standard events)
IAuditor::CustomEventType m_cevt
Event type (custom events)
const StatusCode * m_sc
Pointer to a status code instance, to be passed to the "after" function if needed The instance must h...
SmartIF< IAuditor > m_svc
auditor service
std::string m_objName
the guarded object name (if there is no INamedInterface)
bool m_customEvtType
Flag to remember which event type was used.
Gaudi::Guards::AuditorGuard::~AuditorGuard |
( |
| ) |
|
Gaudi::Guards::AuditorGuard::AuditorGuard |
( |
| ) |
|
|
privatedelete |
Gaudi::Guards::AuditorGuard::AuditorGuard |
( |
const AuditorGuard & |
right | ) |
|
|
privatedelete |
Gaudi::Guards::AuditorGuard::~AuditorGuard |
( |
| ) |
|
Gaudi::Guards::AuditorGuard::AuditorGuard |
( |
| ) |
|
|
privatedelete |
Gaudi::Guards::AuditorGuard::AuditorGuard |
( |
const AuditorGuard & |
right | ) |
|
|
privatedelete |
const StatusCode& Gaudi::Guards::AuditorGuard::code |
( |
| ) |
const |
|
inline |
Definition at line 260 of file Guards.h.
const StatusCode * m_sc
Pointer to a status code instance, to be passed to the "after" function if needed The instance must h...
const StatusCode& Gaudi::Guards::AuditorGuard::code |
( |
| ) |
const |
|
inline |
Definition at line 260 of file Guards.h.
const StatusCode * m_sc
Pointer to a status code instance, to be passed to the "after" function if needed The instance must h...
void Gaudi::Guards::AuditorGuard::i_after |
( |
| ) |
|
|
inlineprivate |
Definition at line 302 of file Guards.h.
IAuditor::StandardEventType m_evt
Event type (standard events)
IAuditor::CustomEventType m_cevt
Event type (custom events)
INamedInterface * m_obj
the guarded object
const StatusCode * m_sc
Pointer to a status code instance, to be passed to the "after" function if needed The instance must h...
SmartIF< IAuditor > m_svc
auditor service
std::string m_objName
the guarded object name (if there is no INamedInterface)
virtual void after(StandardEventType, INamedInterface *, const StatusCode &sc=StatusCode(StatusCode::SUCCESS, true))=0
Audit the end of a standard "event".
void reset(TYPE *ptr=nullptr)
Set the internal pointer to the passed one disposing of the old one.
bool m_customEvtType
Flag to remember which event type was used.
void Gaudi::Guards::AuditorGuard::i_after |
( |
| ) |
|
|
inlineprivate |
Definition at line 302 of file Guards.h.
IAuditor::StandardEventType m_evt
Event type (standard events)
IAuditor::CustomEventType m_cevt
Event type (custom events)
INamedInterface * m_obj
the guarded object
const StatusCode * m_sc
Pointer to a status code instance, to be passed to the "after" function if needed The instance must h...
SmartIF< IAuditor > m_svc
auditor service
std::string m_objName
the guarded object name (if there is no INamedInterface)
virtual void after(StandardEventType, INamedInterface *, const StatusCode &sc=StatusCode(StatusCode::SUCCESS, true))=0
Audit the end of a standard "event".
void reset(TYPE *ptr=nullptr)
Set the internal pointer to the passed one disposing of the old one.
bool m_customEvtType
Flag to remember which event type was used.
void Gaudi::Guards::AuditorGuard::i_before |
( |
| ) |
|
|
inlineprivate |
Definition at line 284 of file Guards.h.
virtual void before(StandardEventType, INamedInterface *)=0
Audit the start of a standard "event".
IAuditor::StandardEventType m_evt
Event type (standard events)
IAuditor::CustomEventType m_cevt
Event type (custom events)
INamedInterface * m_obj
the guarded object
SmartIF< IAuditor > m_svc
auditor service
std::string m_objName
the guarded object name (if there is no INamedInterface)
bool m_customEvtType
Flag to remember which event type was used.
void Gaudi::Guards::AuditorGuard::i_before |
( |
| ) |
|
|
inlineprivate |
Definition at line 284 of file Guards.h.
virtual void before(StandardEventType, INamedInterface *)=0
Audit the start of a standard "event".
IAuditor::StandardEventType m_evt
Event type (standard events)
IAuditor::CustomEventType m_cevt
Event type (custom events)
INamedInterface * m_obj
the guarded object
SmartIF< IAuditor > m_svc
auditor service
std::string m_objName
the guarded object name (if there is no INamedInterface)
bool m_customEvtType
Flag to remember which event type was used.
bool Gaudi::Guards::AuditorGuard::m_customEvtType = false |
|
private |
Flag to remember which event type was used.
Definition at line 282 of file Guards.h.
the guarded object
Definition at line 268 of file Guards.h.
std::string Gaudi::Guards::AuditorGuard::m_objName |
|
private |
const StatusCode * Gaudi::Guards::AuditorGuard::m_sc = nullptr |
|
private |
Pointer to a status code instance, to be passed to the "after" function if needed The instance must have a scope larger than the one of the guard.
No check is performed.
Definition at line 280 of file Guards.h.
auditor service
Definition at line 272 of file Guards.h.
The documentation for this class was generated from the following files:
- InstallArea/x86_64-slc6-gcc49-opt/include/GaudiKernel/Guards.h
- GaudiKernel/src/Lib/Guards.cpp