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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
#ifndef FWCore_ServiceRegistry_ServiceMakerBase_h
#define FWCore_ServiceRegistry_ServiceMakerBase_h
// -*- C++ -*-
//
// Package: ServiceRegistry
// Class : ServiceMakerBase
//
/**\class ServiceMakerBase ServiceMakerBase.h FWCore/ServiceRegistry/interface/ServiceMakerBase.h
Description: Base class for Service Makers
Usage:
Internal detail of implementation of the ServiceRegistry system
*/
//
// Original Author: Chris Jones
// Created: Mon Sep 5 13:33:00 EDT 2005
//
#include <typeinfo>
// forward declarations
namespace edm {
class ParameterSet;
class ActivityRegistry;
namespace service {
inline bool isProcessWideService(void const* /*service*/) { return false; }
} // namespace service
namespace serviceregistry {
class SaveConfiguration;
class ServiceWrapperBase;
class ServicesManager;
class ServiceMakerBase {
public:
ServiceMakerBase();
ServiceMakerBase(ServiceMakerBase const&) = delete; // stop default
ServiceMakerBase const& operator=(ServiceMakerBase const&) = delete; // stop default
virtual ~ServiceMakerBase();
// ---------- const member functions ---------------------
virtual std::type_info const& serviceType() const = 0;
virtual bool make(ParameterSet const&, ActivityRegistry&, ServicesManager&) const = 0;
virtual bool processWideService() const = 0;
virtual bool saveConfiguration() const = 0;
// ---------- static member functions --------------------
// ---------- member functions ---------------------------
protected:
bool testSaveConfiguration(SaveConfiguration const*) const { return true; }
bool testSaveConfiguration(void const*) const { return false; }
private:
// ---------- member data --------------------------------
};
} // namespace serviceregistry
} // namespace edm
#endif
|