Gaudi Framework, version v24r2

Home   Generated: Wed Dec 4 2013
 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().
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 
55 
59 };

Generated at Wed Dec 4 2013 14:33:07 for Gaudi Framework, version v24r2 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004