#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 | |
void | initializeForDbConnection () |
cond::DbSession | newDbSession (const std::string &connectionString, bool readOnly=false) |
cond::DbSession | newDbSession (const std::string &connectionString, const std::string &role, bool readOnly=false) |
Protected Attributes | |
edm::ServiceToken * | m_currentToken = 0 |
Private Member Functions | |
std::string | getValueIfExists (const std::string &fullName) |
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 |
boost::program_options::positional_options_description | m_positionalOptions |
boost::program_options::variables_map | m_values |
Definition at line 23 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 45 of file Utilities.cc.
void cond::Utilities::addAuthenticationOptions | ( | ) |
Definition at line 104 of file Utilities.cc.
Referenced by cond::AlignSplitIOV::AlignSplitIOV(), and cond::ExportIOVUtilities::ExportIOVUtilities().
void cond::Utilities::addConfigFileOption | ( | ) |
Definition at line 136 of file Utilities.cc.
Referenced by cond::ExportIOVUtilities::ExportIOVUtilities().
void cond::Utilities::addConnectOption | ( | ) |
Definition at line 111 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 117 of file Utilities.cc.
void cond::Utilities::addDictionaryOption | ( | ) |
Definition at line 131 of file Utilities.cc.
Referenced by cond::ExportIOVUtilities::ExportIOVUtilities().
void cond::Utilities::addLogDBOption | ( | ) |
Definition at line 126 of file Utilities.cc.
Referenced by cond::ExportIOVUtilities::ExportIOVUtilities().
|
inline |
Definition at line 88 of file Utilities.h.
References newFWLiteAna::fullName, and m_options.
|
inline |
Definition at line 98 of file Utilities.h.
References newFWLiteAna::fullName.
void cond::Utilities::addSQLOutputOption | ( | ) |
Definition at line 141 of file Utilities.cc.
Referenced by cond::ExportIOVUtilities::ExportIOVUtilities().
|
virtual |
Reimplemented in cond::AlignSplitIOV, and cond::ExportIOVUtilities.
Definition at line 49 of file Utilities.cc.
std::string cond::Utilities::getAuthenticationPathValue | ( | ) |
Definition at line 159 of file Utilities.cc.
std::string cond::Utilities::getConfigFileValue | ( | ) |
Definition at line 183 of file Utilities.cc.
std::string cond::Utilities::getConnectValue | ( | ) |
Definition at line 171 of file Utilities.cc.
std::string cond::Utilities::getDictionaryValue | ( | ) |
Definition at line 179 of file Utilities.cc.
std::string cond::Utilities::getLogDBValue | ( | ) |
Definition at line 175 of file Utilities.cc.
|
inline |
Definition at line 111 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 167 of file Utilities.cc.
std::string cond::Utilities::getUserValue | ( | ) |
Definition at line 163 of file Utilities.cc.
|
private |
Definition at line 273 of file Utilities.cc.
References newFWLiteAna::fullName, and AlCaHLTBitMon_QueryRunRegistry::string.
bool cond::Utilities::hasDebug | ( | ) |
Definition at line 198 of file Utilities.cc.
bool cond::Utilities::hasOptionValue | ( | const std::string & | fullName | ) |
Definition at line 188 of file Utilities.cc.
References newFWLiteAna::found, and python.rootplot.argparse::message.
|
protected |
Definition at line 206 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 202 of file Utilities.cc.
|
protected |
Definition at line 245 of file Utilities.cc.
References cond::DbSession::open(), and python.CommonUtils::session.
|
protected |
Definition at line 252 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 267 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 260 of file Utilities.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
void cond::Utilities::parseCommand | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 145 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 53 of file Utilities.cc.
References edm::ParameterSet::addParameter(), HDQMDatabaseProducer::config, edmplugin::standard::config(), edmplugin::PluginManager::configure(), gather_cfg::cout, edm::ServiceRegistry::createSet(), python.multivaluedict::dict, cppFunctionSkipper::exception, cmsIgProf_Analysis::execute(), cmsPerfStripChart::operate(), 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 281 of file Utilities.cc.
Referenced by getOptionValue().
|
private |
Definition at line 285 of file Utilities.cc.
References Exception.
Referenced by getOptionValue().
|
protected |
Definition at line 74 of file Utilities.h.
|
private |
Definition at line 83 of file Utilities.h.
|
private |
Definition at line 84 of file Utilities.h.
|
private |
Definition at line 78 of file Utilities.h.
|
private |
Definition at line 80 of file Utilities.h.
Referenced by addOption(), getOptionValue(), and Utilities().
|
private |
Definition at line 81 of file Utilities.h.
Referenced by Utilities().
|
private |
Definition at line 82 of file Utilities.h.
Referenced by getOptionValue().