#include <Utilities.h>
Public Member Functions | |
bool | check () |
CommandLine () | |
template<class T > | |
T | getValue (const std::string &name) |
template<class T > | |
T | getValue (const std::string &name, T default_value) |
template<> | |
bool | getValue (const std::string &name) |
template<> | |
bool | getValue (const std::string &name, bool 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 54 of file Utilities.h.
|
private |
Definition at line 55 of file Utilities.h.
CommandLine::CommandLine | ( | ) |
Definition at line 186 of file Utilities.h.
CommandLine::~CommandLine | ( | ) |
Definition at line 191 of file Utilities.h.
bool CommandLine::check | ( | void | ) |
Definition at line 240 of file Utilities.h.
References _options, _unknowns, gather_cfg::cout, and query::result.
Referenced by main().
T CommandLine::getValue | ( | const std::string & | name | ) |
Definition at line 74 of file Utilities.h.
References _options, _ordered_options, _unknowns, query::result, and contentValuesCheck::ss.
Referenced by main().
Definition at line 93 of file Utilities.h.
References _options, _ordered_options, mergeVDriftHistosByStation::name, contentValuesCheck::ss, and AlCaHLTBitMon_QueryRunRegistry::string.
bool CommandLine::getValue | ( | const std::string & | name | ) |
Definition at line 109 of file Utilities.h.
References mergeVDriftHistosByStation::name, contentValuesCheck::ss, and AlCaHLTBitMon_QueryRunRegistry::string.
bool CommandLine::getValue | ( | const std::string & | name, |
bool | default_value | ||
) |
Definition at line 131 of file Utilities.h.
References _options, _ordered_options, and mergeVDriftHistosByStation::name.
std::vector< T > CommandLine::getVector | ( | const std::string & | name | ) |
Definition at line 144 of file Utilities.h.
References _options, _ordered_options, _unknowns, query::result, contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, and tmp.
Referenced by main().
std::vector< T > CommandLine::getVector | ( | const std::string & | name, |
const std::string & | default_as_string | ||
) |
Definition at line 174 of file Utilities.h.
References _options, and mergeVDriftHistosByStation::name.
bool CommandLine::parse | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 199 of file Utilities.h.
References _exe, _options, _ordered_options, _unknowns, dir2webdir::argc, gather_cfg::cout, i, GetRecoTauVFromDQM_MC_cff::next, parse_file(), AlCaHLTBitMon_QueryRunRegistry::string, and summarizeEdmComparisonLogfiles::success.
Referenced by main().
|
private |
Definition at line 311 of file Utilities.h.
References _options, gather_cfg::cout, alcazmumu_cfi::filter, groupFilesInBlocks::fin, combine::key, GetRecoTauVFromDQM_MC_cff::next, contentValuesCheck::ss, AlCaHLTBitMon_QueryRunRegistry::string, and relativeConstraints::value.
Referenced by parse().
void CommandLine::print | ( | void | ) |
Definition at line 262 of file Utilities.h.
References _exe, _options, _ordered_options, gather_cfg::cout, AlCaHLTBitMon_QueryRunRegistry::string, and tmp.
Referenced by main().
|
private |
Definition at line 61 of file Utilities.h.
|
private |
Definition at line 62 of file Utilities.h.
Referenced by check(), getValue(), getVector(), parse(), parse_file(), and print().
|
private |
Definition at line 63 of file Utilities.h.
Referenced by getValue(), getVector(), parse(), and print().
|
private |
Definition at line 64 of file Utilities.h.
Referenced by check(), getValue(), getVector(), and parse().