| 301 | } |
| 302 | |
| 303 | void mitk::cl::CLResultXMLWriter::write(const std::string& filePath) const |
| 304 | { |
| 305 | std::ofstream resultFile; |
| 306 | resultFile.open(filePath.c_str()); |
| 307 | if (resultFile.is_open()) |
| 308 | { |
| 309 | this->write(resultFile); |
| 310 | resultFile.close(); |
| 311 | } |
| 312 | else |
| 313 | { |
| 314 | MITK_ERROR << "Cannot write xml results. Unable to open file: \""<<filePath<<"\""; |
| 315 | } |
| 316 | } |
| 317 | |
| 318 | void mitk::cl::CLResultXMLWriter::write(std::ostream& stream) const |
| 319 | { |