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 
37 
38  typedef std::vector<const PluginFactoryBase*>::const_iterator const_iterator;
39  // ---------- const member functions ---------------------
40  const_iterator begin() const;
41  const_iterator end() const;
42 
43  // ---------- static member functions --------------------
44  static PluginFactoryManager* get();
45 
46  // ---------- member functions ---------------------------
47  void addFactory(const PluginFactoryBase*);
49 
50  private:
52  PluginFactoryManager(const PluginFactoryManager&) = delete; // stop default
53 
54  const PluginFactoryManager& operator=(const PluginFactoryManager&) = delete; // stop default
55 
56  // ---------- member data --------------------------------
57  std::vector<const PluginFactoryBase*> factories_;
58  };
59 
60 } // namespace edmplugin
61 #endif
const PluginFactoryManager & operator=(const PluginFactoryManager &)=delete
edm::signalslot::Signal< void(const PluginFactoryBase *)> newFactory_
void addFactory(const PluginFactoryBase *)
std::vector< const PluginFactoryBase * > factories_
std::vector< const PluginFactoryBase * >::const_iterator const_iterator