|
@ -120,10 +120,10 @@ int main(int argc, char* argv[]) { |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|
if(!parsingBackground && !parsingStateRewards) { |
|
|
if(!parsingBackground && !parsingStateRewards) { |
|
|
std::cout << "Reading :\t" << line << "\n"; |
|
|
|
|
|
|
|
|
// std::cout << "Reading :\t" << line << "\n";
|
|
|
content += line + "\n"; |
|
|
content += line + "\n"; |
|
|
} else if (parsingBackground) { |
|
|
} else if (parsingBackground) { |
|
|
std::cout << "Background:\t" << line << "\n"; |
|
|
|
|
|
|
|
|
// std::cout << "Background:\t" << line << "\n";
|
|
|
background += line + "\n"; |
|
|
background += line + "\n"; |
|
|
} else if(parsingStateRewards) { |
|
|
} else if(parsingStateRewards) { |
|
|
rewards += line + "\n"; |
|
|
rewards += line + "\n"; |
|
@ -154,10 +154,6 @@ int main(int argc, char* argv[]) { |
|
|
configurations = parser.parseConfiguration(); |
|
|
configurations = parser.parseConfiguration(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
for (auto& config : configurations) { |
|
|
|
|
|
std::cout << config << std::endl; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
boost::escaped_list_separator<char> seps('\\', ';', '\n'); |
|
|
boost::escaped_list_separator<char> seps('\\', ';', '\n'); |
|
|
Tokenizer csvParser(rewards, seps); |
|
|
Tokenizer csvParser(rewards, seps); |
|
|
for(auto iter = csvParser.begin(); iter != csvParser.end(); ++iter) { |
|
|
for(auto iter = csvParser.begin(); iter != csvParser.end(); ++iter) { |
|
|