1 #ifndef GAUDIKERNEL_AUDITOR_H
2 #define GAUDIKERNEL_AUDITOR_H
36 typedef Gaudi::PluginService::Factory2<
IAuditor*,
59 virtual void before(StandardEventType,
const std::string&);
62 virtual void before(CustomEventTypeRef,
const std::string&);
65 virtual void after(StandardEventType,
const std::string&,
const StatusCode&);
68 virtual void after(CustomEventTypeRef,
const std::string&,
const StatusCode&);
93 virtual const std::string& name()
const ;
95 virtual bool isEnabled()
const ;
106 void setOutputLevel(
int level );
118 SmartIF<T> ptr(serviceLocator()->service(name, createIf));
148 const std::vector<Property*>& getProperties( )
const;
191 template <
class TYPE>
193 (
const std::string& name ,
233 Property* declareProperty(
const std::string& name, T& property,
234 const std::string& doc =
"none")
const {
235 return m_PropertyMgr->declareProperty(name, property, doc);
257 #ifndef GAUDI_NEW_PLUGIN_SERVICE
261 template <
typename S>
262 static typename S::ReturnType
create(
typename S::Arg1Type a1,
263 typename S::Arg2Type a2) {
264 return new T(a1, a2);
269 #define DECLARE_AUDITOR_FACTORY(x) \
270 DECLARE_FACTORY_WITH_CREATOR(x, AudFactory< x >, Auditor::Factory)
271 #define DECLARE_NAMESPACE_AUDITOR_FACTORY(n, x) \
272 DECLARE_AUDITOR_FACTORY(n::x)
277 #define DECLARE_AUDITOR_FACTORY(x) DECLARE_COMPONENT(x)
278 #define DECLARE_NAMESPACE_AUDITOR_FACTORY(n, x) DECLARE_COMPONENT(n::x)
282 #endif //GAUDIKERNEL_AUDITOR_H