CMS 3D CMS Logo

PluginFactoryManager.h
Go to the documentation of this file.
1 #ifndef FWCore_PluginManager_PluginFactoryManager_h
2 #define FWCore_PluginManager_PluginFactoryManager_h
3 // -*- C++ -*-
4 //
5 // Package: PluginManager
6 // Class : PluginFactoryManager
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Wed Apr 4 12:49:41 EDT 2007
19 //
20 
21 // system include files
22 #include <string>
23 #include <vector>
25 
26 // user include files
27 
28 // forward declarations
29 namespace edmplugin {
30  class PluginFactoryBase;
31  class DummyFriend;
33  public:
34  friend class DummyFriend;
35 
36  PluginFactoryManager(const PluginFactoryManager&) = delete; // stop default
37  const PluginFactoryManager& operator=(const PluginFactoryManager&) = delete; // stop default
39 
40  typedef std::vector<const PluginFactoryBase*>::const_iterator const_iterator;
41  // ---------- const member functions ---------------------
42  const_iterator begin() const;
43  const_iterator end() const;
44 
45  // ---------- static member functions --------------------
46  static PluginFactoryManager* get();
47 
48  // ---------- member functions ---------------------------
49  void addFactory(const PluginFactoryBase*);
51 
52  private:
54 
55  // ---------- member data --------------------------------
56  std::vector<const PluginFactoryBase*> factories_;
57  };
58 
59 } // namespace edmplugin
60 #endif
edmplugin
Definition: AlignmentAlgorithmPluginFactory.cc:9
edmplugin::PluginFactoryManager::PluginFactoryManager
PluginFactoryManager()
Definition: PluginFactoryManager.cc:31
edmplugin::PluginFactoryManager::begin
const_iterator begin() const
Definition: PluginFactoryManager.cc:63
edmplugin::PluginFactoryManager::newFactory_
edm::signalslot::Signal< void(const PluginFactoryBase *)> newFactory_
Definition: PluginFactoryManager.h:50
edmplugin::PluginFactoryManager::addFactory
void addFactory(const PluginFactoryBase *)
Definition: PluginFactoryManager.cc:55
edmplugin::PluginFactoryManager
Definition: PluginFactoryManager.h:32
edmplugin::PluginFactoryManager::~PluginFactoryManager
~PluginFactoryManager()
Definition: PluginFactoryManager.cc:38
edmplugin::PluginFactoryManager::DummyFriend
friend class DummyFriend
Definition: PluginFactoryManager.h:34
edmplugin::PluginFactoryManager::operator=
const PluginFactoryManager & operator=(const PluginFactoryManager &)=delete
Signal.h
edmplugin::PluginFactoryBase
Definition: PluginFactoryBase.h:37
edmplugin::PluginFactoryManager::factories_
std::vector< const PluginFactoryBase * > factories_
Definition: PluginFactoryManager.h:56
PluginFactoryBase
funct::void
TEMPL(T2) struct Divides void
Definition: Factorize.h:24
edmplugin::PluginFactoryManager::const_iterator
std::vector< const PluginFactoryBase * >::const_iterator const_iterator
Definition: PluginFactoryManager.h:40
edmplugin::PluginFactoryManager::end
const_iterator end() const
Definition: PluginFactoryManager.cc:65
edm::signalslot::Signal
Definition: DelayedReader.h:26
edmplugin::PluginFactoryManager::get
static PluginFactoryManager * get()
Definition: PluginFactoryManager.cc:70