Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:29:09

0001 #ifndef ServiceRegistry_test_DummyService_h
0002 #define ServiceRegistry_test_DummyService_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     ServiceRegistry
0006 // Class  :     DummyService
0007 //
0008 /**\class DummyService DummyService.h FWCore/ServiceRegistry/test/stubs/DummyService.h
0009 
0010  Description: <one line class summary>
0011 
0012  Usage:
0013     <usage>
0014 
0015 */
0016 //
0017 // Original Author:  Chris Jones
0018 //         Created:  Mon Sep  5 19:51:59 EDT 2005
0019 //
0020 
0021 // system include files
0022 
0023 // user include files
0024 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0025 #include "FWCore/ServiceRegistry/interface/ActivityRegistry.h"
0026 
0027 namespace edm {
0028   class ConfigurationDescriptions;
0029 }
0030 
0031 // forward declarations
0032 namespace testserviceregistry {
0033   class DummyService {
0034   public:
0035     DummyService(const edm::ParameterSet&, edm::ActivityRegistry&);
0036     virtual ~DummyService();
0037 
0038     // ---------- const member functions ---------------------
0039     int value() const { return value_; }
0040 
0041     bool beginJobCalled() const { return beginJobCalled_; }
0042 
0043     // ---------- static member functions --------------------
0044 
0045     static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0046 
0047     // ---------- member functions ---------------------------
0048 
0049   private:
0050     void doOnBeginJob() { beginJobCalled_ = true; }
0051     DummyService(const DummyService&);  // stop default
0052 
0053     const DummyService& operator=(const DummyService&);  // stop default
0054 
0055     // ---------- member data --------------------------------
0056     int value_;
0057     bool beginJobCalled_;
0058   };
0059 }  // namespace testserviceregistry
0060 
0061 #endif