549 const vector<string> types = conf.
Vec<
string>(
"type");
551 Warn(
"No types defined.");
555 for (
auto it=types.begin(); it!=types.end(); it++)
561 Error(
"Type "+*it+
" defined twice.");
566 if (conf.
HasDef(
"max-wait.", *it))
567 c.fCounterMax = conf.
GetDef<
int>(
"max-wait.", *it);
570 Error(
"Neither max-wait.default nor max-wait."+*it+
" found.");
573 if (conf.
HasDef(
"resolution.", *it))
574 c.fResolution = conf.
GetDef<
double>(
"resolution.", *it);
577 Error(
"Neither resolution.default nor resolution."+*it+
" found.");
std::vector< T > Vec(const std::string &var)
map< string, config > fTypes
T GetDef(const std::string &var, const S &val)
int Error(const std::string &str)
int Warn(const std::string &str)
int Message(const std::string &str)
bool HasDef(const std::string &var, const T &val)