32 #ifndef PLANCK_PARAMFILE_H 33 #define PLANCK_PARAMFILE_H 47 typedef std::map<std::string,std::string> params_type;
49 mutable std::set<std::string> read_params;
52 std::string get_valstr(
const std::string &key)
const;
53 bool param_unread (
const std::string &key)
const;
54 void findhelper (
const std::string &key,
const std::string &value,
NDT type,
56 void setParamString (
const std::string &key,
const std::string &value);
63 paramfile (
const std::string &filename,
bool verbose_=
true);
67 paramfile (
const params_type &par,
bool verbose_=
true);
72 { verbose = verbose_; }
85 template<
typename T> T
find (
const std::string &key)
const;
89 template<
typename T> T
find 90 (
const std::string &key,
const T &deflt);
97 template<
typename T>
void setParam (
const std::string &key,
const T &value)
T find(const std::string &key) const
paramfile getParamsFromCmdline(int argc, const char **argv, bool verbose=true)
bool param_present(const std::string &key) const
string dataToString(const T &x)
bool getVerbosity() const
void setVerbosity(bool verbose_)
void setParam(const std::string &key, const T &value)
const params_type & getParams() const