Read the given input file from the zip directly into the given stream (not using a temporary file)
| 720 | // Read the given input file from the zip directly into the given stream (not using a temporary |
| 721 | // file) |
| 722 | void ProjectFile::readInputFileDirect(const std::string& name, std::ostream& str) const |
| 723 | { |
| 724 | zipios::ZipFile project(stdFile); |
| 725 | std::unique_ptr<std::istream> istr(project.getInputStream(name)); |
| 726 | if (istr) { |
| 727 | *istr >> str.rdbuf(); |
| 728 | } |
| 729 | } |
| 730 | |
| 731 | std::string ProjectFile::replaceInputFile(const std::string& name, std::istream& inp) |
| 732 | { |
no test coverage detected