Version: 8.3.0
Engines::PyScriptNode Interface Reference

import "SALOME_PyNode.idl";

Inheritance diagram for Engines::PyScriptNode:

Public Member Functions

void assignNewCompiledCode (in string codeStr) raises (SALOME::SALOME_Exception)
 This method compiles, but NOT EXECUTE, the code codeStr. More...
 
pickledArgs execute (in listofstring outargsname, in pickledArgs inargs) raises (SALOME::SALOME_Exception)
 execute a python script defined in the node More...
 
void defineNewCustomVar (in string varName, in pickledArgs valueOfVar) raises (SALOME::SALOME_Exception)
 This method allows to define a new global var called varName. More...
 
void executeAnotherPieceOfCode (in string codeStr) raises (SALOME::SALOME_Exception)
 This methode executes the python code in codeStr and can append/remove symboles in context to make them available or not for future call of execute on this. More...
 
void Register ()
 Increase the reference count (mark as used by another object). More...
 
void UnRegister ()
 Decrease the reference count (release by another object). More...
 
void Destroy ()
 Obsolete, left for compatibility reasons only. More...
 

Member Function Documentation

void Engines::PyScriptNode::assignNewCompiledCode ( in string  codeStr) raises (SALOME::SALOME_Exception)

This method compiles, but NOT EXECUTE, the code codeStr.

The result of the compiled code will be used then on execute step.

Parameters
codeStr- the python code (without statement) to be executed, that can modify the context initialized at initialization.
void Engines::PyNodeBase::defineNewCustomVar ( in string  varName,
in pickledArgs  valueOfVar 
) raises (SALOME::SALOME_Exception)
inherited

This method allows to define a new global var called varName.

This newly created var will be set to value valueOfVar.

void SALOME::GenericObj::Destroy ( )
inherited

Obsolete, left for compatibility reasons only.

Use UnRegister() instead.

pickledArgs Engines::PyScriptNode::execute ( in listofstring  outargsname,
in pickledArgs  inargs 
) raises (SALOME::SALOME_Exception)

execute a python script defined in the node

Parameters
outargsnameoutput argument names
inargsinput argument values (dict) provided as a python pickle
Returns
output argument values (tuple) as a python pickle
void Engines::PyNodeBase::executeAnotherPieceOfCode ( in string  codeStr) raises (SALOME::SALOME_Exception)
inherited

This methode executes the python code in codeStr and can append/remove symboles in context to make them available or not for future call of execute on this.

Parameters
[in]codeStr- the python code (without statement) to be executed, that can modify the context initialized at initialization.
void SALOME::GenericObj::Register ( )
inherited

Increase the reference count (mark as used by another object).

void SALOME::GenericObj::UnRegister ( )
inherited

Decrease the reference count (release by another object).