| 173 | } |
| 174 | |
| 175 | bool parser::parse_input(std::string filename) |
| 176 | { |
| 177 | std::ifstream ifs(filename); |
| 178 | |
| 179 | if(ifs) |
| 180 | { |
| 181 | ifs >> input_file; |
| 182 | |
| 183 | LOG_S(INFO) << "input-filename: " << filename; |
| 184 | LOG_S(INFO) << "input: " << input_file.dump(2); |
| 185 | } |
| 186 | else |
| 187 | { |
| 188 | LOG_S(ERROR) << "input-filename: " << filename << " does not exists"; |
| 189 | return false; |
| 190 | } |
| 191 | |
| 192 | return true; |
| 193 | } |
| 194 | |
| 195 | bool parser::initialise(nlohmann::json& data) |
| 196 | { |
nothing calls this directly
no outgoing calls
no test coverage detected