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;
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;
46  // ---------- static member functions --------------------
47 
48  // ---------- member functions ---------------------------
50  void add(const std::string& iName, FWConfigurable*);
51 
52  void setIgnore() { m_ignore = true; }
53  bool getIgnore() const { return m_ignore; }
54 
55 private:
56  FWConfigurationManager(const FWConfigurationManager&); // stop default
57 
58  const FWConfigurationManager& operator=(const FWConfigurationManager&); // stop default
59  void readFromOldFile(const std::string&) const;
60 
61  // ---------- member data --------------------------------
62  std::map<std::string, FWConfigurable*> m_configurables;
63  bool m_ignore;
64 };
65 
66 
67 #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 &)
std::string guessAndReadFromFile(FWJobMetadataManager *) const
void add(const std::string &iName, FWConfigurable *)
does not take ownership
std::map< std::string, FWConfigurable * > m_configurables