CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWConfigurationManager.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWConfigurationManager_h
2 #define Fireworks_Core_FWConfigurationManager_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWConfigurationManager
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Sun Feb 24 14:38:41 EST 2008
19 //
20 
21 // system include files
22 #include <map>
23 #include <string>
24 
25 // user include files
26 
27 // forward declarations
28 class FWConfigurable;
29 class FWConfiguration;
30 
32 {
33 
34 public:
36  virtual ~FWConfigurationManager();
37 
38  // ---------- const member functions ---------------------
39  void setFrom(const FWConfiguration&) const;
40  void to(FWConfiguration&) const;
41 
42  void writeToFile(const std::string&) const;
43  void readFromFile(const std::string&) const;
44  // ---------- static member functions --------------------
45 
46  // ---------- member functions ---------------------------
48  void add(const std::string& iName, FWConfigurable*);
49 
50 private:
51  FWConfigurationManager(const FWConfigurationManager&); // stop default
52 
53  const FWConfigurationManager& operator=(const FWConfigurationManager&); // stop default
54  void readFromOldFile(const std::string&) const;
55 
56  // ---------- member data --------------------------------
57  std::map<std::string, FWConfigurable*> m_configurables;
58 };
59 
60 
61 #endif
void to(FWConfiguration &) const
void writeToFile(const std::string &) const
void readFromOldFile(const std::string &) const
void readFromFile(const std::string &) const
void setFrom(const FWConfiguration &) const
const FWConfigurationManager & operator=(const FWConfigurationManager &)
void add(const std::string &iName, FWConfigurable *)
does not take ownership
std::map< std::string, FWConfigurable * > m_configurables