#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 |
| |
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() ,
...
...
return sc ;
}
{
auditSvc() ,
...
...
auditor.setCode ( sc ) ;
...
return 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 213 of file Guards.h.
◆ AuditorGuard() [1/10]
◆ AuditorGuard() [2/10]
◆ AuditorGuard() [3/10]
◆ AuditorGuard() [4/10]
◆ AuditorGuard() [5/10]
◆ AuditorGuard() [6/10]
◆ AuditorGuard() [7/10]
◆ AuditorGuard() [8/10]
◆ ~AuditorGuard()
| Gaudi::Guards::AuditorGuard::~AuditorGuard |
( |
| ) |
|
◆ AuditorGuard() [9/10]
| Gaudi::Guards::AuditorGuard::AuditorGuard |
( |
| ) |
|
|
privatedelete |
◆ AuditorGuard() [10/10]
| Gaudi::Guards::AuditorGuard::AuditorGuard |
( |
const AuditorGuard & |
right | ) |
|
|
privatedelete |
◆ code()
| const StatusCode& Gaudi::Guards::AuditorGuard::code |
( |
| ) |
const |
|
inline |
◆ i_after()
| void Gaudi::Guards::AuditorGuard::i_after |
( |
| ) |
|
|
inlineprivate |
◆ i_before()
| void Gaudi::Guards::AuditorGuard::i_before |
( |
| ) |
|
|
inlineprivate |
◆ operator=()
◆ m_cevt
Event type (custom events)
Definition at line 257 of file Guards.h.
◆ m_customEvtType
| bool Gaudi::Guards::AuditorGuard::m_customEvtType = false |
|
private |
Flag to remember which event type was used.
Definition at line 263 of file Guards.h.
◆ m_evt
Event type (standard events)
Definition at line 255 of file Guards.h.
◆ m_obj
the guarded object
Definition at line 249 of file Guards.h.
◆ m_objName
◆ m_sc
| 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 261 of file Guards.h.
◆ m_svc
auditor service
Definition at line 253 of file Guards.h.
The documentation for this class was generated from the following files: