remake the position handling on the C++ side

This commit is contained in:
jriegel
2013-07-13 11:54:21 +02:00
parent 125b2f3543
commit cd19d8155c
6 changed files with 67 additions and 50 deletions

View File

@@ -138,23 +138,12 @@ unsigned int PropertyFemMesh::getMemSize (void) const
void PropertyFemMesh::Save (Base::Writer &writer) const
{
if (!writer.isForceXML()) {
//See SaveDocFile(), RestoreDocFile()
writer.Stream() << writer.ind() << "<FemMesh file=\""
<< writer.addFile("FemMesh.unv", this)
<< "\"/>" << std::endl;
}
_FemMesh->Save(writer);
}
void PropertyFemMesh::Restore(Base::XMLReader &reader)
{
reader.readElement("FemMesh");
std::string file (reader.getAttribute("file") );
if (!file.empty()) {
// initate a file read
reader.addFile(file.c_str(),this);
}
_FemMesh->Restore(reader);
}
void PropertyFemMesh::SaveDocFile (Base::Writer &writer) const