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

Method Save

src/Mod/Inspection/App/InspectionFeature.cpp:631–646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

629}
630
631void PropertyDistanceList::Save(Base::Writer& writer) const
632{
633 if (writer.isForceXML()) {
634 writer.Stream() << writer.ind() << "<FloatList count=\"" << getSize() << "\">" << std::endl;
635 writer.incInd();
636 for (int i = 0; i < getSize(); i++) {
637 writer.Stream() << writer.ind() << "<F v=\"" << _lValueList[i] << "\"/>" << std::endl;
638 }
639 writer.decInd();
640 writer.Stream() << writer.ind() << "</FloatList>" << std::endl;
641 }
642 else {
643 writer.Stream() << writer.ind() << "<FloatList file=\"" << writer.addFile(getName(), this)
644 << "\"/>" << std::endl;
645 }
646}
647
648void PropertyDistanceList::Restore(Base::XMLReader& reader)
649{

Callers

nothing calls this directly

Calls 6

isForceXMLMethod · 0.80
incIndMethod · 0.80
decIndMethod · 0.80
getSizeFunction · 0.50
getNameFunction · 0.50
addFileMethod · 0.45

Tested by

no test coverage detected