Add SchemaVersion to RestoreDocFile to distinquish double from float binary

This commit is contained in:
jriegel
2013-09-23 13:13:50 +02:00
parent 29c3fa6458
commit 68078487c7
39 changed files with 78 additions and 70 deletions

View File

@@ -261,8 +261,8 @@ void PropertyPartShape::SaveDocFile (Base::Writer &writer) const
const TopoDS_Shape& myShape = copy.Shape();
BRepTools::Clean(myShape); // remove triangulation
// create a temporary file and copy the content to the zip stream
// once the tmp. filename is known use always the same because otherwise
// create a temporary file and copy the content to the zip stream
// once the tmp. filename is known use always the same because otherwise
// we may run into some problems on the Linux platform
static Base::FileInfo fi(Base::FileInfo::getTempFileName());
@@ -304,7 +304,7 @@ void PropertyPartShape::SaveDocFile (Base::Writer &writer) const
fi.deleteFile();
}
void PropertyPartShape::RestoreDocFile(Base::Reader &reader)
void PropertyPartShape::RestoreDocFile(Base::Reader &reader, const int DocumentSchema)
{
BRep_Builder builder;
@@ -397,7 +397,7 @@ void PropertyShapeHistory::SaveDocFile (Base::Writer &writer) const
{
}
void PropertyShapeHistory::RestoreDocFile(Base::Reader &reader)
void PropertyShapeHistory::RestoreDocFile(Base::Reader &reader, const int DocumentSchema)
{
}
@@ -505,7 +505,7 @@ void PropertyFilletEdges::SaveDocFile (Base::Writer &writer) const
}
}
void PropertyFilletEdges::RestoreDocFile(Base::Reader &reader)
void PropertyFilletEdges::RestoreDocFile(Base::Reader &reader, const int DocumentSchema)
{
Base::InputStream str(reader);
uint32_t uCt=0;