#include "SMESH_PythonDump.hxx"
#include "SMESH_Gen_i.hxx"
#include "SMESH_Filter_i.hxx"
-#include "SALOMEDSImpl_Study.hxx"
#include <TColStd_HSequenceOfInteger.hxx>
#include <TCollection_AsciiString.hxx>
TCollection_AsciiString aSavedTrace (oldValue);
// Add trace of API methods calls and replace study entries by names
+ //TCollection_AsciiString aScript =
+ // SALOMEDSImpl_Study::GetDumpStudyComment("SMESH") + "\n\n" +
+ // DumpPython_impl(aStudy->StudyId(), aMap, aMapNames, isPublished, isValidScript, aSavedTrace);
TCollection_AsciiString aScript =
- SALOMEDSImpl_Study::GetDumpStudyComment("SMESH") + "\n\n" +
- DumpPython_impl(aStudy->StudyId(), aMap, aMapNames, isPublished, isValidScript, aSavedTrace);
+ "### This file is generated by SALOME automatically by dump python functionality of SMESH component\n\n";
+ aScript += DumpPython_impl(aStudy->StudyId(), aMap, aMapNames,
+ isPublished, isValidScript, aSavedTrace);
int aLen = aScript.Length();
unsigned char* aBuffer = new unsigned char[aLen+1];