2 #ifndef KERNEL_SVCFACTORY_H
3 #define KERNEL_SVCFACTORY_H
5 #include "Reflex/PluginService.h"
17 return new T(name, svcloc );
24 #if ROOT_VERSION_CODE < ROOT_VERSION(5,21,6)
38 #define DECLARE_SERVICE_FACTORY(x) PLUGINSVC_FACTORY(x,IService*(std::string, ISvcLocator*))
39 #define DECLARE_NAMED_SERVICE_FACTORY(x,n) PLUGINSVC_FACTORY_WITH_ID(x,std::string(#n), IService*(std::string, ISvcLocator*))
40 #define DECLARE_NAMESPACE_SERVICE_FACTORY(n,x) using n::x; PLUGINSVC_FACTORY(x,IService*(std::string, ISvcLocator*))
41 #define DECLARE_SERVICE(x)
42 #define DECLARE_NAMESPACE_SERVICE(n,x)
45 #endif // GAUDIKERNEL_SVCFACTORY_H