#include <Utilities.h>
Public Member Functions | |
void | addAuthenticationOptions () |
void | addConfigFileOption () |
void | addConnectOption () |
void | addConnectOption (const std::string &connectionOptionName, const std::string &shortName, const std::string &helpEntry) |
void | addDictionaryOption () |
void | addLogDBOption () |
template<typename T > | |
void | addOption (const std::string &fullName, const std::string &shortName, const std::string &helpEntry) |
template<> | |
void | addOption (const std::string &fullName, const std::string &shortName, const std::string &helpEntry) |
void | addSQLOutputOption () |
virtual int | execute () |
std::string | getAuthenticationPathValue () |
std::string | getConfigFileValue () |
std::string | getConnectValue () |
std::string | getDictionaryValue () |
std::string | getLogDBValue () |
template<typename T > | |
T | getOptionValue (const std::string &fullName) |
std::string | getPasswordValue () |
std::string | getUserValue () |
bool | hasDebug () |
bool | hasOptionValue (const std::string &fullName) |
void | initializePluginManager () |
cond::DbSession | openDbSession (const std::string &connectionParameterName, bool readOnly=false) |
cond::DbSession | openDbSession (const std::string &connectionParameterName, const std::string &role, bool readOnly=false) |
void | parseCommand (int argc, char **argv) |
int | run (int argc, char **argv) |
Utilities (const std::string &commandName, std::string positionalParameter=std::string("")) | |
virtual | ~Utilities () |
Protected Member Functions | |
cond::DbSession | newDbSession (const std::string &connectionString, bool readOnly=false) |
cond::DbSession | newDbSession (const std::string &connectionString, const std::string &role, bool readOnly=false) |
Private Member Functions | |
std::string | getValueIfExists (const std::string &fullName) |
void | initializeForDbConnection () |
void | sendError (const std::string &message) |
void | sendException (const std::string &message) |
Private Attributes | |
cond::DbConnection * | m_dbConnection |
std::set< std::string > | m_dbSessions |
std::string | m_name |
boost::program_options::options_description | m_options |
bool | m_pluginMgrInitialized |
boost::program_options::positional_options_description | m_positionalOptions |
boost::program_options::variables_map | m_values |
Definition at line 19 of file Utilities.h.
cond::Utilities::Utilities | ( | const std::string & | commandName, |
std::string | positionalParameter = std::string("") |
||
) |
Definition at line 25 of file Utilities.cc.
References m_options, and m_positionalOptions.
|
virtual |
Definition at line 46 of file Utilities.cc.
void cond::Utilities::addAuthenticationOptions | ( | ) |
Definition at line 94 of file Utilities.cc.
Referenced by cond::AlignSplitIOV::AlignSplitIOV(), and cond::ExportIOVUtilities::ExportIOVUtilities().
void cond::Utilities::addConfigFileOption | ( | ) |
Definition at line 126 of file Utilities.cc.
Referenced by cond::ExportIOVUtilities::ExportIOVUtilities().
void cond::Utilities::addConnectOption | ( | ) |
Definition at line 101 of file Utilities.cc.
Referenced by cond::AlignSplitIOV::AlignSplitIOV(), and cond::ExportIOVUtilities::ExportIOVUtilities().
void cond::Utilities::addConnectOption | ( | const std::string & | connectionOptionName, |
const std::string & | shortName, | ||
const std::string & | helpEntry | ||
) |
Definition at line 107 of file Utilities.cc.
void cond::Utilities::addDictionaryOption | ( | ) |
Definition at line 121 of file Utilities.cc.
Referenced by cond::ExportIOVUtilities::ExportIOVUtilities().
void cond::Utilities::addLogDBOption | ( | ) |
Definition at line 116 of file Utilities.cc.
Referenced by cond::ExportIOVUtilities::ExportIOVUtilities().
|
inline |
Definition at line 82 of file Utilities.h.
References newFWLiteAna::fullName, and m_options.
|
inline |
Definition at line 92 of file Utilities.h.
References newFWLiteAna::fullName.
void cond::Utilities::addSQLOutputOption | ( | ) |
Definition at line 131 of file Utilities.cc.
Referenced by cond::ExportIOVUtilities::ExportIOVUtilities().
|
virtual |
Reimplemented in cond::AlignSplitIOV, and cond::ExportIOVUtilities.
Definition at line 50 of file Utilities.cc.
std::string cond::Utilities::getAuthenticationPathValue | ( | ) |
Definition at line 149 of file Utilities.cc.
std::string cond::Utilities::getConfigFileValue | ( | ) |
Definition at line 173 of file Utilities.cc.
std::string cond::Utilities::getConnectValue | ( | ) |
Definition at line 161 of file Utilities.cc.
std::string cond::Utilities::getDictionaryValue | ( | ) |
Definition at line 169 of file Utilities.cc.
std::string cond::Utilities::getLogDBValue | ( | ) |
Definition at line 165 of file Utilities.cc.
|
inline |
Definition at line 105 of file Utilities.h.
References newFWLiteAna::found, newFWLiteAna::fullName, m_options, m_values, python.rootplot.argparse::message, sendError(), and sendException().
std::string cond::Utilities::getPasswordValue | ( | ) |
Definition at line 157 of file Utilities.cc.
std::string cond::Utilities::getUserValue | ( | ) |
Definition at line 153 of file Utilities.cc.
|
private |
Definition at line 276 of file Utilities.cc.
References newFWLiteAna::fullName, and AlCaHLTBitMon_QueryRunRegistry::string.
bool cond::Utilities::hasDebug | ( | ) |
Definition at line 188 of file Utilities.cc.
bool cond::Utilities::hasOptionValue | ( | const std::string & | fullName | ) |
Definition at line 178 of file Utilities.cc.
References newFWLiteAna::found, and python.rootplot.argparse::message.
|
private |
Definition at line 208 of file Utilities.cc.
References builder_last_value_cfg::authPath, Debug, AlCaHLTBitMon_QueryRunRegistry::string, and hcal_dqm_sourceclient-file_cfg::user.
void cond::Utilities::initializePluginManager | ( | ) |
Definition at line 192 of file Utilities.cc.
References edm::ParameterSet::addParameter(), HDQMDatabaseProducer::config, edmplugin::standard::config(), edmplugin::PluginManager::configure(), edm::ServiceRegistry::createSet(), cmsPerfStripChart::operate(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
protected |
Definition at line 248 of file Utilities.cc.
References cond::DbSession::open(), and python.CommonUtils::session.
|
protected |
Definition at line 255 of file Utilities.cc.
References cond::DbSession::open(), and python.CommonUtils::session.
cond::DbSession cond::Utilities::openDbSession | ( | const std::string & | connectionParameterName, |
bool | readOnly = false |
||
) |
Definition at line 270 of file Utilities.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
cond::DbSession cond::Utilities::openDbSession | ( | const std::string & | connectionParameterName, |
const std::string & | role, | ||
bool | readOnly = false |
||
) |
Definition at line 263 of file Utilities.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
void cond::Utilities::parseCommand | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 135 of file Utilities.cc.
References HDQMDatabaseProducer::configFile, recoMuon::in, AlCaHLTBitMon_ParallelJobs::options, DTTTrigCorrFirst::run, and AlCaHLTBitMon_QueryRunRegistry::string.
int cond::Utilities::run | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 54 of file Utilities.cc.
References gather_cfg::cout, python.multivaluedict::dict, cppFunctionSkipper::exception, cmsIgProf_Analysis::execute(), cond::SQLReport::putOnFile(), zeeHLT_cff::report, cond::SQLReport::reportForConnection(), run_regression::ret, AlCaHLTBitMon_QueryRunRegistry::string, and cms::Exception::what().
Referenced by Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), and main().
|
private |
Definition at line 284 of file Utilities.cc.
Referenced by getOptionValue().
|
private |
Definition at line 288 of file Utilities.cc.
References edm::hlt::Exception.
Referenced by getOptionValue().
|
private |
Definition at line 76 of file Utilities.h.
|
private |
Definition at line 78 of file Utilities.h.
|
private |
Definition at line 71 of file Utilities.h.
|
private |
Definition at line 73 of file Utilities.h.
Referenced by addOption(), getOptionValue(), and Utilities().
|
private |
Definition at line 77 of file Utilities.h.
|
private |
Definition at line 74 of file Utilities.h.
Referenced by Utilities().
|
private |
Definition at line 75 of file Utilities.h.
Referenced by getOptionValue().