From: jfa Date: Mon, 7 Feb 2005 12:09:07 +0000 (+0000) Subject: PAL7222: Now names of families will contain names of corresponding groups X-Git-Tag: V2_2_0b4~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4101a1ce549537b58451d25379748e1b42c9b87c;p=modules%2Fsmesh.git PAL7222: Now names of families will contain names of corresponding groups --- diff --git a/src/DriverMED/DriverMED_Family.cxx b/src/DriverMED/DriverMED_Family.cxx index 0484569e5..2115c4e8b 100644 --- a/src/DriverMED/DriverMED_Family.cxx +++ b/src/DriverMED/DriverMED_Family.cxx @@ -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::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