CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EventSetupTestHelper.h
Go to the documentation of this file.
1 #ifndef FWCore_TestProcessor_EventSetupTestHelper_h
2 #define FWCore_TestProcessor_EventSetupTestHelper_h
3 // -*- C++ -*-
4 //
5 // Package: FWCore/TestProcessor
6 // Class : EventSetupTestHelper
7 //
16 //
17 // Original Author: root
18 // Created: Tue, 08 May 2018 18:33:09 GMT
19 //
20 
21 // system include files
22 #include <vector>
23 
24 // user include files
27 
29 
30 // forward declarations
31 namespace edm {
32  namespace test {
33 
35  public:
36  EventSetupTestHelper(std::vector<ESProduceEntry>);
37 
38  // ---------- const member functions ---------------------
39 
40  // ---------- static member functions --------------------
41 
42  // ---------- member functions ---------------------------
43  void newInterval(const eventsetup::EventSetupRecordKey& iRecordType, const ValidityInterval& iInterval) final;
44 
45  std::shared_ptr<eventsetup::DataProxy> getProxy(unsigned int index);
46 
47  void resetAllProxies();
48 
49  protected:
51 
52  void registerProxies(const eventsetup::EventSetupRecordKey& iRecordKey, KeyedProxies& aProxyList) final;
53 
54  private:
55  EventSetupTestHelper(const EventSetupTestHelper&) = delete; // stop default
56 
57  const EventSetupTestHelper& operator=(const EventSetupTestHelper&) = delete; // stop default
58 
59  // ---------- member data --------------------------------
60  std::vector<ESProduceEntry> proxies_;
61  };
62  } // namespace test
63 } // namespace edm
64 
65 #endif
const EventSetupTestHelper & operator=(const EventSetupTestHelper &)=delete
void setIntervalFor(const eventsetup::EventSetupRecordKey &, const IOVSyncValue &, ValidityInterval &) final
std::vector< std::pair< DataKey, edm::propagate_const< std::shared_ptr< DataProxy > > > > KeyedProxies
std::vector< ESProduceEntry > proxies_
void newInterval(const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval) final
called when a new interval of validity occurs for iRecordType
EventSetupTestHelper(std::vector< ESProduceEntry >)
std::shared_ptr< eventsetup::DataProxy > getProxy(unsigned int index)
void registerProxies(const eventsetup::EventSetupRecordKey &iRecordKey, KeyedProxies &aProxyList) final
HLT enums.