Salome HOME
0054463: Refactor salome_test.py
[modules/kernel.git] / idl / SALOME_PyNode.idl
index 5faf372ac3ca3438794f0386f38fea947a8ffbb5..19ff0f2cbd5af067d9197ae330a9e8067f758a40 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -41,7 +41,13 @@ module Engines
   interface PyNodeBase : SALOME::GenericObj
   {
     /*!
-    This methode executes the python code in \a codeStr and can append/remove symboles in context to make them available or not for future call of execute on this.
+      This method allows to define a new global var called \a varName. This newly created var will be
+      set to value \a valueOfVar.
+     */
+    void defineNewCustomVar(in string varName, in pickledArgs valueOfVar) raises (SALOME::SALOME_Exception);
+
+    /*!
+    This method executes the python code in \a codeStr and can append/remove symboles in context to make them available or not for future call of execute on this.
     \param [in] codeStr - the python code (without statement) to be executed, that can modify the context initialized at initialization.
      */
     void executeAnotherPieceOfCode(in string codeStr) raises (SALOME::SALOME_Exception);