16 std::cerr <<
"[trivialParser] no value for " <<
name <<
" found\n";
23 std::ifstream
input(configFile.c_str());
30 std::string valuestring(linea, linea.find(
'=', 0) + 1, linea.size() - linea.find(
'=', 0) - 1);
32 double value = strtod(valuestring.c_str(),
nullptr);
34 }
while (!
input.eof());
43 getline(
input, singleLine,
'\n');
45 }
while ((singleLine.find(
'#', 0) != std::string::npos || singleLine.find(
'=', 0) == std::string::npos ||
46 singleLine.size() < 3) &&
55 std::cerr <<
"read parameters: " << std::endl;
56 for (std::map<std::string, double>::const_iterator mapIT =
m_config.begin(); mapIT !=
m_config.end(); ++mapIT) {
64 while (
word.find(
' ', 0) != std::string::npos) {