CMS 3D CMS Logo

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 public:
35  virtual ~FWConfigurationManager();
36 
37  // ---------- const member functions ---------------------
38  void setFrom(const FWConfiguration&) const;
39  void to(FWConfiguration&) const;
40 
41  void writeToFile(const std::string&) const;
42  void readFromFile(const std::string&) const;
44  // ---------- static member functions --------------------
45 
46  // ---------- member functions ---------------------------
48  void add(const std::string& iName, FWConfigurable*);
49 
50  void setIgnore() { m_ignore = true; }
51  bool getIgnore() const { return m_ignore; }
52 
53  FWConfigurationManager(const FWConfigurationManager&) = delete; // stop default
54 
55  const FWConfigurationManager& operator=(const FWConfigurationManager&) = delete; // stop default
56 private:
57  void readFromOldFile(const std::string&) const;
58 
59  // ---------- member data --------------------------------
60  std::map<std::string, FWConfigurable*> m_configurables;
61  bool m_ignore;
62 };
63 
64 #endif
void to(FWConfiguration &) const
void readFromOldFile(const std::string &) const
const FWConfigurationManager & operator=(const FWConfigurationManager &)=delete
void add(const std::string &iName, FWConfigurable *)
does not take ownership
void readFromFile(const std::string &) const
void writeToFile(const std::string &) const
std::string guessAndReadFromFile(FWJobMetadataManager *) const
std::map< std::string, FWConfigurable * > m_configurables
void setFrom(const FWConfiguration &) const