File indexing completed on 2024-04-06 12:13:03
0001 #ifndef ServiceRegistry_test_DummyService_h
0002 #define ServiceRegistry_test_DummyService_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0025 #include "FWCore/ServiceRegistry/interface/ActivityRegistry.h"
0026
0027 namespace edm {
0028 class ConfigurationDescriptions;
0029 }
0030
0031
0032 namespace testserviceregistry {
0033 class DummyService {
0034 public:
0035 DummyService(const edm::ParameterSet&, edm::ActivityRegistry&);
0036 virtual ~DummyService();
0037
0038
0039 int value() const { return value_; }
0040
0041 bool beginJobCalled() const { return beginJobCalled_; }
0042
0043
0044
0045 static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0046
0047
0048
0049 private:
0050 void doOnBeginJob() { beginJobCalled_ = true; }
0051 DummyService(const DummyService&);
0052
0053 const DummyService& operator=(const DummyService&);
0054
0055
0056 int value_;
0057 bool beginJobCalled_;
0058 };
0059 }
0060
0061 #endif