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 // $Id: FWConfigurationManager.h,v 1.5 2010/04/23 08:57:08 eulisse Exp $
20 //
21 
22 // system include files
23 #include <map>
24 #include <string>
25 
26 // user include files
27 
28 // forward declarations
29 class FWConfigurable;
30 class FWConfiguration;
31 
33 {
34 
35 public:
37  virtual ~FWConfigurationManager();
38 
39  // ---------- const member functions ---------------------
40  void setFrom(const FWConfiguration&) const;
41  void to(FWConfiguration&) const;
42 
43  void writeToFile(const std::string&) const;
44  void readFromFile(const std::string&) const;
45  // ---------- static member functions --------------------
46 
47  // ---------- member functions ---------------------------
49  void add(const std::string& iName, FWConfigurable*);
50 
51 private:
52  FWConfigurationManager(const FWConfigurationManager&); // stop default
53 
54  const FWConfigurationManager& operator=(const FWConfigurationManager&); // stop default
55  void readFromOldFile(const std::string&) const;
56 
57  // ---------- member data --------------------------------
58  std::map<std::string, FWConfigurable*> m_configurables;
59 };
60 
61 
62 #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