#include <Utilities.h>
Public Member Functions | |
bool | check () |
CommandLine () | |
template<class T > | |
T | getValue (const std::string &name) |
template<> | |
bool | getValue (const std::string &name) |
template<> | |
bool | getValue (const std::string &name, bool default_value) |
template<class T > | |
T | getValue (const std::string &name, T default_value) |
template<class T > | |
std::vector< T > | getVector (const std::string &name) |
template<class T > | |
std::vector< T > | getVector (const std::string &name, const std::string &default_as_string) |
bool | parse (int argc, char **argv) |
void | print () |
~CommandLine () | |
Private Types | |
typedef std::map< std::string, std::pair< std::string, bool > > | OptionMap_t |
typedef std::vector< std::string > | StrVec_t |
Private Member Functions | |
bool | parse_file (const std::string &file_name) |
Private Attributes | |
std::string | _exe |
OptionMap_t | _options |
StrVec_t | _ordered_options |
StrVec_t | _unknowns |
Definition at line 24 of file Utilities.h.
|
private |
Definition at line 56 of file Utilities.h.
|
private |
Definition at line 57 of file Utilities.h.
CommandLine::CommandLine | ( | ) |
Definition at line 177 of file Utilities.h.
CommandLine::~CommandLine | ( | ) |
Definition at line 179 of file Utilities.h.
bool CommandLine::check | ( | void | ) |
Definition at line 224 of file Utilities.h.
References _options, _unknowns, gather_cfg::cout, and mps_fire::result.
T CommandLine::getValue | ( | const std::string & | name | ) |
Definition at line 74 of file Utilities.h.
References _options, _ordered_options, _unknowns, Skims_PA_cff::name, mps_fire::result, and contentValuesCheck::ss.
bool CommandLine::getValue | ( | const std::string & | name | ) |
Definition at line 106 of file Utilities.h.
References _options, _ordered_options, _unknowns, Skims_PA_cff::name, contentValuesCheck::ss, and AlCaHLTBitMon_QueryRunRegistry::string.
bool CommandLine::getValue | ( | const std::string & | name, |
bool | default_value | ||
) |
Definition at line 128 of file Utilities.h.
References _options, _ordered_options, and Skims_PA_cff::name.
Definition at line 91 of file Utilities.h.
References _options, _ordered_options, Skims_PA_cff::name, contentValuesCheck::ss, and AlCaHLTBitMon_QueryRunRegistry::string.
std::vector< T > CommandLine::getVector | ( | const std::string & | name | ) |
Definition at line 139 of file Utilities.h.
References _options, _ordered_options, _unknowns, Skims_PA_cff::name, mps_fire::result, contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, and createJobs::tmp.
std::vector< T > CommandLine::getVector | ( | const std::string & | name, |
const std::string & | default_as_string | ||
) |
bool CommandLine::parse | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 184 of file Utilities.h.
References _exe, _options, _ordered_options, _unknowns, dir2webdir::argc, cmsBatch::argv, gather_cfg::cout, mps_fire::i, GetRecoTauVFromDQM_MC_cff::next, runTheMatrix::opt, parse_file(), AlCaHLTBitMon_QueryRunRegistry::string, and summarizeEdmComparisonLogfiles::success.
|
private |
Definition at line 277 of file Utilities.h.
References _options, gather_cfg::cout, contentValuesCheck::file_name, ALCARECOTkAlBeamHalo_cff::filter, groupFilesInBlocks::fin, crabWrapper::key, GetRecoTauVFromDQM_MC_cff::next, contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, unpackBuffers-CaloStage2::token, and relativeConstraints::value.
Referenced by parse().
void CommandLine::print | ( | void | ) |
Definition at line 245 of file Utilities.h.
References _exe, _options, _ordered_options, cms::cuda::assert(), gather_cfg::cout, AlCaHLTBitMon_QueryRunRegistry::string, and createJobs::tmp.
|
private |
Definition at line 62 of file Utilities.h.
|
private |
Definition at line 63 of file Utilities.h.
Referenced by check(), getValue(), getVector(), parse(), parse_file(), and print().
|
private |
Definition at line 64 of file Utilities.h.
Referenced by getValue(), getVector(), parse(), and print().
|
private |
Definition at line 65 of file Utilities.h.
Referenced by check(), getValue(), getVector(), and parse().