1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#ifndef CondCore_CondDB_CoralServiceFactory_h
#define CondCore_CondDB_CoralServiceFactory_h
#include "FWCore/PluginManager/interface/PluginFactory.h"
#include "CondCore/CondDB/interface/CoralServiceWrapper.h"
#include <string>
//
// Package: CondCore/CondDB
// Class : CoralServiceFactory
//
/**\class CoralServiceFactory CoralServiceFactory.h CondCore/CondDB/interface/CoralServiceFactory.h
Description: A special edm plugin factory that creates coral::Service
Usage: used internally by CoralServiceManager to create coral::Service as edm plugin
*/
//
// Original Author: Zhen Xie
// Created: Wed Nov 12 10:57:47 CET 2008
// $Id $
//
namespace coral {
class Service;
}
namespace cond {
typedef edmplugin::PluginFactory<cond::CoralServiceWrapperBase*()> CoralServicePluginFactory;
class CoralServiceFactory {
public:
~CoralServiceFactory();
static CoralServiceFactory* get();
coral::Service* create(const std::string& componentname) const;
private:
CoralServiceFactory();
};
} // namespace cond
#endif
|