#include <Fireworks/Core/interface/FWConfigurationManager.h>
Public Member Functions | |
void | add (const std::string &iName, FWConfigurable *) |
does not take ownership More... | |
FWConfigurationManager () | |
FWConfigurationManager (const FWConfigurationManager &)=delete | |
bool | getIgnore () const |
std::string | guessAndReadFromFile (FWJobMetadataManager *) const |
const FWConfigurationManager & | operator= (const FWConfigurationManager &)=delete |
void | readFromFile (const std::string &) const |
void | setFrom (const FWConfiguration &) const |
void | setIgnore () |
void | to (FWConfiguration &) const |
void | writeToFile (const std::string &) const |
virtual | ~FWConfigurationManager () |
Private Member Functions | |
void | readFromOldFile (const std::string &) const |
Private Attributes | |
std::map< std::string, FWConfigurable * > | m_configurables |
bool | m_ignore |
Description: <one line="" class="" summary>="">
Usage: <usage>
Definition at line 32 of file FWConfigurationManager.h.
FWConfigurationManager::FWConfigurationManager | ( | ) |
Definition at line 43 of file FWConfigurationManager.cc.
|
virtual |
Definition at line 50 of file FWConfigurationManager.cc.
|
delete |
void FWConfigurationManager::add | ( | const std::string & | iName, |
FWConfigurable * | iConf | ||
) |
does not take ownership
Definition at line 67 of file FWConfigurationManager.cc.
References cms::cuda::assert(), and m_configurables.
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), SequenceTypes.Task::replace(), and CmsShowMainBase::setupViewManagers().
|
inline |
Definition at line 51 of file FWConfigurationManager.h.
References m_ignore.
Referenced by CmsShowMain::setupDataHandling().
std::string FWConfigurationManager::guessAndReadFromFile | ( | FWJobMetadataManager * | dataMng | ) | const |
Definition at line 171 of file FWConfigurationManager.cc.
References c, looper::cfg, validate-o2o-wbm::f, mergeVDriftHistosByStation::file, fwLog, g, FWConfiguration::keyValues(), fwlog::kInfo, fwlog::kWarning, operator<(), writedatasetfile::parser, setFrom(), AlCaHLTBitMon_QueryRunRegistry::string, FWJobMetadataManager::usableData(), and x.
|
delete |
void FWConfigurationManager::readFromFile | ( | const std::string & | iName | ) | const |
Reads the configuration specified in iName and creates the internal representation in terms of FWConfigutation objects.
Notice that if the file does not start with '<' the old CINT macro based system is used.
Definition at line 153 of file FWConfigurationManager.cc.
References validate-o2o-wbm::f, g, SimpleSAXParser::parse(), writedatasetfile::parser, readFromOldFile(), and setFrom().
|
private |
Definition at line 116 of file FWConfigurationManager.cc.
References mps_check::command, submitPVResolutionJobs::config, relativeConstraints::error, setFrom(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by readFromFile().
void FWConfigurationManager::setFrom | ( | const FWConfiguration & | iConfig | ) | const |
Definition at line 75 of file FWConfigurationManager.cc.
References cms::cuda::assert(), FWConfiguration::keyValues(), and m_configurables.
Referenced by guessAndReadFromFile(), FWPartialConfigLoadGUI::Load(), readFromFile(), and readFromOldFile().
|
inline |
Definition at line 50 of file FWConfigurationManager.h.
References m_ignore.
Referenced by CmsShowMain::CmsShowMain().
void FWConfigurationManager::to | ( | FWConfiguration & | oConfig | ) | const |
Definition at line 86 of file FWConfigurationManager.cc.
References FWConfiguration::addKeyValue(), submitPVResolutionJobs::config, and m_configurables.
Referenced by FWPartialConfigGUI::FWPartialConfigGUI(), FWPartialConfigSaveGUI::WriteConfig(), and writeToFile().
void FWConfigurationManager::writeToFile | ( | const std::string & | iName | ) | const |
Definition at line 97 of file FWConfigurationManager.cc.
References alignCSCRings::e, mergeVDriftHistosByStation::file, fwLog, fwlog::kError, fwlog::kInfo, submitPVResolutionJobs::stdout, FWConfiguration::streamTo(), AlCaHLTBitMon_QueryRunRegistry::string, and to().
|
private |
Definition at line 60 of file FWConfigurationManager.h.
|
private |
Definition at line 61 of file FWConfigurationManager.h.
Referenced by getIgnore(), and setIgnore().