![]() |
Diana Software
|
diana options and parameters handler More...
Classes | |
| class | ParamInfo |
Public Member Functions | |
| void | Init (int argc, char *const argv[]) |
| void | Dump (std::ostream &) |
| void | CheckNotGet (const std::string &seq, std::ostream &o) |
| void | CheckAtDefault (const std::string &seq, std::ostream &o) |
| virtual | ~QOptions () |
| std::string | GetName () const |
| const QVdt & | GetParameter (const std::string &seq, const std::string &mod, size_t occ, const std::string &par) |
| const QVdt & | GetParameter (const std::string &n) |
| double | GetDouble (const std::string &seq, const std::string &mod, size_t occ, const std::string &par) |
| double | GetDouble (const std::string &) |
| std::vector< double > | GetVectorDouble (const std::string &seq, const std::string &mod, size_t occ, const std::string &par) |
| std::vector< double > | GetVectorDouble (const std::string &) |
| int | GetInt (const std::string &seq, const std::string &mod, size_t occ, const std::string &par) |
| int | GetInt (const std::string &) |
| std::vector< int > | GetVectorInt (const std::string &seq, const std::string &mod, size_t occ, const std::string &par) |
| std::vector< int > | GetVectorInt (const std::string &) |
| bool | GetBool (const std::string &seq, const std::string &mod, size_t occ, const std::string &par) |
| bool | GetBool (const std::string &) |
| std::vector< bool > | GetVectorBool (const std::string &seq, const std::string &mod, size_t occ, const std::string &par) |
| std::vector< bool > | GetVectorBool (const std::string &) |
| const std::string & | GetString (const std::string &seq, const std::string &mod, size_t occ, const std::string &par) |
| const std::string & | GetString (const std::string &) |
| std::vector< std::string > | GetVectorString (const std::string &seq, const std::string &mod, size_t occ, const std::string &par) |
| std::vector< std::string > | GetVectorString (const std::string &) |
Static Public Member Functions | |
| static QOptions & | GetInstance () |
Private Member Functions | |
| QOptions () | |
| void | Help (const char *exe) |
| std::map< std::string, QVdt * > | GetModuleParameters (const std::string &seq, const std::string &mod, size_t occ) |
| void | SetParameter (const std::string &n, const QVdt &value, const bool isDefault=false) |
| void | SetParameter (const std::string &seq, const std::string &mod, size_t occ, const std::string &par, const QVdt &p, const bool isDefault=false) |
| void | SetFirstSequence (const std::string &n) |
| void | SetLastSequence (const std::string &n) |
| void | ReplaceUserParams () |
| replace parameters that where super-seeded with inline command More... | |
Private Attributes | |
| std::map< std::string, QVdt > | fUserParams |
| std::map< std::string, ParamInfo > | fParams |
| std::string | fFirstSequenceName |
| std::string | fLastSequenceName |
Friends | |
| class | QBaseModule |
| class | QModuleFactory |
| class | QMessageHandler |
| class | QSequence |
| class | QDriver |
diana options and parameters handler
Definition at line 21 of file QOptions.hh.
|
virtual |
Definition at line 65 of file QOptions.cc.
|
private |
Definition at line 30 of file QOptions.cc.
References Diana::DianaDebug, QSWInfo::GetBoostVersion(), QSWInfo::GetDianaSWRevision(), QSWInfo::GetDianaVersionTag(), QRealComplexFFT::GetFFTLibrary(), QSWInfo::GetFFTWVersion(), QSWInfo::GetGSLVersion(), QSWInfo::GetPSQLVersion(), QSWInfo::GetQtVersion(), and QSWInfo::GetROOTVersion().
| void QOptions::CheckAtDefault | ( | const std::string & | seq, |
| std::ostream & | o | ||
| ) |
Definition at line 95 of file QOptions.cc.
Referenced by QSequence::~QSequence().
| void QOptions::CheckNotGet | ( | const std::string & | seq, |
| std::ostream & | o | ||
| ) |
Definition at line 69 of file QOptions.cc.
Referenced by QSequence::~QSequence().
| void QOptions::Dump | ( | std::ostream & | o | ) |
Definition at line 121 of file QOptions.cc.
References vec, and QVdt::Vector_QVdt.
| bool QOptions::GetBool | ( | const std::string & | ) |
| bool QOptions::GetBool | ( | const std::string & | seq, |
| const std::string & | mod, | ||
| size_t | occ, | ||
| const std::string & | par | ||
| ) |
Definition at line 526 of file QOptions.cc.
Referenced by QBaseModule::BeginBase(), and QBaseModule::GetBool().
| double QOptions::GetDouble | ( | const std::string & | ) |
| double QOptions::GetDouble | ( | const std::string & | seq, |
| const std::string & | mod, | ||
| size_t | occ, | ||
| const std::string & | par | ||
| ) |
Definition at line 489 of file QOptions.cc.
Referenced by QBaseModule::GetDouble().
|
static |
Definition at line 23 of file QOptions.cc.
Referenced by QRootFileWriterBase::AppendFileToFile(), QBaseModule::BeginBase(), QBaseModule::GetBool(), QBaseModule::GetDouble(), QBaseModule::GetInt(), QDriver::GetModuleParameters(), QBaseModule::GetString(), QBaseModule::GetVectorBool(), QBaseModule::GetVectorDouble(), QBaseModule::GetVectorInt(), QBaseModule::GetVectorString(), QModuleFactory::Init(), Init(), main(), QRootFileWriterBase::Open(), QModuleFactory::ReplaceCFGVar(), QSequence::Run(), QBaseModule::Update(), QBaseModule::UpdateConfigParameters(), and QSequence::~QSequence().
| int QOptions::GetInt | ( | const std::string & | ) |
| int QOptions::GetInt | ( | const std::string & | seq, |
| const std::string & | mod, | ||
| size_t | occ, | ||
| const std::string & | par | ||
| ) |
Definition at line 508 of file QOptions.cc.
Referenced by QBaseModule::GetInt(), and QSequence::Run().
|
private |
Definition at line 580 of file QOptions.cc.
Referenced by QDriver::GetModuleParameters().
|
inline |
Definition at line 35 of file QOptions.hh.
| const QVdt & QOptions::GetParameter | ( | const std::string & | n | ) |
Definition at line 462 of file QOptions.cc.
| const QVdt & QOptions::GetParameter | ( | const std::string & | seq, |
| const std::string & | mod, | ||
| size_t | occ, | ||
| const std::string & | par | ||
| ) |
Definition at line 472 of file QOptions.cc.
Referenced by QBaseModule::Update(), and QBaseModule::UpdateConfigParameters().
| const std::string& QOptions::GetString | ( | const std::string & | ) |
| const std::string & QOptions::GetString | ( | const std::string & | seq, |
| const std::string & | mod, | ||
| size_t | occ, | ||
| const std::string & | par | ||
| ) |
Definition at line 556 of file QOptions.cc.
Referenced by QBaseModule::GetString().
| std::vector<bool> QOptions::GetVectorBool | ( | const std::string & | ) |
| std::vector< bool > QOptions::GetVectorBool | ( | const std::string & | seq, |
| const std::string & | mod, | ||
| size_t | occ, | ||
| const std::string & | par | ||
| ) |
Definition at line 534 of file QOptions.cc.
Referenced by QBaseModule::GetVectorBool().
| std::vector<double> QOptions::GetVectorDouble | ( | const std::string & | ) |
| std::vector< double > QOptions::GetVectorDouble | ( | const std::string & | seq, |
| const std::string & | mod, | ||
| size_t | occ, | ||
| const std::string & | par | ||
| ) |
Definition at line 498 of file QOptions.cc.
Referenced by QBaseModule::GetVectorDouble().
| std::vector<int> QOptions::GetVectorInt | ( | const std::string & | ) |
| std::vector< int > QOptions::GetVectorInt | ( | const std::string & | seq, |
| const std::string & | mod, | ||
| size_t | occ, | ||
| const std::string & | par | ||
| ) |
Definition at line 516 of file QOptions.cc.
Referenced by QBaseModule::GetVectorInt().
| std::vector<std::string> QOptions::GetVectorString | ( | const std::string & | ) |
| std::vector< std::string > QOptions::GetVectorString | ( | const std::string & | seq, |
| const std::string & | mod, | ||
| size_t | occ, | ||
| const std::string & | par | ||
| ) |
Definition at line 544 of file QOptions.cc.
Referenced by QBaseModule::GetVectorString().
|
private |
Definition at line 141 of file QOptions.cc.
| void QOptions::Init | ( | int | argc, |
| char *const | argv[] | ||
| ) |
Definition at line 166 of file QOptions.cc.
References Diana::DianaDebug, QMessageHandler::Get(), GetInstance(), max, optarg, opterr, optind, and optopt.
Referenced by main().
|
private |
replace parameters that where super-seeded with inline command
Definition at line 368 of file QOptions.cc.
References b, err, QVdt::GetBool(), QVdt::GetString(), and QMessageHandler::Panic().
|
inlineprivate |
Definition at line 82 of file QOptions.hh.
References fFirstSequenceName.
|
inlineprivate |
Definition at line 83 of file QOptions.hh.
References fLastSequenceName.
|
private |
|
private |
|
friend |
Definition at line 97 of file QOptions.hh.
|
friend |
Definition at line 101 of file QOptions.hh.
|
friend |
Definition at line 99 of file QOptions.hh.
|
friend |
Definition at line 98 of file QOptions.hh.
|
friend |
Definition at line 100 of file QOptions.hh.
|
private |
Definition at line 94 of file QOptions.hh.
Referenced by SetFirstSequence().
|
private |
Definition at line 95 of file QOptions.hh.
Referenced by SetLastSequence().
|
private |
Definition at line 93 of file QOptions.hh.
|
private |
Definition at line 92 of file QOptions.hh.