22 friend std::ostream &
operator<<(std::ostream &oSt,
24 friend std::istream &
operator>>(std::istream &iSt,
30 std::string
GetValue(
const std::string &key)
const;
31 std::vector<std::string>
GetValueVector(
const std::string &key)
const;
38 std::string value(this->
Param(key));
40 if(value==
"on" || value==
"yes" ||
41 value==
"ON" || value==
"YES" ||
42 value==
"Yes" || value==
"True" ||
43 value==
"1" || value==
"true" ||
44 value==
"TRUE" || value==
".true." ||
55 std::string value(this->
Param(key));
57 std::istringstream Istr(value);
66 std::vector<T> retval;
67 std::string value(this->
Param(key));
69 std::istringstream Istr(value);
72 retval.push_back(tmpval);
77 virtual void SetParameter(
const std::string &key,
const std::string &value)
82 ParamType param(key,value);
83 this->push_back(param);
90 std::ostringstream Ostr;
95 ParamType param(key,Ostr.str());
96 this->push_back(param);
100 virtual int SetValue(
const std::string &key,
const std::string &value){
109 int SetValue(
const std::string &key,
const T &value){
110 std::ostringstream Ostr;
117 param.
Value(Ostr.str());
118 this->push_back(param);
123 int ResetKey(
const std::string &origKey,
const std::string &newKey)
134 std::string
Param(
const std::string &Key)
const;
135 bool IsSet(
const std::string &Key)
const;
util::ParamType * ParamPtr(const std::string &key)
primitive::KeyValuePairObj< std::string, std::string > ParamType
friend std::ostream & operator<<(std::ostream &oSt, const util::Parameters &pv)
virtual void SetParameter(const std::string &key, const std::string &value)
Defines MPI-specific parallel global and program classes.
T GetValue(const std::string &key) const
std::ostream & operator<<(std::ostream &Ostr, const util::ConfigurationObject &cob)
Stream output operator for util::ConfigurationObject.
std::string Param(const std::string &Key) const
std::vector< T > GetValueVector(const std::string &key) const
void SetParameter(const std::string &key, const T &value)
Parameters(const Parameters &inParams)
virtual int SetValue(const std::string &key, const std::string &value)
bool GetFlagValue(const std::string &key) const
std::string GetValue(const std::string &key) const
std::vector< std::string > GetValueVector(const std::string &key) const
int ResetKey(const std::string &origKey, const std::string &newKey)
int SetValue(const std::string &key, const T &value)
friend std::istream & operator>>(std::istream &iSt, util::Parameters &pv)
util::ParamType ParamType
virtual std::ostream & WriteToStream(std::ostream &Os) const
bool IsSet(const std::string &Key) const
virtual std::istream & ReadFromStream(std::istream &Is)