From: vsv Date: Fri, 19 Jun 2020 08:27:02 +0000 (+0300) Subject: Provide selection for dump with wide strings X-Git-Tag: V9_6_0a1~60^2~30 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5d8eb5b379cf17802c04862f02712281bd946863;p=modules%2Fshaper.git Provide selection for dump with wide strings --- diff --git a/src/ModelHighAPI/ModelHighAPI_Dumper.cpp b/src/ModelHighAPI/ModelHighAPI_Dumper.cpp index ea695b89c..fa68ae5ee 100644 --- a/src/ModelHighAPI/ModelHighAPI_Dumper.cpp +++ b/src/ModelHighAPI/ModelHighAPI_Dumper.cpp @@ -314,8 +314,8 @@ void ModelHighAPI_Dumper::DumpStorage::write(const AttributeSelectionPtr& theAtt getShapeAndContext(theAttrSelect, aShape, aContext); if (aShape.get()) { - //TODO: vsv myDumpBuffer << "\"" << aShape->shapeTypeStr() << "\", \"" - // << theAttrSelect->namingName() << "\""; + myDumpBuffer << "\"" << aShape->shapeTypeStr() << "\", \"" + << ModelAPI_Tools::toString(theAttrSelect->namingName()) << "\""; } myDumpBuffer << ")"; @@ -495,8 +495,10 @@ void ModelHighAPI_Dumper::DumpStorageWeak::write(const AttributeSelectionPtr& th GeomAlgoAPI_NExplode aNExplode(aContext->shape(), aShape->shapeType()); int anIndex = aNExplode.index(aShape); if (anIndex != 0) { // found a week-naming index, so, export it - //TODO: vsv myDumpBuffer << "model.selection(\"" << aShape->shapeTypeStr() << "\", \"" - // << theAttrSelect->contextName(aContext) << "\", " << anIndex << ")"; + std::wstring aaa = theAttrSelect->contextName(aContext); + myDumpBuffer << "model.selection(\"" << aShape->shapeTypeStr() << "\", \"" + << ModelAPI_Tools::toString(theAttrSelect->contextName(aContext)) + << "\", " << anIndex << ")"; aStandardDump = false; } }