MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / writeRecoverySnapshotContents

Function writeRecoverySnapshotContents

src/App/RecoverySnapshot.cpp:90–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88
89template<typename WriterT>
90void 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
107void writeUncompressedRecoverySnapshot(const App::Document& doc, bool saveBinaryBrep)
108{

Calls 8

hasErrorsMethod · 0.80
getErrorsMethod · 0.80
putNextEntryMethod · 0.45
SaveMethod · 0.45
writeFilesMethod · 0.45
frontMethod · 0.45
c_strMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected