Gaudi Framework, version v23r6

Home   Generated: Wed Jan 30 2013
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CommonAuditor.cpp
Go to the documentation of this file.
1 #include "CommonAuditor.h"
2 
3 CommonAuditor::CommonAuditor(const std::string& name, ISvcLocator *svcloc): Auditor(name, svcloc) {
4  declareProperty("EventTypes", m_types,
5  "List of event types to audit ([]=all, ['none']=none)");
6  declareProperty("CustomEventTypes", m_customTypes,
7  "OBSOLETE, use EventTypes instead")->declareUpdateHandler(&CommonAuditor::i_updateCustomTypes, this);
8 }
9 
11 
13  MsgStream log(msgSvc(), name());
14  log << MSG::WARNING << "Property CustomEventTypes is deprecated, use EventTypes instead" << endmsg;
16 }
17 
18 void CommonAuditor::before(StandardEventType evt, INamedInterface* caller)
19 {
20  if (caller) before(toStr(evt), caller->name());
21 }
22 void CommonAuditor::before(StandardEventType evt, const std::string& caller)
23 {
24  before(toStr(evt), caller);
25 }
26 void CommonAuditor::before(CustomEventTypeRef evt, INamedInterface* caller)
27 {
28  if (caller) before(evt, caller->name());
29 }
30 void CommonAuditor::before(CustomEventTypeRef evt, const std::string& caller)
31 {
32  if (i_auditEventType(evt)) i_before(evt, caller);
33 }
34 
35 void CommonAuditor::after(StandardEventType evt, INamedInterface* caller, const StatusCode& sc)
36 {
37  if (caller) after(toStr(evt), caller->name(), sc);
38 }
39 void CommonAuditor::after(StandardEventType evt, const std::string& caller, const StatusCode& sc)
40 {
41  after(toStr(evt), caller, sc);
42 }
43 void CommonAuditor::after(CustomEventTypeRef evt, INamedInterface* caller, const StatusCode& sc)
44 {
45  if (caller) after(evt, caller->name(), sc);
46 }
47 void CommonAuditor::after(CustomEventTypeRef evt, const std::string& caller, const StatusCode& sc)
48 {
49  if (i_auditEventType(evt)) i_after(evt, caller, sc);
50 }

Generated at Wed Jan 30 2013 17:13:38 for Gaudi Framework, version v23r6 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004