diff --git a/src/3rdParty/salomesmesh/inc/SMESH_IndexedDataMapOfShapeIndexedMapOfShape.hxx b/src/3rdParty/salomesmesh/inc/SMESH_IndexedDataMapOfShapeIndexedMapOfShape.hxx index 64a7f2d70994..ef8e3087a1e4 100644 --- a/src/3rdParty/salomesmesh/inc/SMESH_IndexedDataMapOfShapeIndexedMapOfShape.hxx +++ b/src/3rdParty/salomesmesh/inc/SMESH_IndexedDataMapOfShapeIndexedMapOfShape.hxx @@ -26,12 +26,17 @@ #ifndef SMESH_IndexedMapOfShape_HeaderFile #define SMESH_IndexedMapOfShape_HeaderFile +#include "Standard_Version.hxx" #include "SMESH_SMESH.hxx" #include "SMESHDS_DataMapOfShape.hxx" #ifndef __BORLANDC__ +#if OCC_VERSION_HEX >= 0x060703 +#include +#else #include +#endif #else #include #endif @@ -40,27 +45,42 @@ /// Class SMESH_IndexedMapOfShape -DEFINE_BASECOLLECTION (SMESH_BaseCollectionShape, TopoDS_Shape) +#if OCC_VERSION_HEX >= 0x060703 #ifndef __BORLANDC__ -DEFINE_INDEXEDMAP (SMESH_IndexedMapOfShape, SMESH_BaseCollectionShape, TopoDS_Shape) +typedef NCollection_IndexedMap SMESH_IndexedMapOfShape; #else +DEFINE_BASECOLLECTION (SMESH_BaseCollectionShape, TopoDS_Shape) SMESH_DEFINE_INDEXEDMAP (SMESH_IndexedMapOfShape, SMESH_BaseCollectionShape, TopoDS_Shape) #endif +#else +DEFINE_INDEXEDMAP (SMESH_IndexedMapOfShape, SMESH_BaseCollectionShape, TopoDS_Shape) +#endif -#endif +#endif #ifndef SMESH_IndexedDataMapOfShapeIndexedMapOfShape_HeaderFile #define SMESH_IndexedDataMapOfShapeIndexedMapOfShape_HeaderFile +#if OCC_VERSION_HEX >= 0x060703 +#include +#else #include +#endif /// Class SMESH_IndexedDataMapOfShapeIndexedMapOfShape + +#if OCC_VERSION_HEX >= 0x060703 +typedef NCollection_IndexedDataMap SMESH_IndexedDataMapOfShapeIndexedMapOfShape; +#else +#include +/// Class SMESH_IndexedDataMapOfShapeIndexedMapOfShape DEFINE_BASECOLLECTION (SMESH_BaseCollectionIndexedMapOfShape, SMESH_IndexedMapOfShape) DEFINE_INDEXEDDATAMAP (SMESH_IndexedDataMapOfShapeIndexedMapOfShape, SMESH_BaseCollectionIndexedMapOfShape, TopoDS_Shape, SMESH_IndexedMapOfShape) +#endif #endif diff --git a/src/3rdParty/salomesmesh/inc/SMESH_MeshEditor.hxx b/src/3rdParty/salomesmesh/inc/SMESH_MeshEditor.hxx index 06896059b0e5..9f766cbd5e16 100644 --- a/src/3rdParty/salomesmesh/inc/SMESH_MeshEditor.hxx +++ b/src/3rdParty/salomesmesh/inc/SMESH_MeshEditor.hxx @@ -28,6 +28,8 @@ #ifndef SMESH_MeshEditor_HeaderFile #define SMESH_MeshEditor_HeaderFile +#include "Standard_Version.hxx" + #include "SMESH_SMESH.hxx" #include "SMDS_MeshElement.hxx" diff --git a/src/3rdParty/salomesmesh/inc/SMESH_SequenceOfElemPtr.hxx b/src/3rdParty/salomesmesh/inc/SMESH_SequenceOfElemPtr.hxx index 77c92ad5aa84..a3e1b78d89e4 100644 --- a/src/3rdParty/salomesmesh/inc/SMESH_SequenceOfElemPtr.hxx +++ b/src/3rdParty/salomesmesh/inc/SMESH_SequenceOfElemPtr.hxx @@ -28,13 +28,21 @@ #include "SMESH_SMESH.hxx" +#if OCC_VERSION_HEX >= 0x060703 +#include +#else #include +#endif #include typedef const SMDS_MeshElement* SMDS_MeshElementPtr; +#if OCC_VERSION_HEX >= 0x060703 +typedef NCollection_Sequence SMESH_SequenceOfElemPtr; +#else DEFINE_BASECOLLECTION (SMESH_BaseCollectionElemPtr, SMDS_MeshElementPtr) DEFINE_SEQUENCE (SMESH_SequenceOfElemPtr, SMESH_BaseCollectionElemPtr, SMDS_MeshElementPtr) +#endif #endif diff --git a/src/3rdParty/salomesmesh/inc/SMESH_SequenceOfNode.hxx b/src/3rdParty/salomesmesh/inc/SMESH_SequenceOfNode.hxx index 4eabe0ee61fa..ada6c8b98bf3 100644 --- a/src/3rdParty/salomesmesh/inc/SMESH_SequenceOfNode.hxx +++ b/src/3rdParty/salomesmesh/inc/SMESH_SequenceOfNode.hxx @@ -29,12 +29,19 @@ #include "SMESH_SMESH.hxx" #include +#if OCC_VERSION_HEX >= 0x060703 +#include +#include +#endif typedef const SMDS_MeshNode* SMDS_MeshNodePtr; +#if OCC_VERSION_HEX >= 0x060703 +typedef NCollection_Sequence SMESH_SequenceOfNode; +#else DEFINE_BASECOLLECTION (SMESH_BaseCollectionNodePtr, SMDS_MeshNodePtr) DEFINE_SEQUENCE(SMESH_SequenceOfNode, SMESH_BaseCollectionNodePtr, SMDS_MeshNodePtr) - +#endif #endif diff --git a/src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_Quadrangle_2D.cpp b/src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_Quadrangle_2D.cpp index 79f02d85b747..cfa3a44c98c1 100644 --- a/src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_Quadrangle_2D.cpp +++ b/src/3rdParty/salomesmesh/src/StdMeshers/StdMeshers_Quadrangle_2D.cpp @@ -66,12 +66,17 @@ #ifndef StdMeshers_Array2OfNode_HeaderFile #define StdMeshers_Array2OfNode_HeaderFile typedef const SMDS_MeshNode* SMDS_MeshNodePtr; -DEFINE_BASECOLLECTION (StdMeshers_BaseCollectionNodePtr, SMDS_MeshNodePtr) #ifndef __BORLANDC__ +#if OCC_VERSION_HEX >= 0x060703 +typedef NCollection_Array2 StdMeshers_Array2OfNode; +#else +DEFINE_BASECOLLECTION (StdMeshers_BaseCollectionNodePtr, SMDS_MeshNodePtr) DEFINE_ARRAY2(StdMeshers_Array2OfNode, - StdMeshers_BaseCollectionNodePtr, SMDS_MeshNodePtr) + StdMeshers_BaseCollectionNodePtr, SMDS_MeshNodePtr) +#endif #else +DEFINE_BASECOLLECTION (StdMeshers_BaseCollectionNodePtr, SMDS_MeshNodePtr) SMESH_DEFINE_ARRAY2(StdMeshers_Array2OfNode, StdMeshers_BaseCollectionNodePtr, SMDS_MeshNodePtr) #endif