1 #ifndef GAUDIKERNEL_AUDITOR_H
2 #define GAUDIKERNEL_AUDITOR_H
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 ,
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
StatusCode setProperty(IProperty *component, const std::string &name, const TYPE &value, const std::string &doc)
simple function to set the property of the given object from the value
bool m_isEnabled
Auditor is enabled flag.
StatusCode service(const std::string &name, T *&svc, bool createIf=false) const
Access a service by name, creating it if it doesn't already exist.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
StandardEventType
Defines the standard (= used by the framework) auditable event types.
Base class used to implement the interfaces.
static S::ReturnType create(typename S::Arg1Type a1, typename S::Arg2Type a2)
const CustomEventType & CustomEventTypeRef
Used in function calls for optimization purposes.
GAUDI_API Property * getProperty(const IProperty *p, const std::string &name)
simple function which gets the property with given name from the component
Property manager helper class.
std::string m_name
Auditor's name for identification.
SmartIF< IMessageSvc > m_MS
Message service.
Property * declareProperty(const std::string &name, T &property, const std::string &doc="none") const
Declare the named property.
bool m_isInitialized
Auditor has been initialized flag.
SmartIF< ISvcLocator > m_pSvcLocator
Pointer to service locator service.
bool isValid() const
Allow for check if smart pointer is valid.
General service interface definition.
This class is used for returning status codes from appropriate routines.
Gaudi::PluginService::Factory2< IAuditor *, const std::string &, ISvcLocator * > Factory
The IMessage is the interface implemented by the message service.
TYPE * get() const
Get interface pointer.
Base class from which all concrete algorithm classes should be derived.
IInterface compliant class extending IInterface with the name() method.
Property base class allowing Property* collections to be "homogeneous".
Class wrapping the signature for a factory with 2 arguments.
PropertyMgr * m_PropertyMgr
For management of properties.
int outputLevel() const
Retrieve the output level of current auditor.
The IAuditor is the interface implmented by the AlgAuditor base class.
int m_outputLevel
Auditor output level.
Base class from which all concrete auditor classes should be derived.
bool m_isFinalized
Auditor has been finalized flag.