#include <Utilities.h>
Public Member Functions | |
void | addAuthenticationOptions () |
void | addConfigFileOption () |
void | addConnectOption (std::string const &fullName, std::string const &shortName, std::string const &helpEntry) |
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) |
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 () |
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 Attributes | |
edm::ServiceToken * | m_currentToken = nullptr |
Private Member Functions | |
std::string | getValueIfExists (const std::string &fullName) |
void | sendError (const std::string &message) |
void | sendException (const std::string &message) |
Private Attributes | |
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 24 of file Utilities.h.
cond::Utilities::Utilities | ( | const std::string & | commandName, |
std::string | positionalParameter = std::string("") |
||
) |
Definition at line 72 of file Utilities.cc.
References m_options, and m_positionalOptions.
|
virtual |
Definition at line 85 of file Utilities.cc.
void cond::Utilities::addAuthenticationOptions | ( | ) |
Definition at line 127 of file Utilities.cc.
void cond::Utilities::addConfigFileOption | ( | ) |
Definition at line 133 of file Utilities.cc.
void cond::Utilities::addConnectOption | ( | std::string const & | fullName, |
std::string const & | shortName, | ||
std::string const & | helpEntry | ||
) |
Definition at line 121 of file Utilities.cc.
|
inline |
Definition at line 81 of file Utilities.h.
References newFWLiteAna::fullName, and m_options.
|
inline |
Definition at line 92 of file Utilities.h.
References newFWLiteAna::fullName.
|
virtual |
Definition at line 87 of file Utilities.cc.
std::string cond::Utilities::getAuthenticationPathValue | ( | ) |
Definition at line 153 of file Utilities.cc.
std::string cond::Utilities::getConfigFileValue | ( | ) |
Definition at line 165 of file Utilities.cc.
std::string cond::Utilities::getConnectValue | ( | ) |
Definition at line 159 of file Utilities.cc.
std::string cond::Utilities::getDictionaryValue | ( | ) |
Definition at line 163 of file Utilities.cc.
std::string cond::Utilities::getLogDBValue | ( | ) |
Definition at line 161 of file Utilities.cc.
|
inline |
Definition at line 105 of file Utilities.h.
References newFWLiteAna::found, newFWLiteAna::fullName, m_options, m_values, sendError(), and sendException().
std::string cond::Utilities::getPasswordValue | ( | ) |
Definition at line 157 of file Utilities.cc.
std::string cond::Utilities::getUserValue | ( | ) |
Definition at line 155 of file Utilities.cc.
|
private |
Definition at line 183 of file Utilities.cc.
References newFWLiteAna::fullName, AlCaHLTBitMon_QueryRunRegistry::string, and heppy_batch::val.
bool cond::Utilities::hasDebug | ( | ) |
Definition at line 177 of file Utilities.cc.
bool cond::Utilities::hasOptionValue | ( | const std::string & | fullName | ) |
Definition at line 167 of file Utilities.cc.
References newFWLiteAna::found, and newFWLiteAna::fullName.
void cond::Utilities::initializePluginManager | ( | ) |
Definition at line 179 of file Utilities.cc.
void cond::Utilities::parseCommand | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 137 of file Utilities.cc.
References dir2webdir::argc, GCPpyPlots::argv, GCPpyPlots::configFile, recoMuon::in, AlcaSiPixelAliHarvester0T_cff::options, writedatasetfile::run, and AlCaHLTBitMon_QueryRunRegistry::string.
int cond::Utilities::run | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 89 of file Utilities.cc.
References edm::ParameterSet::addParameter(), dir2webdir::argc, GCPpyPlots::argv, DiMuonV_cfg::config, edmplugin::standard::config(), edmplugin::PluginManager::configure(), gather_cfg::cout, edm::ServiceRegistry::createSet(), submitPVResolutionJobs::err, cppFunctionSkipper::exception, runTheMatrix::ret, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), and o2olib.O2OTool::execute().
|
private |
Definition at line 191 of file Utilities.cc.
Referenced by getOptionValue().
|
private |
|
protected |
Definition at line 68 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 74 of file Utilities.h.
Referenced by Utilities().
|
private |
Definition at line 75 of file Utilities.h.
Referenced by getOptionValue().