File indexing completed on 2024-04-06 12:01:24
0001 #ifndef CondCore_CondDB_CoralServiceFactory_h
0002 #define CondCore_CondDB_CoralServiceFactory_h
0003 #include "FWCore/PluginManager/interface/PluginFactory.h"
0004 #include "CondCore/CondDB/interface/CoralServiceWrapper.h"
0005 #include <string>
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021 namespace coral {
0022 class Service;
0023 }
0024 namespace cond {
0025 typedef edmplugin::PluginFactory<cond::CoralServiceWrapperBase*()> CoralServicePluginFactory;
0026
0027 class CoralServiceFactory {
0028 public:
0029 ~CoralServiceFactory();
0030 static CoralServiceFactory* get();
0031 coral::Service* create(const std::string& componentname) const;
0032
0033 private:
0034 CoralServiceFactory();
0035 };
0036 }
0037 #endif