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 private:
54  FWConfigurationManager(const FWConfigurationManager&) = delete; // stop default
55 
56  const FWConfigurationManager& operator=(const FWConfigurationManager&) = delete; // stop default
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
FWConfigurationManager::setIgnore
void setIgnore()
Definition: FWConfigurationManager.h:50
FWConfigurationManager::readFromFile
void readFromFile(const std::string &) const
Definition: FWConfigurationManager.cc:153
FWConfigurationManager::guessAndReadFromFile
std::string guessAndReadFromFile(FWJobMetadataManager *) const
Definition: FWConfigurationManager.cc:171
FWConfigurationManager::FWConfigurationManager
FWConfigurationManager()
Definition: FWConfigurationManager.cc:43
FWConfigurationManager
Definition: FWConfigurationManager.h:32
FWJobMetadataManager
Definition: FWJobMetadataManager.h:18
FWConfigurationManager::m_ignore
bool m_ignore
Definition: FWConfigurationManager.h:61
FWConfigurationManager::to
void to(FWConfiguration &) const
Definition: FWConfigurationManager.cc:86
FWConfigurationManager::~FWConfigurationManager
virtual ~FWConfigurationManager()
Definition: FWConfigurationManager.cc:50
FWConfigurationManager::add
void add(const std::string &iName, FWConfigurable *)
does not take ownership
Definition: FWConfigurationManager.cc:67
FWConfigurationManager::m_configurables
std::map< std::string, FWConfigurable * > m_configurables
Definition: FWConfigurationManager.h:60
FWConfigurationManager::writeToFile
void writeToFile(const std::string &) const
Definition: FWConfigurationManager.cc:97
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FWConfigurationManager::getIgnore
bool getIgnore() const
Definition: FWConfigurationManager.h:51
FWConfigurationManager::setFrom
void setFrom(const FWConfiguration &) const
Definition: FWConfigurationManager.cc:75
FWConfigurationManager::readFromOldFile
void readFromOldFile(const std::string &) const
Definition: FWConfigurationManager.cc:116
FWConfigurable
Definition: FWConfigurable.h:28
FWConfiguration
Definition: FWConfiguration.h:31
FWConfigurationManager::operator=
const FWConfigurationManager & operator=(const FWConfigurationManager &)=delete