#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 = 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 | |
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.
|
inline |
Definition at line 92 of file Utilities.h.
References newFWLiteAna::fullName.
|
virtual |
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, and newFWLiteAna::fullName.
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, m_values, AlCaHLTBitMon_QueryRunRegistry::string, and heppy_batch::val.
Referenced by parseCommand().
bool cond::Utilities::hasDebug | ( | ) |
bool cond::Utilities::hasOptionValue | ( | const std::string & | fullName | ) |
Definition at line 167 of file Utilities.cc.
References newFWLiteAna::found, m_options, m_values, and sendException().
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 getValueIfExists(), recoMuon::in, m_options, m_positionalOptions, m_values, AlcaSiPixelAliHarvester0T_cff::options, run(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by run().
int cond::Utilities::run | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 89 of file Utilities.cc.
References edm::ParameterSet::addParameter(), edmplugin::standard::config(), looper::config, edmplugin::PluginManager::configure(), gather_cfg::cout, edm::ServiceRegistry::createSet(), runTheMatrix::err, cppFunctionSkipper::exception, execute(), m_currentToken, m_options, m_values, parseCommand(), runTheMatrix::ret, AlCaHLTBitMon_QueryRunRegistry::string, and cms::Exception::what().
Referenced by Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), o2olib.O2OTool::execute(), and parseCommand().
|
private |
Definition at line 191 of file Utilities.cc.
|
private |
|
protected |
Definition at line 68 of file Utilities.h.
Referenced by run().
|
private |
Definition at line 71 of file Utilities.h.
|
private |
Definition at line 73 of file Utilities.h.
Referenced by hasOptionValue(), parseCommand(), run(), and Utilities().
|
private |
Definition at line 74 of file Utilities.h.
Referenced by parseCommand(), and Utilities().
|
private |
Definition at line 75 of file Utilities.h.
Referenced by getValueIfExists(), hasDebug(), hasOptionValue(), parseCommand(), and run().