#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 75 of file Utilities.cc.
References m_options, and m_positionalOptions.
|
virtual |
Definition at line 93 of file Utilities.cc.
void cond::Utilities::addAuthenticationOptions | ( | ) |
Definition at line 139 of file Utilities.cc.
void cond::Utilities::addConfigFileOption | ( | ) |
Definition at line 146 of file Utilities.cc.
void cond::Utilities::addConnectOption | ( | std::string const & | fullName, |
std::string const & | shortName, | ||
std::string const & | helpEntry | ||
) |
Definition at line 132 of file Utilities.cc.
|
inline |
Definition at line 83 of file Utilities.h.
|
inline |
Definition at line 93 of file Utilities.h.
|
virtual |
std::string cond::Utilities::getAuthenticationPathValue | ( | ) |
Definition at line 164 of file Utilities.cc.
std::string cond::Utilities::getConfigFileValue | ( | ) |
Definition at line 188 of file Utilities.cc.
std::string cond::Utilities::getConnectValue | ( | ) |
Definition at line 176 of file Utilities.cc.
std::string cond::Utilities::getDictionaryValue | ( | ) |
Definition at line 184 of file Utilities.cc.
std::string cond::Utilities::getLogDBValue | ( | ) |
Definition at line 180 of file Utilities.cc.
|
inline |
Definition at line 106 of file Utilities.h.
References runEdmFileComparison::found.
std::string cond::Utilities::getPasswordValue | ( | ) |
Definition at line 172 of file Utilities.cc.
std::string cond::Utilities::getUserValue | ( | ) |
Definition at line 168 of file Utilities.cc.
|
private |
Definition at line 211 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 193 of file Utilities.cc.
References runEdmFileComparison::found, m_options, m_values, and sendException().
void cond::Utilities::initializePluginManager | ( | ) |
Definition at line 207 of file Utilities.cc.
void cond::Utilities::parseCommand | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 150 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 100 of file Utilities.cc.
References edm::ParameterSet::addParameter(), edmplugin::standard::config(), looper::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 219 of file Utilities.cc.
|
private |
|
protected |
Definition at line 69 of file Utilities.h.
Referenced by run().
|
private |
Definition at line 73 of file Utilities.h.
|
private |
Definition at line 75 of file Utilities.h.
Referenced by hasOptionValue(), parseCommand(), run(), and Utilities().
|
private |
Definition at line 76 of file Utilities.h.
Referenced by parseCommand(), and Utilities().
|
private |
Definition at line 77 of file Utilities.h.
Referenced by getValueIfExists(), hasDebug(), hasOptionValue(), parseCommand(), and run().