import"SALOME_PyNode.idl";
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 | executeSimple (in listofstring key, in listofstring val) raises (SALOME::SALOME_Exception) |
void | executeFirst (in SALOME::SenderByte inargs) raises (SALOME::SALOME_Exception) |
first part of whole execute method. More... | |
SALOME::SenderByteSeq | executeSecond (in listofstring outargsname) raises (SALOME::SALOME_Exception) |
second and last part of execute method. More... | |
pickledArgs | getValueOfVarInContext (in string varName) raises (SALOME::SALOME_Exception) |
void | assignVarInContext (in string varName, in pickledArgs value) raises (SALOME::SALOME_Exception) |
pickledArgs | callMethodOnVarInContext (in string varName, in string methodName, in pickledArgs args) raises (SALOME::SALOME_Exception) |
listofstring | listAllVarsInContext () raises (SALOME::SALOME_Exception) |
void | removeAllVarsInContext () raises (SALOME::SALOME_Exception) |
Container | getContainer () |
string | getCode () |
string | getName () |
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 method 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... | |
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.
codeStr | - the python code (without statement) to be executed, that can modify the context initialized at initialization. |
void Engines::PyScriptNode::assignVarInContext | ( | in string | varName, |
in pickledArgs | value | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
pickledArgs Engines::PyScriptNode::callMethodOnVarInContext | ( | in string | varName, |
in string | methodName, | ||
in pickledArgs | args | ||
) | |||
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.
|
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
outargsname | output argument names |
inargs | input argument values (dict) provided as a python pickle |
Referenced by KERNEL_PY.salome_pynode.SmartPyNode::__getattr__().
|
inherited |
This method 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.
[in] | codeStr | - the python code (without statement) to be executed, that can modify the context initialized at initialization. |
void Engines::PyScriptNode::executeFirst | ( | in SALOME::SenderByte | inargs | ) | |
raises | ( | SALOME::SALOME_Exception | |||
) |
first part of whole execute method.
This split is to reduce the memory peak.
SALOME::SenderByteSeq Engines::PyScriptNode::executeSecond | ( | in listofstring | outargsname | ) | |
raises | ( | SALOME::SALOME_Exception | |||
) |
second and last part of execute method.
This split is to reduce the memory peak.
void Engines::PyScriptNode::executeSimple | ( | in listofstring | key, |
in listofstring | val | ||
) | |||
raises | ( | SALOME::SALOME_Exception | |
) |
|
inherited |
|
inherited |
|
inherited |
Referenced by studyedit.StudyEditor::findItem(), and KERNEL_PY.kernel.studyedit.StudyEditor::findItem().
pickledArgs Engines::PyScriptNode::getValueOfVarInContext | ( | in string | varName | ) | |
raises | ( | SALOME::SALOME_Exception | |||
) |
listofstring Engines::PyScriptNode::listAllVarsInContext | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
Referenced by SALOME_PyNode.PyScriptNode_i::removeAllVarsInContext().
|
inherited |
Increase the reference count (mark as used by another object).
void Engines::PyScriptNode::removeAllVarsInContext | ( | ) | ||
raises | ( | SALOME::SALOME_Exception | ||
) |
Referenced by SALOME_PyNode.PyScriptNode_i::__del__().
|
inherited |
Decrease the reference count (release by another object).
Referenced by SALOME_PyNode.Generic::Destroy().