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

Method Restore

src/Mod/Fem/App/PropertyPostDataObject.cpp:334–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334void PropertyPostDataObject::Restore(Base::XMLReader& reader)
335{
336 reader.readElement("Data");
337 if (!reader.hasAttribute("file")) {
338 return;
339 }
340
341 std::string file(reader.getAttribute<const char*>("file"));
342 if (!file.empty()) {
343 // initiate a file read
344 reader.addFile(file.c_str(), this);
345 }
346}
347
348void add_to_zip(Base::FileInfo path, int zip_path_idx, zipios::ZipOutputStream& ZipWriter)
349{

Callers

nothing calls this directly

Calls 5

readElementMethod · 0.80
hasAttributeMethod · 0.80
emptyMethod · 0.45
addFileMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected