From: szy Date: Wed, 31 Aug 2005 10:10:42 +0000 (+0000) Subject: Windows porting X-Git-Tag: V_3_0_2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d9d247d43db20a8461a97d5c93e04bdb5ef9f842;p=modules%2Fsmesh.git Windows porting --- diff --git a/src/Driver/Driver_Mesh.h b/src/Driver/Driver_Mesh.h index 0bfac0cd8..14ca22fd1 100644 --- a/src/Driver/Driver_Mesh.h +++ b/src/Driver/Driver_Mesh.h @@ -29,7 +29,13 @@ #include -class Driver_Mesh +#if defined WNT && defined WIN32 && defined DRIVER_EXPORTS +#define DRIVER_WNT_EXPORT __declspec( dllexport ) +#else +#define DRIVER_WNT_EXPORT +#endif + +class DRIVER_WNT_EXPORT Driver_Mesh { public: Driver_Mesh(); diff --git a/src/Driver/Driver_SMESHDS_Mesh.h b/src/Driver/Driver_SMESHDS_Mesh.h index b401dbd1c..30e059522 100644 --- a/src/Driver/Driver_SMESHDS_Mesh.h +++ b/src/Driver/Driver_SMESHDS_Mesh.h @@ -24,7 +24,13 @@ class SMESHDS_Mesh; -class Driver_SMESHDS_Mesh: public Driver_Mesh +#if defined WNT && defined WIN32 && defined DRIVER_EXPORTS +#define DRIVER_WNT_EXPORT __declspec( dllexport ) +#else +#define DRIVER_WNT_EXPORT +#endif + +class DRIVER_WNT_EXPORT Driver_SMESHDS_Mesh: public Driver_Mesh { public: Driver_SMESHDS_Mesh(); diff --git a/src/DriverMED/DriverMED_Family.cxx b/src/DriverMED/DriverMED_Family.cxx index 80b343e22..47a923dbd 100644 --- a/src/DriverMED/DriverMED_Family.cxx +++ b/src/DriverMED/DriverMED_Family.cxx @@ -215,7 +215,7 @@ DriverMED_Family::GetFamilyInfo(const MED::PWrapper& theWrapper, ostringstream aStr; aStr << "FAM_" << myId; - set::iterator aGrIter = myGroupNames.begin(); + set::const_iterator aGrIter = myGroupNames.begin(); for (; aGrIter != myGroupNames.end(); aGrIter++) { aStr << "_" << *aGrIter; diff --git a/src/DriverMED/DriverMED_R_SMESHDS_Mesh.cxx b/src/DriverMED/DriverMED_R_SMESHDS_Mesh.cxx index 1a0074604..3777d6554 100644 --- a/src/DriverMED/DriverMED_R_SMESHDS_Mesh.cxx +++ b/src/DriverMED/DriverMED_R_SMESHDS_Mesh.cxx @@ -722,7 +722,7 @@ list DriverMED_R_SMESHDS_Mesh::GetGroupNames() { DriverMED_FamilyPtr aFamily = (*aFamsIter).second; const MED::TStringSet& aGroupNames = aFamily->GetGroupNames(); - set::iterator aGrNamesIter = aGroupNames.begin(); + set::const_iterator aGrNamesIter = aGroupNames.begin(); for (; aGrNamesIter != aGroupNames.end(); aGrNamesIter++) { string aName = *aGrNamesIter; @@ -751,7 +751,7 @@ void DriverMED_R_SMESHDS_Mesh::GetGroup(SMESHDS_Group* theGroup) if (aFamily->MemberOf(aGroupName)) { const set& anElements = aFamily->GetElements(); - set::iterator anElemsIter = anElements.begin(); + set::const_iterator anElemsIter = anElements.begin(); const SMDS_MeshElement * element = 0; for (; anElemsIter != anElements.end(); anElemsIter++) { @@ -777,7 +777,7 @@ void DriverMED_R_SMESHDS_Mesh::GetSubMesh (SMESHDS_SubMesh* theSubMesh, if (aFamily->MemberOf(aName)) { const set& anElements = aFamily->GetElements(); - set::iterator anElemsIter = anElements.begin(); + set::const_iterator anElemsIter = anElements.begin(); if (aFamily->GetType() == SMDSAbs_Node) { for (; anElemsIter != anElements.end(); anElemsIter++) diff --git a/src/DriverMED/DriverMED_W_SMESHDS_Mesh.cxx b/src/DriverMED/DriverMED_W_SMESHDS_Mesh.cxx index 82e134adf..322b5efc1 100644 --- a/src/DriverMED/DriverMED_W_SMESHDS_Mesh.cxx +++ b/src/DriverMED/DriverMED_W_SMESHDS_Mesh.cxx @@ -321,7 +321,7 @@ Driver_Mesh::Status DriverMED_W_SMESHDS_Mesh::Perform() int aFamId = (*aFamsIter)->GetId(); const set& anElems = (*aFamsIter)->GetElements(); - set::iterator anElemsIter = anElems.begin(); + set::const_iterator anElemsIter = anElems.begin(); for (; anElemsIter != anElems.end(); anElemsIter++) { anElemFamMap[*anElemsIter] = aFamId; diff --git a/src/SMDS/SMDS_PolyhedralVolumeOfNodes.hxx b/src/SMDS/SMDS_PolyhedralVolumeOfNodes.hxx index d7cfeeed5..baecaf339 100644 --- a/src/SMDS/SMDS_PolyhedralVolumeOfNodes.hxx +++ b/src/SMDS/SMDS_PolyhedralVolumeOfNodes.hxx @@ -29,7 +29,12 @@ #include "SMDS_VolumeOfNodes.hxx" -class SMDS_PolyhedralVolumeOfNodes:public SMDS_VolumeOfNodes +#if defined WNT && defined WIN32 && defined SMDS_EXPORTS +#define SMDS_WNT_EXPORT __declspec( dllexport ) +#else +#define SMDS_WNT_EXPORT +#endif +class SMDS_WNT_EXPORT SMDS_PolyhedralVolumeOfNodes:public SMDS_VolumeOfNodes { public: SMDS_PolyhedralVolumeOfNodes (std::vector nodes, diff --git a/src/SMESHDS/SMESHDS_Mesh.hxx b/src/SMESHDS/SMESHDS_Mesh.hxx index fdf90a30b..c04053a7c 100644 --- a/src/SMESHDS/SMESHDS_Mesh.hxx +++ b/src/SMESHDS/SMESHDS_Mesh.hxx @@ -64,9 +64,15 @@ namespace gstd = std; #endif +#if defined WNT && defined WIN32 && defined SMESHDS_EXPORTS +#define SMESHDS_WNT_EXPORT __declspec( dllexport ) +#else +#define SMESHDS_WNT_EXPORT +#endif + class SMESHDS_GroupBase; -class SMESHDS_Mesh:public SMDS_Mesh{ +class SMESHDS_WNT_EXPORT SMESHDS_Mesh:public SMDS_Mesh{ public: SMESHDS_Mesh(int MeshID); void ShapeToMesh(const TopoDS_Shape & S); diff --git a/src/SMESHDS/SMESHDS_SubMesh.hxx b/src/SMESHDS/SMESHDS_SubMesh.hxx index 7b202b9a4..ac3cd1c3f 100644 --- a/src/SMESHDS/SMESHDS_SubMesh.hxx +++ b/src/SMESHDS/SMESHDS_SubMesh.hxx @@ -30,7 +30,13 @@ #include "SMDS_Mesh.hxx" #include -class SMESHDS_SubMesh +#if defined WNT && defined WIN32 && defined SMESHDS_EXPORTS +#define SMESHDS_WNT_EXPORT __declspec( dllexport ) +#else +#define SMESHDS_WNT_EXPORT +#endif + +class SMESHDS_WNT_EXPORT SMESHDS_SubMesh { public: