| 229 | } |
| 230 | |
| 231 | void |
| 232 | writeResults( |
| 233 | const ImaginaryContigPaths& supportedPaths, |
| 234 | const ImaginaryContigPaths& unsupportedPaths, |
| 235 | const std::string& commandLine) |
| 236 | { |
| 237 | if (!opt::outputContigsPath.empty()) { |
| 238 | storeContigs(opt::outputContigsPath); |
| 239 | } |
| 240 | |
| 241 | if (!opt::outputGraphPath.empty()) { |
| 242 | storeContigGraph(opt::outputGraphPath, PROGRAM, commandLine); |
| 243 | } |
| 244 | |
| 245 | if (!opt::outputSupportedPathsPath.empty()) { |
| 246 | if (opt::verbose) { |
| 247 | std::cerr << "Writing supported paths to `" << opt::outputSupportedPathsPath << "'..." |
| 248 | << std::endl; |
| 249 | } |
| 250 | std::ofstream outputSupportedPaths(opt::outputSupportedPathsPath); |
| 251 | writePaths(outputSupportedPaths, supportedPaths); |
| 252 | assert(outputSupportedPaths.good()); |
| 253 | outputSupportedPaths.close(); |
| 254 | if (opt::verbose) { |
| 255 | std::cerr << "Supported paths written." << std::endl; |
| 256 | } |
| 257 | } |
| 258 | |
| 259 | if (!opt::outputUnsupportedPathsPath.empty()) { |
| 260 | if (opt::verbose) { |
| 261 | std::cerr << "Writing unsupported paths to `" << opt::outputUnsupportedPathsPath |
| 262 | << "'..." << std::endl; |
| 263 | } |
| 264 | std::ofstream outputUnsupportedPaths(opt::outputUnsupportedPathsPath); |
| 265 | writePaths(outputUnsupportedPaths, unsupportedPaths); |
| 266 | assert(outputUnsupportedPaths.good()); |
| 267 | outputUnsupportedPaths.close(); |
| 268 | if (opt::verbose) { |
| 269 | std::cerr << "Unsupported paths written." << std::endl; |
| 270 | } |
| 271 | } |
| 272 | } |
| 273 | |
| 274 | int |
| 275 | main(int argc, char** argv) |
no test coverage detected