Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:13:03

0001 #ifndef ServiceRegistry_test_DummyServiceE0_h
0002 #define ServiceRegistry_test_DummyServiceE0_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     ServiceRegistry
0006 // Class  :     DummyServiceE0
0007 //
0008 /**\class DummyServiceE0 DummyServiceE0.h FWCore/ServiceRegistry/test/stubs/DummyServiceE0.h
0009 
0010  Description: Used for tests of ServicesManager
0011 
0012  Usage:
0013     <usage>
0014 
0015 */
0016 //
0017 // Original Author:  David Dagenhart
0018 //
0019 
0020 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0021 #include "FWCore/ServiceRegistry/interface/ActivityRegistry.h"
0022 
0023 namespace edm {
0024   class ConfigurationDescriptions;
0025 }
0026 
0027 namespace testserviceregistry {
0028 
0029   // The single extra letter in each of these typenames is intentionally
0030   // random.  These are used in a test of the ordering of service
0031   // calls, construction and destruction.  This previously
0032   // depended on the type and I want to be sure this is not
0033   // true anymore.
0034 
0035   class DummyServiceBase {
0036   public:
0037     static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0038   };
0039 
0040   class DummyServiceE0 : public DummyServiceBase {
0041   public:
0042     DummyServiceE0(const edm::ParameterSet&, edm::ActivityRegistry&);
0043     ~DummyServiceE0();
0044     void postBeginJob();
0045     void postEndJob();
0046   };
0047 
0048   class DummyServiceA1 : public DummyServiceBase {
0049   public:
0050     DummyServiceA1(const edm::ParameterSet&, edm::ActivityRegistry&);
0051     ~DummyServiceA1();
0052     void postBeginJob();
0053     void postEndJob();
0054   };
0055 
0056   class DummyServiceD2 : public DummyServiceBase {
0057   public:
0058     DummyServiceD2(const edm::ParameterSet&, edm::ActivityRegistry&);
0059     ~DummyServiceD2();
0060     void postBeginJob();
0061     void postEndJob();
0062   };
0063 
0064   class DummyServiceB3 : public DummyServiceBase {
0065   public:
0066     DummyServiceB3(const edm::ParameterSet&, edm::ActivityRegistry&);
0067     ~DummyServiceB3();
0068     void postBeginJob();
0069     void postEndJob();
0070   };
0071 
0072   class DummyServiceC4 : public DummyServiceBase {
0073   public:
0074     DummyServiceC4(const edm::ParameterSet&, edm::ActivityRegistry&);
0075     ~DummyServiceC4();
0076     void postBeginJob();
0077     void postEndJob();
0078   };
0079 }  // namespace testserviceregistry
0080 
0081 #endif