X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FDriverMED%2FDriverMED_Family.h;h=b5fc51f2e36a5155f6b024f4b964537e45315afa;hp=cca2bf0756ee8309b60276bc14556279ff6a9890;hb=e4737e85f0da6d3f90fd08f6be1c2825195fe16f;hpb=51569f091c2d18be76ea9bd3e68ca0247cc731c3 diff --git a/src/DriverMED/DriverMED_Family.h b/src/DriverMED/DriverMED_Family.h index cca2bf075..b5fc51f2e 100644 --- a/src/DriverMED/DriverMED_Family.h +++ b/src/DriverMED/DriverMED_Family.h @@ -29,15 +29,13 @@ #define _INCLUDE_DRIVERMED_FAMILY #include "SMDS_Mesh.hxx" -#include "SMESHDS_Group.hxx" +#include "SMESHDS_GroupBase.hxx" #include "SMESHDS_SubMesh.hxx" #include "MEDA_Wrapper.hxx" #include #include -using namespace std; - #define REST_NODES_FAMILY 1 #define REST_EDGES_FAMILY -1 #define REST_FACES_FAMILY -2 @@ -54,12 +52,12 @@ class DriverMED_Family // Methods for groups storing to MED - static list MakeFamilies (const map & theSubMeshes, - const list& theGroups, - const bool doGroupOfNodes, - const bool doGroupOfEdges, - const bool doGroupOfFaces, - const bool doGroupOfVolumes); + static std::list MakeFamilies (const std::map & theSubMeshes, + const std::list& theGroups, + const bool doGroupOfNodes, + const bool doGroupOfEdges, + const bool doGroupOfFaces, + const bool doGroupOfVolumes); // Split each group from list and each sub-mesh from list // on some parts (families) on the basis of the elements membership in other groups // from and other sub-meshes from . @@ -68,7 +66,7 @@ class DriverMED_Family MEDA::PFamilyInfo GetFamilyInfo (const MEDA::PMeshInfo& theMeshInfo) const; // Create TFamilyInfo for this family - const set& GetElements () const { return myElements; } + const std::set& GetElements () const { return myElements; } // Returns elements of this family int GetId () const { return myId; } @@ -80,22 +78,22 @@ class DriverMED_Family void AddElement (const SMDS_MeshElement* theElement) { myElements.insert(theElement); } - void AddGroupName (string theGroupName) { myGroupNames.insert(theGroupName); } + void AddGroupName (std::string theGroupName) { myGroupNames.insert(theGroupName); } void SetType (const SMDSAbs_ElementType theType) { myType = theType; } SMDSAbs_ElementType GetType () { return myType; } - bool MemberOf (string theGroupName) const + bool MemberOf (std::string theGroupName) const { return (myGroupNames.find(theGroupName) != myGroupNames.end()); } const MED::TStringSet& GetGroupNames () const { return myGroupNames; } private: - void Init (SMESHDS_Group* group); - // Initialize the tool by SMESHDS_Group + void Init (SMESHDS_GroupBase* group); + // Initialize the tool by SMESHDS_GroupBase - static list SplitByType (SMESHDS_SubMesh* theSubMesh, - const int theId); + static std::list SplitByType (SMESHDS_SubMesh* theSubMesh, + const int theId); // Split on some parts (families) // on the basis of the elements type. @@ -114,7 +112,7 @@ class DriverMED_Family private: int myId; SMDSAbs_ElementType myType; - set myElements; + std::set myElements; MED::TStringSet myGroupNames; };