3 #if !defined(VariableMapCont_H)
4 #define VariableMapCont_H
21 typedef std::vector< int >
IVec;
22 typedef std::vector< double >
DVec;
23 typedef std::vector< std::string >
SVec;
24 typedef std::map< std::string, int >
SIMap;
25 typedef std::map< std::string, double >
SDMap;
26 typedef std::map< std::string, bool >
SBMap;
27 typedef std::map< std::string, std::string >
SSMap;
28 typedef std::map< std::string, IVec >
SIVecMap;
29 typedef std::map< std::string, DVec >
SDVecMap;
30 typedef std::map< std::string, SVec >
SSVecMap;
81 friend std::ostream&
operator<< (std::ostream& o_stream,
118 double defaultValue);
124 const char *defaultValue);
132 {
addOption (key, type,
"", defaultValue); }
134 {
addOption (key, type,
"", defaultValue); }
137 {
addOption (key, type,
"", defaultValue); }
139 const char *defaultValue)
140 {
addOption (key, type,
"", defaultValue); }
142 {
addOption (key, type,
"", defaultValue); }
164 static char toLower (
char &ch);
190 #endif // VariableMapCont_H
std::map< std::string, double > SDMap
void _checkKey(std::string &key, const std::string &description="")
void addVariable(std::string key, OptionType type, const char *defaultValue)
SIMap::const_iterator SIMapConstIter
static const std::string kDefaultString
SDMap::const_iterator SDMapConstIter
SSMap::iterator SSMapIter
IVec::const_iterator IVecConstIter
SBMap::iterator SBMapIter
std::vector< double > DVec
SIMap::iterator SIMapIter
std::string & stringValue(std::string key)
std::vector< std::string > SVec
SBMap::const_iterator SBMapConstIter
friend std::ostream & operator<<(std::ostream &o_stream, const VariableMapCont &rhs)
SIVecMap::iterator SIVecMapIter
SSVecMap::const_iterator SSVecMapConstIter
double & doubleValue(std::string key)
static const SVec kEmptySVec
int & integerValue(std::string key)
SSMap::const_iterator SSMapConstIter
static char toLower(char &ch)
DVec::const_iterator DVecConstIter
void addVariable(std::string key, OptionType type, bool defaultValue)
SIVecMap::const_iterator SIVecMapConstIter
DVec & doubleVector(std::string key)
SBMap m_variableModifiedMap
static const double kDefaultDouble
void addVariable(std::string key, OptionType type, const std::string &defaultValue)
static void lowercaseString(std::string &arg)
static const bool kDefaultBool
SSVecMap::iterator SSVecMapIter
void addVariable(std::string key, OptionType type)
SDVecMap::iterator SDVecMapIter
std::map< std::string, int > SIMap
std::map< std::string, IVec > SIVecMap
void addVariable(std::string key, OptionType type, double defaultValue)
SSMap m_variableDescriptionMap
static const DVec kEmptyDVec
bool _valueHasBeenModified(const std::string &key)
static const IVec kEmptyIVec
IVec & integerVector(std::string key)
static const int kDefaultInteger
std::map< std::string, SVec > SSVecMap
SVec & stringVector(std::string key)
std::map< std::string, std::string > SSMap
std::map< std::string, DVec > SDVecMap
void addVariable(std::string key, OptionType type, int defaultValue)
bool & boolValue(std::string key)
void addOption(std::string key, OptionType type, const std::string &description="")
OptionType hasVariable(std::string key)
SDMap::iterator SDMapIter
SDVecMap::const_iterator SDVecMapConstIter
std::map< std::string, bool > SBMap
SVec::const_iterator SVecConstIter
OptionType hasOption(std::string key)