#include <VariableMapCont.h>
Public Types | |
typedef std::vector< double > | DVec |
typedef DVec::const_iterator | DVecConstIter |
typedef DVec::iterator | DVecIter |
typedef std::vector< int > | IVec |
typedef IVec::const_iterator | IVecConstIter |
typedef IVec::iterator | IVecIter |
enum | OptionType { kNone = 0, kInteger, kDouble, kString, kBool, kIntegerVector, kDoubleVector, kStringVector, kNumOptionTypes } |
typedef std::map< std::string, bool > | SBMap |
typedef SBMap::const_iterator | SBMapConstIter |
typedef SBMap::iterator | SBMapIter |
typedef std::map< std::string, double > | SDMap |
typedef SDMap::const_iterator | SDMapConstIter |
typedef SDMap::iterator | SDMapIter |
typedef std::map< std::string, DVec > | SDVecMap |
typedef SDVecMap::const_iterator | SDVecMapConstIter |
typedef SDVecMap::iterator | SDVecMapIter |
typedef std::map< std::string, int > | SIMap |
typedef SIMap::const_iterator | SIMapConstIter |
typedef SIMap::iterator | SIMapIter |
typedef std::map< std::string, IVec > | SIVecMap |
typedef SIVecMap::const_iterator | SIVecMapConstIter |
typedef SIVecMap::iterator | SIVecMapIter |
typedef std::map< std::string, std::string > | SSMap |
typedef SSMap::const_iterator | SSMapConstIter |
typedef SSMap::iterator | SSMapIter |
typedef std::map< std::string, SVec > | SSVecMap |
typedef SSVecMap::const_iterator | SSVecMapConstIter |
typedef SSVecMap::iterator | SSVecMapIter |
typedef std::vector< std::string > | SVec |
typedef SVec::const_iterator | SVecConstIter |
typedef SVec::iterator | SVecIter |
Public Member Functions | |
void | _checkKey (std::string &key, const std::string &description="") |
void | addOption (std::string key, OptionType type, const std::string &description="") |
void | addOption (std::string key, OptionType type, const std::string &description, int defaultValue) |
void | addOption (std::string key, OptionType type, const std::string &description, double defaultValue) |
void | addOption (std::string key, OptionType type, const std::string &description, const std::string &defaultValue) |
void | addOption (std::string key, OptionType type, const std::string &description, const char *defaultValue) |
void | addOption (std::string key, OptionType type, const std::string &description, bool defaultValue) |
void | addVariable (std::string key, OptionType type) |
void | addVariable (std::string key, OptionType type, int defaultValue) |
void | addVariable (std::string key, OptionType type, double defaultValue) |
void | addVariable (std::string key, OptionType type, const std::string &defaultValue) |
void | addVariable (std::string key, OptionType type, const char *defaultValue) |
void | addVariable (std::string key, OptionType type, bool defaultValue) |
bool & | boolValue (std::string key) |
double & | doubleValue (std::string key) |
DVec & | doubleVector (std::string key) |
OptionType | hasOption (std::string key) |
OptionType | hasVariable (std::string key) |
void | help () |
int & | integerValue (std::string key) |
IVec & | integerVector (std::string key) |
std::string & | stringValue (std::string key) |
SVec & | stringVector (std::string key) |
VariableMapCont () | |
Static Public Member Functions | |
static void | lowercaseString (std::string &arg) |
static char | toLower (char &ch) |
Static Public Attributes | |
static const bool | kDefaultBool = false |
static const double | kDefaultDouble = 0. |
static const int | kDefaultInteger = 0 |
static const std::string | kDefaultString = "" |
static const DVec | kEmptyDVec |
static const IVec | kEmptyIVec |
static const SVec | kEmptySVec |
Protected Member Functions | |
bool | _valueHasBeenModified (const std::string &key) |
Friends | |
std::ostream & | operator<< (std::ostream &o_stream, const VariableMapCont &rhs) |
Definition at line 13 of file VariableMapCont.h.
typedef std::vector< double > optutl::VariableMapCont::DVec |
Definition at line 22 of file VariableMapCont.h.
typedef DVec::const_iterator optutl::VariableMapCont::DVecConstIter |
Definition at line 44 of file VariableMapCont.h.
typedef DVec::iterator optutl::VariableMapCont::DVecIter |
Definition at line 33 of file VariableMapCont.h.
typedef std::vector< int > optutl::VariableMapCont::IVec |
Definition at line 21 of file VariableMapCont.h.
typedef IVec::const_iterator optutl::VariableMapCont::IVecConstIter |
Definition at line 43 of file VariableMapCont.h.
typedef IVec::iterator optutl::VariableMapCont::IVecIter |
Definition at line 32 of file VariableMapCont.h.
typedef std::map< std::string, bool > optutl::VariableMapCont::SBMap |
Definition at line 26 of file VariableMapCont.h.
typedef SBMap::const_iterator optutl::VariableMapCont::SBMapConstIter |
Definition at line 48 of file VariableMapCont.h.
typedef SBMap::iterator optutl::VariableMapCont::SBMapIter |
Definition at line 37 of file VariableMapCont.h.
typedef std::map< std::string, double > optutl::VariableMapCont::SDMap |
Definition at line 25 of file VariableMapCont.h.
typedef SDMap::const_iterator optutl::VariableMapCont::SDMapConstIter |
Definition at line 47 of file VariableMapCont.h.
typedef SDMap::iterator optutl::VariableMapCont::SDMapIter |
Definition at line 36 of file VariableMapCont.h.
typedef std::map< std::string, DVec > optutl::VariableMapCont::SDVecMap |
Definition at line 29 of file VariableMapCont.h.
typedef SDVecMap::const_iterator optutl::VariableMapCont::SDVecMapConstIter |
Definition at line 51 of file VariableMapCont.h.
typedef SDVecMap::iterator optutl::VariableMapCont::SDVecMapIter |
Definition at line 40 of file VariableMapCont.h.
typedef std::map< std::string, int > optutl::VariableMapCont::SIMap |
Definition at line 24 of file VariableMapCont.h.
typedef SIMap::const_iterator optutl::VariableMapCont::SIMapConstIter |
Definition at line 46 of file VariableMapCont.h.
typedef SIMap::iterator optutl::VariableMapCont::SIMapIter |
Definition at line 35 of file VariableMapCont.h.
typedef std::map< std::string, IVec > optutl::VariableMapCont::SIVecMap |
Definition at line 28 of file VariableMapCont.h.
typedef SIVecMap::const_iterator optutl::VariableMapCont::SIVecMapConstIter |
Definition at line 50 of file VariableMapCont.h.
typedef SIVecMap::iterator optutl::VariableMapCont::SIVecMapIter |
Definition at line 39 of file VariableMapCont.h.
typedef std::map< std::string, std::string > optutl::VariableMapCont::SSMap |
Definition at line 27 of file VariableMapCont.h.
typedef SSMap::const_iterator optutl::VariableMapCont::SSMapConstIter |
Definition at line 49 of file VariableMapCont.h.
typedef SSMap::iterator optutl::VariableMapCont::SSMapIter |
Definition at line 38 of file VariableMapCont.h.
typedef std::map< std::string, SVec > optutl::VariableMapCont::SSVecMap |
Definition at line 30 of file VariableMapCont.h.
typedef SSVecMap::const_iterator optutl::VariableMapCont::SSVecMapConstIter |
Definition at line 52 of file VariableMapCont.h.
typedef SSVecMap::iterator optutl::VariableMapCont::SSVecMapIter |
Definition at line 41 of file VariableMapCont.h.
typedef std::vector< std::string > optutl::VariableMapCont::SVec |
Definition at line 23 of file VariableMapCont.h.
typedef SVec::const_iterator optutl::VariableMapCont::SVecConstIter |
Definition at line 45 of file VariableMapCont.h.
typedef SVec::iterator optutl::VariableMapCont::SVecIter |
Definition at line 34 of file VariableMapCont.h.
Enumerator | |
---|---|
kNone | |
kInteger | |
kDouble | |
kString | |
kBool | |
kIntegerVector | |
kDoubleVector | |
kStringVector | |
kNumOptionTypes |
Definition at line 64 of file VariableMapCont.h.
VariableMapCont::VariableMapCont | ( | ) |
Definition at line 21 of file VariableMapCont.cc.
void VariableMapCont::_checkKey | ( | std::string & | key, |
const std::string & | description = "" |
||
) |
Definition at line 59 of file VariableMapCont.cc.
References dtNoiseDBValidation_cfg::cerr, idDealer::description, and combine::key.
|
protected |
Definition at line 284 of file VariableMapCont.cc.
References dtNoiseDBValidation_cfg::cerr, and getDQMSummary::iter.
Referenced by optutl::CommandLineParser::_setVariableFromString().
void optutl::VariableMapCont::addOption | ( | std::string | key, |
OptionType | type, | ||
const std::string & | description = "" |
||
) |
Referenced by addVariable(), optutl::CommandLineParser::CommandLineParser(), and main().
void optutl::VariableMapCont::addOption | ( | std::string | key, |
OptionType | type, | ||
const std::string & | description, | ||
int | defaultValue | ||
) |
void optutl::VariableMapCont::addOption | ( | std::string | key, |
OptionType | type, | ||
const std::string & | description, | ||
double | defaultValue | ||
) |
void optutl::VariableMapCont::addOption | ( | std::string | key, |
OptionType | type, | ||
const std::string & | description, | ||
const std::string & | defaultValue | ||
) |
void optutl::VariableMapCont::addOption | ( | std::string | key, |
OptionType | type, | ||
const std::string & | description, | ||
const char * | defaultValue | ||
) |
void optutl::VariableMapCont::addOption | ( | std::string | key, |
OptionType | type, | ||
const std::string & | description, | ||
bool | defaultValue | ||
) |
|
inline |
Definition at line 129 of file VariableMapCont.h.
References addOption().
|
inline |
Definition at line 131 of file VariableMapCont.h.
References addOption().
|
inline |
Definition at line 133 of file VariableMapCont.h.
References addOption().
|
inline |
Definition at line 135 of file VariableMapCont.h.
References addOption().
|
inline |
Definition at line 138 of file VariableMapCont.h.
References addOption().
|
inline |
Definition at line 141 of file VariableMapCont.h.
References addOption().
bool & VariableMapCont::boolValue | ( | std::string | key | ) |
Definition at line 228 of file VariableMapCont.cc.
References dtNoiseDBValidation_cfg::cerr, and getDQMSummary::iter.
Referenced by optutl::CommandLineParser::_finishDefaultOptions(), and fwlite::EventContainer::EventContainer().
double & VariableMapCont::doubleValue | ( | std::string | key | ) |
Definition at line 200 of file VariableMapCont.cc.
References dtNoiseDBValidation_cfg::cerr, and getDQMSummary::iter.
Referenced by main().
VariableMapCont::DVec & VariableMapCont::doubleVector | ( | std::string | key | ) |
Definition at line 256 of file VariableMapCont.cc.
References dtNoiseDBValidation_cfg::cerr, and getDQMSummary::iter.
Referenced by optutl::CommandLineParser::_runVariableCommandFromString().
|
inline |
Definition at line 105 of file VariableMapCont.h.
References hasVariable().
Referenced by optutl::CommandLineParser::_runVariableCommandFromString(), and fwlite::EventContainer::~EventContainer().
VariableMapCont::OptionType VariableMapCont::hasVariable | ( | std::string | key | ) |
Definition at line 26 of file VariableMapCont.cc.
References WDecay::kNone.
Referenced by hasOption().
void optutl::VariableMapCont::help | ( | ) |
int & VariableMapCont::integerValue | ( | std::string | key | ) |
Definition at line 186 of file VariableMapCont.cc.
References dtNoiseDBValidation_cfg::cerr, and getDQMSummary::iter.
Referenced by optutl::CommandLineParser::_finishDefaultOptions(), bookHistograms(), calcSampleName(), fwlite::EventContainer::EventContainer(), and main().
VariableMapCont::IVec & VariableMapCont::integerVector | ( | std::string | key | ) |
Definition at line 242 of file VariableMapCont.cc.
References dtNoiseDBValidation_cfg::cerr, and getDQMSummary::iter.
Referenced by optutl::CommandLineParser::_runVariableCommandFromString().
|
static |
Definition at line 42 of file VariableMapCont.cc.
Referenced by optutl::CommandLineParser::_runVariableCommandFromString(), optutl::CommandLineParser::_setVariableFromString(), and optutl::CommandLineParser::parseArguments().
string & VariableMapCont::stringValue | ( | std::string | key | ) |
Definition at line 214 of file VariableMapCont.cc.
References dtNoiseDBValidation_cfg::cerr, and getDQMSummary::iter.
Referenced by optutl::CommandLineParser::_finishDefaultOptions(), bookHistograms(), calcSampleName(), fwlite::EventContainer::EventContainer(), and main().
VariableMapCont::SVec & VariableMapCont::stringVector | ( | std::string | key | ) |
Definition at line 270 of file VariableMapCont.cc.
References dtNoiseDBValidation_cfg::cerr, and getDQMSummary::iter.
Referenced by optutl::CommandLineParser::_finishDefaultOptions(), optutl::CommandLineParser::_runVariableCommandFromString(), fwlite::EventContainer::EventContainer(), main(), and fwlite::EventContainer::~EventContainer().
|
static |
Definition at line 52 of file VariableMapCont.cc.
|
friend |
|
static |
Definition at line 59 of file VariableMapCont.h.
|
static |
Definition at line 57 of file VariableMapCont.h.
|
static |
Definition at line 56 of file VariableMapCont.h.
|
static |
Definition at line 58 of file VariableMapCont.h.
|
static |
Definition at line 61 of file VariableMapCont.h.
|
static |
Definition at line 60 of file VariableMapCont.h.
|
static |
Definition at line 62 of file VariableMapCont.h.
|
protected |
Definition at line 180 of file VariableMapCont.h.
Referenced by optutl::CommandLineParser::_setVariableFromString(), and optutl::CommandLineParser::printOptionValues().
|
protected |
Definition at line 178 of file VariableMapCont.h.
Referenced by optutl::CommandLineParser::_setVariableFromString(), and optutl::CommandLineParser::printOptionValues().
|
protected |
Definition at line 182 of file VariableMapCont.h.
Referenced by optutl::CommandLineParser::_setVariableFromString(), and optutl::CommandLineParser::printOptionValues().
|
protected |
Definition at line 177 of file VariableMapCont.h.
Referenced by optutl::CommandLineParser::_setVariableFromString(), and optutl::CommandLineParser::printOptionValues().
|
protected |
Definition at line 181 of file VariableMapCont.h.
Referenced by optutl::CommandLineParser::_setVariableFromString(), and optutl::CommandLineParser::printOptionValues().
|
protected |
Definition at line 179 of file VariableMapCont.h.
Referenced by optutl::CommandLineParser::_setVariableFromString(), and optutl::CommandLineParser::printOptionValues().
|
protected |
Definition at line 183 of file VariableMapCont.h.
Referenced by optutl::CommandLineParser::_setVariableFromString(), and optutl::CommandLineParser::printOptionValues().
|
protected |
Definition at line 185 of file VariableMapCont.h.
Referenced by optutl::CommandLineParser::printOptionValues().
|
protected |
Definition at line 184 of file VariableMapCont.h.
Referenced by optutl::CommandLineParser::_setVariableFromString().