The Gaudi Framework
v26r1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
CommonAuditor.h
Go to the documentation of this file.
1
#include "GaudiKernel/Auditor.h"
2
5
class
CommonAuditor
:
public
Auditor
{
6
public
:
10
CommonAuditor
(
const
std::string&
name
,
ISvcLocator
*svcloc);
12
virtual
~CommonAuditor
();
13
17
18
virtual
void
before
(StandardEventType
evt
,
const
std::string& caller);
19
virtual
void
before
(StandardEventType evt,
INamedInterface
* caller);
20
virtual
void
before
(CustomEventTypeRef evt,
const
std::string& caller);
21
virtual
void
before
(CustomEventTypeRef evt,
INamedInterface
* caller);
23
27
28
virtual
void
after
(StandardEventType evt,
const
std::string& caller,
const
StatusCode
&
sc
);
29
virtual
void
after
(StandardEventType evt,
INamedInterface
* caller,
const
StatusCode
& sc);
30
virtual
void
after
(CustomEventTypeRef evt,
const
std::string& caller,
const
StatusCode
& sc);
31
virtual
void
after
(CustomEventTypeRef evt,
INamedInterface
* caller,
const
StatusCode
& sc);
33
34
protected
:
35
37
virtual
void
i_before
(CustomEventTypeRef evt,
const
std::string& caller) = 0;
39
virtual
void
i_after
(CustomEventTypeRef evt,
const
std::string& caller,
const
StatusCode
& sc) = 0;
40
42
inline
bool
i_auditEventType
(
const
std::string& evt) {
43
// Note: there is no way to extract from a Property type the type returned by
44
// value().
45
const
std::vector<std::string> &v =
m_types
.
value
();
46
// we need to return true is the list is empty or when the list does't
47
// start by "none" and the list contain the event we got.
48
return
(v.size() == 0) || (
49
(v[0] !=
"none"
) &&
50
(find(v.begin(), v.end(),
evt
) != v.end())
51
);
52
}
53
54
StringArrayProperty
m_types
;
55
57
void
i_updateCustomTypes
(
Property
&);
58
StringArrayProperty
m_customTypes
;
59
};
GaudiAud
src
CommonAuditor.h
Generated on Mon Feb 16 2015 11:56:52 for The Gaudi Framework by
1.8.2