From: eap Date: Fri, 6 May 2005 06:48:11 +0000 (+0000) Subject: Bug IPAL8742. Add comments into generated files of DumpPython X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=11568c1986db981cc53b1072600162e03d284b09;p=modules%2Fgeom.git Bug IPAL8742. Add comments into generated files of DumpPython --- diff --git a/src/GEOM_I/GEOM_DumpPython.cc b/src/GEOM_I/GEOM_DumpPython.cc index 6b9b92e8e..6a3d3ea9b 100644 --- a/src/GEOM_I/GEOM_DumpPython.cc +++ b/src/GEOM_I/GEOM_DumpPython.cc @@ -5,6 +5,7 @@ using namespace std; #include #include #include +#include "SALOMEDSImpl_Study.hxx" //======================================================================= //function : DumpPython @@ -45,8 +46,9 @@ Engines::TMPFile* GEOM_Gen_i::DumpPython(CORBA::Object_ptr theStudy, } } - bool aValidScript; - TCollection_AsciiString aScript = _impl->DumpPython(aStudy->StudyId(), aMap, isPublished, aValidScript); + TCollection_AsciiString aScript = + SALOMEDSImpl_Study::GetDumpStudyComment("GEOM") + "\n\n" + + _impl->DumpPython(aStudy->StudyId(), aMap, isPublished, isValidScript); int aLen = aScript.Length(); unsigned char* aBuffer = new unsigned char[aLen+1]; @@ -54,7 +56,6 @@ Engines::TMPFile* GEOM_Gen_i::DumpPython(CORBA::Object_ptr theStudy, CORBA::Octet* anOctetBuf = (CORBA::Octet*)aBuffer; Engines::TMPFile_var aStreamFile = new Engines::TMPFile(aLen+1, aLen+1, anOctetBuf, 1); - isValidScript = aValidScript; return aStreamFile._retn(); }