]> SALOME platform Git repositories - modules/smesh.git/commit
Salome HOME
0051789: TC7.2.0: NoteBook cannot update study
authoreap <eap@opencascade.com>
Thu, 28 Mar 2013 15:23:34 +0000 (15:23 +0000)
committereap <eap@opencascade.com>
Thu, 28 Mar 2013 15:23:34 +0000 (15:23 +0000)
commitb3cac3834ab0a3659cd2b72eac02913e4c46cab8
treeac45e36f1d1f680d77ff9eac4350911d79caee7a
parent44ce7a32cdd027636249122383b2f655c4fcfb9f
0051789: TC7.2.0: NoteBook cannot update study

Fix approach to storage of NoteBook variables.
Before the fix: names of variables are stored in PythonDump commands
and nothing is stored in the Study.
Problem: after variable removal, the PythonDump script becomes invalid.
Fix: names of variables are stored in the Study, PythonDump commands
store indices of variables within "StringAttribute".

class SMESH_Gen_i {
...
-  void UpdateParameters(/*CORBA::Object_ptr theObject,*/ const char* theParameters);
+  void UpdateParameters(CORBA::Object_ptr theObject, const char* theParameters);

+  const std::vector< int >&  GetLastParamIndices() const;
+  std::vector< std::string > GetAllParameters(const std::string& theObjectEntry) const;
src/SMESH_I/SMESH_DumpPython.cxx
src/SMESH_I/SMESH_Gen_i.hxx
src/SMESH_I/SMESH_Gen_i_1.cxx
src/SMESH_I/SMESH_Hypothesis_i.cxx
src/SMESH_I/SMESH_Mesh_i.cxx
src/SMESH_I/SMESH_NoteBook.cxx
src/SMESH_I/SMESH_NoteBook.hxx