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 (const std::string &name, IAuditor *svc, IAuditor::StandardEventType evt) |
| constructor More...
|
|
| AuditorGuard (const std::string &name, IAuditor *svc, IAuditor::CustomEventTypeRef evt) |
| constructor More...
|
|
| AuditorGuard (const std::string &name, IAuditor *svc, IAuditor::StandardEventType evt, const StatusCode &sc) |
| constructor More...
|
|
| AuditorGuard (const 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 218 of file Guards.h.
constructor
Definition at line 65 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
IAuditor * m_svc
auditor service
std::string m_objName
the guarded object name (if there is no INamedInterface)
const StatusCode * m_sc
Pointer to a status code instance, to be passed to the "after" function if needed The instance must h...
bool m_customEvtType
Flag to remember which event type was used.
constructor
Definition at line 78 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
IAuditor * m_svc
auditor service
std::string m_objName
the guarded object name (if there is no INamedInterface)
const StatusCode * m_sc
Pointer to a status code instance, to be passed to the "after" function if needed The instance must h...
bool m_customEvtType
Flag to remember which event type was used.
constructor
Definition at line 91 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
IAuditor * m_svc
auditor service
std::string m_objName
the guarded object name (if there is no INamedInterface)
const StatusCode * m_sc
Pointer to a status code instance, to be passed to the "after" function if needed The instance must h...
bool m_customEvtType
Flag to remember which event type was used.
constructor
Definition at line 105 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
IAuditor * m_svc
auditor service
std::string m_objName
the guarded object name (if there is no INamedInterface)
const StatusCode * m_sc
Pointer to a status code instance, to be passed to the "after" function if needed The instance must h...
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)
INamedInterface * m_obj
the guarded object
IAuditor * m_svc
auditor service
std::string m_objName
the guarded object name (if there is no INamedInterface)
const StatusCode * m_sc
Pointer to a status code instance, to be passed to the "after" function if needed The instance must h...
bool m_customEvtType
Flag to remember which event type was used.
constructor
Definition at line 132 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
IAuditor * m_svc
auditor service
std::string m_objName
the guarded object name (if there is no INamedInterface)
const StatusCode * m_sc
Pointer to a status code instance, to be passed to the "after" function if needed The instance must h...
bool m_customEvtType
Flag to remember which event type was used.
constructor
Definition at line 145 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
IAuditor * m_svc
auditor service
std::string m_objName
the guarded object name (if there is no INamedInterface)
const StatusCode * m_sc
Pointer to a status code instance, to be passed to the "after" function if needed The instance must h...
bool m_customEvtType
Flag to remember which event type was used.
constructor
Definition at line 159 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
IAuditor * m_svc
auditor service
std::string m_objName
the guarded object name (if there is no INamedInterface)
const StatusCode * m_sc
Pointer to a status code instance, to be passed to the "after" function if needed The instance must h...
bool m_customEvtType
Flag to remember which event type was used.
Gaudi::Guards::AuditorGuard::~AuditorGuard |
( |
| ) |
|
Gaudi::Guards::AuditorGuard::AuditorGuard |
( |
| ) |
|
|
private |
the default constructor is disabled
Gaudi::Guards::AuditorGuard::AuditorGuard |
( |
const AuditorGuard & |
right | ) |
|
|
private |
const StatusCode& Gaudi::Guards::AuditorGuard::code |
( |
| ) |
const |
|
inline |
Definition at line 264 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 309 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
IAuditor * m_svc
auditor service
std::string m_objName
the guarded object name (if there is no INamedInterface)
virtual unsigned long release()=0
Release Interface instance.
virtual void after(StandardEventType, INamedInterface *, const StatusCode &sc=StatusCode(StatusCode::SUCCESS, true))=0
Audit the end of a standard "event".
const StatusCode * m_sc
Pointer to a status code instance, to be passed to the "after" function if needed The instance must h...
bool m_customEvtType
Flag to remember which event type was used.
void Gaudi::Guards::AuditorGuard::i_before |
( |
| ) |
|
|
inlineprivate |
Definition at line 290 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
IAuditor * m_svc
auditor service
std::string m_objName
the guarded object name (if there is no INamedInterface)
virtual unsigned long addRef()=0
Increment the reference count of Interface instance.
bool m_customEvtType
Flag to remember which event type was used.
bool Gaudi::Guards::AuditorGuard::m_customEvtType |
|
private |
Flag to remember which event type was used.
Definition at line 288 of file Guards.h.
the guarded object
Definition at line 274 of file Guards.h.
std::string Gaudi::Guards::AuditorGuard::m_objName |
|
private |
const StatusCode* Gaudi::Guards::AuditorGuard::m_sc |
|
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 286 of file Guards.h.
IAuditor* Gaudi::Guards::AuditorGuard::m_svc |
|
private |
auditor service
Definition at line 278 of file Guards.h.
The documentation for this class was generated from the following files: