Version: 9.12.0
SALOME_PyNode.idl
Go to the documentation of this file.
1 // Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 
20 // File : SALOME_PyNode.idl
21 // Author : Christian CAREMOLI, EDF
22 // $Header:
23 //
24 #ifndef _SALOME_PYNODE_IDL_
25 #define _SALOME_PYNODE_IDL_
26 
27 #include "SALOME_GenericObj.idl"
28 #include "SALOME_Exception.idl"
29 #include "SALOME_Comm.idl"
30 
37 module Engines
38 {
39  typedef sequence<octet> pickledArgs;
40  typedef sequence<string> listofstring;
41  interface Container;
42 
44  {
46 
47  string getCode();
48 
49  string getName();
50 
55  void defineNewCustomVar(in string varName, in pickledArgs valueOfVar) raises (SALOME::SALOME_Exception);
56 
61  void executeAnotherPieceOfCode(in string codeStr) raises (SALOME::SALOME_Exception);
62  };
63 
64  interface PyNode : PyNodeBase
65  {
72  pickledArgs execute(in string functionName, in pickledArgs inargs) raises (SALOME::SALOME_Exception);
73 
74  } ;
75 
77  {
83  void assignNewCompiledCode(in string codeStr) raises (SALOME::SALOME_Exception);
84 
92 
94 
98 
102 
104 
106 
108 
110 
111  void removeAllVarsInContext() raises (SALOME::SALOME_Exception);
112  } ;
113 
114 };
115 
116 #endif
This file contains a set of interfaces used for communication between components.
This file contains the objects defining the main exception used in SALOME application.
interface for common behavior of SALOME transient CORBA objects
Definition: Utils_SALOME_Exception.hxx:66
The main exception in SALOME application.
Definition: SALOME_Exception.idl:71
Interface of the Container.
Definition: SALOME_Component.idl:79
Definition: SALOME_PyNode.idl:44
Container getContainer()
void executeAnotherPieceOfCode(in string codeStr)
This method executes the python code in codeStr and can append/remove symboles in context to make the...
void defineNewCustomVar(in string varName, in pickledArgs valueOfVar)
This method allows to define a new global var called varName.
Definition: SALOME_PyNode.idl:65
pickledArgs execute(in string functionName, in pickledArgs inargs)
execute a python function defined in the node
Definition: SALOME_PyNode.idl:77
void assignVarInContext(in string varName, in pickledArgs value)
void executeFirst(in SALOME::SenderByte inargs)
first part of whole execute method.
void executeSimple(in listofstring key, in listofstring val)
pickledArgs getValueOfVarInContext(in string varName)
pickledArgs callMethodOnVarInContext(in string varName, in string methodName, in pickledArgs args)
SALOME::SenderByteSeq executeSecond(in listofstring outargsname)
second and last part of execute method.
pickledArgs execute(in listofstring outargsname, in pickledArgs inargs)
execute a python script defined in the node
void assignNewCompiledCode(in string codeStr)
This method compiles, but NOT EXECUTE, the code codeStr.
listofstring listAllVarsInContext()
interface for common behavior of SALOME transient CORBA objects
Definition: SALOME_GenericObj.idl:40
Definition: SALOME_Comm.idl:140
This is a package of interfaces used for connecting new components to SALOME application.
Definition: DSC_Engines.idl:36
sequence< octet > pickledArgs
Definition: SALOME_PyNode.idl:39
sequence< string > listofstring
Definition: SALOME_PyNode.idl:40
Module SALOME contains all base interfaces of SALOME Kernel.
Definition: HeatMarcel.hxx:25
sequence< SenderByte > SenderByteSeq
Definition: SALOME_Comm.idl:143
string varName
Definition: TestSalomeSDSHelper0.py:25
args
Definition: pythfilter.py:547