#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 22 of file Utilities.h.
cond::Utilities::Utilities | ( | const std::string & | commandName, |
std::string | positionalParameter = std::string("") |
||
) |
Definition at line 22 of file Utilities.cc.
References m_options, and m_positionalOptions.
|
virtual |
Definition at line 40 of file Utilities.cc.
void cond::Utilities::addAuthenticationOptions | ( | ) |
Definition at line 86 of file Utilities.cc.
void cond::Utilities::addConfigFileOption | ( | ) |
Definition at line 93 of file Utilities.cc.
void cond::Utilities::addConnectOption | ( | std::string const & | fullName, |
std::string const & | shortName, | ||
std::string const & | helpEntry | ||
) |
Definition at line 79 of file Utilities.cc.
|
inline |
Definition at line 81 of file Utilities.h.
|
inline |
Definition at line 91 of file Utilities.h.
|
virtual |
std::string cond::Utilities::getAuthenticationPathValue | ( | ) |
Definition at line 111 of file Utilities.cc.
std::string cond::Utilities::getConfigFileValue | ( | ) |
Definition at line 135 of file Utilities.cc.
std::string cond::Utilities::getConnectValue | ( | ) |
Definition at line 123 of file Utilities.cc.
std::string cond::Utilities::getDictionaryValue | ( | ) |
Definition at line 131 of file Utilities.cc.
std::string cond::Utilities::getLogDBValue | ( | ) |
Definition at line 127 of file Utilities.cc.
|
inline |
Definition at line 104 of file Utilities.h.
References runEdmFileComparison::found, and python.rootplot.argparse::message.
std::string cond::Utilities::getPasswordValue | ( | ) |
Definition at line 119 of file Utilities.cc.
std::string cond::Utilities::getUserValue | ( | ) |
Definition at line 115 of file Utilities.cc.
|
private |
Definition at line 158 of file Utilities.cc.
References 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 140 of file Utilities.cc.
References runEdmFileComparison::found, m_options, m_values, python.rootplot.argparse::message, and sendException().
void cond::Utilities::initializePluginManager | ( | ) |
Definition at line 154 of file Utilities.cc.
void cond::Utilities::parseCommand | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 97 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 47 of file Utilities.cc.
References edm::ParameterSet::addParameter(), edmplugin::standard::config(), mps_alisetup::config, edmplugin::PluginManager::configure(), gather_cfg::cout, edm::ServiceRegistry::createSet(), cppFunctionSkipper::exception, execute(), m_currentToken, m_options, m_values, cmsPerfStripChart::operate(), parseCommand(), AlCaHLTBitMon_QueryRunRegistry::string, and cms::Exception::what().
Referenced by Types.EventID::cppID(), Types.LuminosityBlockID::cppID(), o2olib.O2OTool::execute(), and parseCommand().
|
private |
Definition at line 166 of file Utilities.cc.
|
private |
|
protected |
Definition at line 67 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().