1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +03:00

0024545: Convertation of the generic classes to the non-generic (XmlObjMgt).

In the package "XmlObjMgt" class "XmlObjMgt_Array1" was converted to the non-generic.
And some changes were made in "XmlNaming" package for correct compilation of the application.
This commit is contained in:
dln
2014-01-21 15:59:23 +04:00
committed by bugmaster
parent cb78155f10
commit 3804f298a1
5 changed files with 8 additions and 9 deletions

View File

@@ -33,9 +33,6 @@ is
class NamingDriver;
class Shape1;
class Array1OfShape1 instantiates Array1 from XmlObjMgt
(Shape1 from XmlMNaming);
AddDrivers (aDriverTable : ADriverTable from XmlMDF;
aMessageDriver: MessageDriver from CDM);

View File

@@ -18,7 +18,7 @@
#include <XmlMNaming_NamedShapeDriver.ixx>
#include <XmlObjMgt.hxx>
#include <XmlMNaming_Array1OfShape1.hxx>
#include <XmlObjMgt_Array1.hxx>
#include <XmlMNaming_Shape1.hxx>
#include <TDF_Label.hxx>
@@ -103,8 +103,8 @@ Standard_Boolean XmlMNaming_NamedShapeDriver::Paste
// apres creation Builder qui a mis la version a 1 :
aTarget -> SetVersion (aVersion);
const XmlMNaming_Array1OfShape1 OldPShapes (anElement, ::OldsString());
const XmlMNaming_Array1OfShape1 NewPShapes (anElement, ::NewsString());
const XmlObjMgt_Array1 OldPShapes (anElement, ::OldsString());
const XmlObjMgt_Array1 NewPShapes (anElement, ::NewsString());
if (NewPShapes.Length() == 0 && OldPShapes.Length() == 0)
return Standard_True;
@@ -198,7 +198,7 @@ void XmlMNaming_NamedShapeDriver::Paste (const Handle(TDF_Attribute)& theSource,
}
BRepTools_ShapeSet& aShapeSet = (BRepTools_ShapeSet&) myShapeSet;
XmlMNaming_Array1OfShape1 OldPShapes (1,NbShapes), NewPShapes (1,NbShapes);
XmlObjMgt_Array1 OldPShapes (1,NbShapes), NewPShapes (1,NbShapes);
OldPShapes.CreateArrayElement (theTarget, ::OldsString());
NewPShapes.CreateArrayElement (theTarget, ::NewsString());