| 88 | |
| 89 | template<typename WriterT> |
| 90 | void writeRecoverySnapshotContents(const App::Document& doc, WriterT& writer) |
| 91 | { |
| 92 | writer.putNextEntry("Document.xml"); |
| 93 | doc.Save(writer); |
| 94 | |
| 95 | // Special handling for Gui document state. |
| 96 | doc.signalSaveDocument(writer); |
| 97 | writer.writeFiles(); |
| 98 | |
| 99 | if (writer.hasErrors()) { |
| 100 | std::stringstream message; |
| 101 | message << "Failed to write all data to auto-recovery output "; |
| 102 | message << writer.getErrors().front(); |
| 103 | throw Base::FileException(message.str().c_str()); |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | void writeUncompressedRecoverySnapshot(const App::Document& doc, bool saveBinaryBrep) |
| 108 | { |
no test coverage detected