| 14 | #include <parse.h> |
| 15 | |
| 16 | nlohmann::json read_input(std::string filename) |
| 17 | { |
| 18 | nlohmann::json input; |
| 19 | |
| 20 | std::ifstream ifs(filename); |
| 21 | |
| 22 | if(ifs) |
| 23 | { |
| 24 | ifs >> input; |
| 25 | |
| 26 | LOG_S(INFO) << "input-filename: " << filename; |
| 27 | LOG_S(INFO) << "input: " << input.dump(2); |
| 28 | } |
| 29 | else |
| 30 | { |
| 31 | LOG_S(FATAL) << "input-filename: " << filename << " does not exists"; |
| 32 | } |
| 33 | |
| 34 | return input; |
| 35 | } |
| 36 | |
| 37 | int main(int argc, char *argv[]) |
| 38 | { |
nothing calls this directly
no outgoing calls
no test coverage detected