mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0031946: Modeling Data - replace version numbers with enumerations in TopTools and BinTools
Added enumerations BinTools_FormatVersion & TopTools_FormatVersion for more clear version tracking in the code. Added new BinTools::Write() & BRepTools::Write() overloaded functions with version & isWithTriangles parameters. Added new "readbrep"/"writebrep" DRAW commands handling reading and writing of both Binary and ASCII .brep formats and providing arguments to setup writing of triangulation data and of format version. "binrestore" is made an alias to new command "readbrep". "binsave" now is an alias to new "writebrep" saving into binary format by default ("writebrep" writes into ASCII format by default).
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include <TDF_Label.hxx>
|
||||
#include <TDF_TagSource.hxx>
|
||||
#include <TDF_Tool.hxx>
|
||||
#include <TDocStd_FormatVersion.hxx>
|
||||
#include <XmlMDF.hxx>
|
||||
#include <XmlMDF_ADriver.hxx>
|
||||
#include <XmlMDF_ADriverTable.hxx>
|
||||
@@ -107,7 +108,7 @@ Standard_Integer XmlMDF::WriteSubTree
|
||||
// was replaced by TDataXtd_Presentation. Therefore, for old versions
|
||||
// we write old name of the attribute (TPrsStd_AISPresentation).
|
||||
Standard_CString typeName = aDriver->TypeName().ToCString();
|
||||
if (theRelocTable.GetHeaderData()->StorageVersion().IntegerValue() < 8 &&
|
||||
if (theRelocTable.GetHeaderData()->StorageVersion().IntegerValue() < TDocStd_FormatVersion_VERSION_8 &&
|
||||
strcmp(typeName, "TDataXtd_Presentation") == 0)
|
||||
{
|
||||
typeName = "TPrsStd_AISPresentation";
|
||||
|
Reference in New Issue
Block a user