#include <Fireworks/Core/interface/FWConfigurationManager.h>
Public Member Functions | |
void | add (const std::string &iName, FWConfigurable *) |
does not take ownership More... | |
FWConfigurationManager () | |
bool | getIgnore () const |
std::string | guessAndReadFromFile (FWJobMetadataManager *) const |
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 | |
FWConfigurationManager (const FWConfigurationManager &) | |
const FWConfigurationManager & | operator= (const FWConfigurationManager &) |
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 52 of file FWConfigurationManager.cc.
|
private |
void FWConfigurationManager::add | ( | const std::string & | iName, |
FWConfigurable * | iConf | ||
) |
does not take ownership
Definition at line 72 of file FWConfigurationManager.cc.
References assert(), and m_configurables.
Referenced by counter.Counter::register(), and CmsShowMainBase::setupViewManagers().
|
inline |
Definition at line 53 of file FWConfigurationManager.h.
References m_ignore.
Referenced by CmsShowMain::setupDataHandling().
std::string FWConfigurationManager::guessAndReadFromFile | ( | FWJobMetadataManager * | dataMng | ) | const |
Definition at line 195 of file FWConfigurationManager.cc.
References EnergyCorrector::c, looper::cfg, dbtoconf::conf, f, mergeVDriftHistosByStation::file, fwLog, g, FWConfiguration::keyValues(), fwlog::kInfo, fwlog::kWarning, operator<(), geometryXMLtoCSV::parser, setFrom(), python.multivaluedict::sort(), AlCaHLTBitMon_QueryRunRegistry::string, FWJobMetadataManager::usableData(), and x.
|
private |
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 175 of file FWConfigurationManager.cc.
References f, g, SimpleSAXParser::parse(), geometryXMLtoCSV::parser, readFromOldFile(), and setFrom().
|
private |
Definition at line 134 of file FWConfigurationManager.cc.
References edmPickEvents::command, HDQMDatabaseProducer::config, relativeConstraints::error, python.rootplot.argparse::message, setFrom(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by readFromFile().
void FWConfigurationManager::setFrom | ( | const FWConfiguration & | iConfig | ) | const |
Definition at line 82 of file FWConfigurationManager.cc.
References assert(), FWConfiguration::keyValues(), and m_configurables.
Referenced by guessAndReadFromFile(), FWPartialConfigLoadGUI::Load(), readFromFile(), and readFromOldFile().
|
inline |
Definition at line 52 of file FWConfigurationManager.h.
References m_ignore.
Referenced by CmsShowMain::CmsShowMain().
void FWConfigurationManager::to | ( | FWConfiguration & | oConfig | ) | const |
Definition at line 96 of file FWConfigurationManager.cc.
References FWConfiguration::addKeyValue(), HDQMDatabaseProducer::config, and m_configurables.
Referenced by FWPartialConfigGUI::FWPartialConfigGUI(), FWPartialConfigSaveGUI::Write(), and writeToFile().
void FWConfigurationManager::writeToFile | ( | const std::string & | iName | ) | const |
Definition at line 110 of file FWConfigurationManager.cc.
References alignCSCRings::e, mergeVDriftHistosByStation::file, fwLog, fwlog::kError, fwlog::kInfo, python.rootplot.argparse::message, FWConfiguration::streamTo(), AlCaHLTBitMon_QueryRunRegistry::string, and to().
|
private |
Definition at line 62 of file FWConfigurationManager.h.
|
private |
Definition at line 63 of file FWConfigurationManager.h.
Referenced by getIgnore(), and setIgnore().