]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL7222: Now names of families will contain names of corresponding groups
authorjfa <jfa@opencascade.com>
Mon, 7 Feb 2005 12:09:07 +0000 (12:09 +0000)
committerjfa <jfa@opencascade.com>
Mon, 7 Feb 2005 12:09:07 +0000 (12:09 +0000)
src/DriverMED/DriverMED_Family.cxx

index 0484569e5eda857d51dd3690aec74f0157e7102d..2115c4e8bfce0eac2672f2c86d89deae9442c4a8 100644 (file)
@@ -211,9 +211,18 @@ DriverMED_Family::GetFamilyInfo(const MED::PWrapper& theWrapper,
                                const MED::PMeshInfo& theMeshInfo) const
 {
   string aValue;
+
   ostringstream aStr;
-  aStr << myId;
+
+  aStr << "FAM_" << myId;
+  set<string>::iterator aGrIter = myGroupNames.begin();
+  for (; aGrIter != myGroupNames.end(); aGrIter++)
+  {
+    aStr << "_" << *aGrIter;
+  }
+
   aValue = aStr.str();
+
   MED::TStringVector anAttrDescs (1, "");  // 1 attribute with empty description,
   MED::TIntVector anAttrIds (1, myId);        // Id=0,
   MED::TIntVector anAttrVals (1, myId);       // Value=0