2 #ifndef GAUDIKERNEL_ALGFACTORY_H
3 #define GAUDIKERNEL_ALGFACTORY_H
6 #include "Reflex/PluginService.h"
18 return new T(name, svcloc );
25 #if ROOT_VERSION_CODE < ROOT_VERSION(5,21,6)
38 #define DECLARE_ALGORITHM_FACTORY(x) PLUGINSVC_FACTORY(x,IAlgorithm*(std::string, ISvcLocator*))
39 #define DECLARE_NAMED_ALGORITHM_FACTORY(x,n) PLUGINSVC_FACTORY_WITH_ID(x,std::string(#n), IAlgorithm*(std::string, ISvcLocator*))
41 #define DECLARE_NAMESPACE_ALGORITHM_FACTORY(n,x) using n::x; PLUGINSVC_FACTORY(x,IAlgorithm*(std::string, ISvcLocator*))
42 #define DECLARE_ALGORITHM(x)
43 #define DECLARE_NAMESPACE_ALGORITHM(n,x)
45 #endif // GAUDIKERNEL_ALGFACTORY_H