#include <PythonNode.hxx>


Static Public Member Functions | |
| static bool | IsProxy (PyObject *ob) |
| static bool | GetDestroyStatus (PyObject *ob) |
| static void | DoNotTouchFileIfProxy (PyObject *ob) |
| static void | UnlinkOnDestructorIfProxy (PyObject *ob) |
| static void | IfProxyDoSomething (PyObject *ob, const char *meth) |
Static Public Attributes | |
| static const char | SCRIPT_FOR_SIMPLE_SERIALIZATION [] |
Protected Member Functions | |
| PythonEntry () | |
| ~PythonEntry () | |
| virtual void | assignRemotePyInterpretor (Engines::PyNodeBase_var remoteInterp)=0 |
| virtual Engines::PyNodeBase_var | retrieveDftRemotePyInterpretorIfAny (Engines::Container_ptr objContainer) const =0 |
| returns (if any) an object, you have to deal with (UnRegister) More... | |
| virtual void | createRemoteAdaptedPyInterpretor (Engines::Container_ptr objContainer)=0 |
| returns an object, you have to deal with (UnRegister) More... | |
| virtual Engines::PyNodeBase_var | getRemoteInterpreterHandle ()=0 |
| virtual const char * | getSerializationScript () const =0 |
| void | commonRemoteLoad (InlineNode *reqNode) |
| void | loadRemoteContainer (InlineNode *reqNode) |
| Engines::Container_var | loadPythonAdapter (InlineNode *reqNode, bool &isInitializeRequested) |
| void | loadRemoteContext (InlineNode *reqNode, Engines::Container_ptr objContainer, bool isInitializeRequested) |
| virtual bool | hasImposedResource () const |
Static Protected Member Functions | |
| static std::string | GetContainerLog (const std::string &mode, Container *container, const Task *askingTask) |
Protected Attributes | |
| PyObject * | _context |
| PyObject * | _pyfuncSer |
| PyObject * | _pyfuncUnser |
| PyObject * | _pyfuncSimpleSer |
| std::string | _imposedResource |
| std::string | _imposedContainer |
Static Protected Attributes | |
| static PyObject * | _pyClsBigObject = nullptr |
Definition at line 37 of file PythonNode.hxx.
|
protected |
Definition at line 93 of file PythonNode.cxx.
|
protected |
Definition at line 97 of file PythonNode.cxx.
|
protectedpure virtual |
Implemented in YACS::ENGINE::PyFuncNode, and YACS::ENGINE::PythonNode.
Referenced by loadPythonAdapter().
|
protected |
Definition at line 318 of file PythonNode.cxx.
References loadPythonAdapter(), loadRemoteContainer(), and loadRemoteContext().
Referenced by YACS::ENGINE::PythonNode::loadRemote(), and YACS::ENGINE::PyFuncNode::loadRemote().
|
protectedpure virtual |
returns an object, you have to deal with (UnRegister)
Implemented in YACS::ENGINE::PyFuncNode, and YACS::ENGINE::PythonNode.
Referenced by loadPythonAdapter().
|
static |
Definition at line 408 of file PythonNode.cxx.
References IfProxyDoSomething().
Referenced by YACS::ENGINE::convertToYacsObjref< PYTHONImpl, PyObject *, void *, IMPLOUT, TOUT >::convert().
|
staticprotected |
Definition at line 283 of file PythonNode.cxx.
References DEBTRACE, and YACS::ENGINE::SalomeContainer::getContainerPtr().
Referenced by YACS::ENGINE::PythonNode::getContainerLog(), and YACS::ENGINE::PyFuncNode::getContainerLog().
|
static |
return true only if ob is a proxy and destroy flag set to true
Definition at line 355 of file PythonNode.cxx.
References _pyClsBigObject, and yacsorb.CORBAEngineTest::i.
Referenced by YACS::ENGINE::convertToYacsObjref< PYTHONImpl, PyObject *, void *, IMPLOUT, TOUT >::convert().
|
protectedpure virtual |
Implemented in YACS::ENGINE::PyFuncNode, and YACS::ENGINE::PythonNode.
Referenced by loadPythonAdapter(), and loadRemoteContext().
|
protectedpure virtual |
Implemented in YACS::ENGINE::PyFuncNode, and YACS::ENGINE::PythonNode.
Referenced by loadRemoteContext().
|
protectedvirtual |
Reimplemented in YACS::ENGINE::PyFuncNode, and YACS::ENGINE::PythonNode.
Definition at line 326 of file PythonNode.cxx.
References _imposedContainer, and _imposedResource.
Referenced by YACS::ENGINE::PythonNode::hasImposedResource(), YACS::ENGINE::PyFuncNode::hasImposedResource(), and loadRemoteContainer().
|
static |
Definition at line 385 of file PythonNode.cxx.
References _pyClsBigObject, and yacsorb.CORBAEngineTest::i.
Referenced by YACS::ENGINE::convertToYacsObjref< PYTHONImpl, PyObject *, void *, IMPLOUT, TOUT >::convert(), YACS::ENGINE::convertToYacsSequence< PYTHONImpl, PyObject *, void *, IMPLOUT, TOUT >::convert(), DoNotTouchFileIfProxy(), and UnlinkOnDestructorIfProxy().
|
static |
Definition at line 331 of file PythonNode.cxx.
References _pyClsBigObject, and yacsorb.CORBAEngineTest::i.
Referenced by YACS::ENGINE::convertToYacsSequence< PYTHONImpl, PyObject *, void *, IMPLOUT, TOUT >::convert(), and YACS::ENGINE::convertFromYacsObjref< PYTHONImpl, PyObject * >::convert().
|
protected |
Definition at line 165 of file PythonNode.cxx.
References assignRemotePyInterpretor(), createRemoteAdaptedPyInterpretor(), testCppPluginInvokation::ex, GetContainerObj(), getRemoteInterpreterHandle(), retrieveDftRemotePyInterpretorIfAny(), and YACS::ENGINE::Node::setErrorDetails().
Referenced by commonRemoteLoad(), YACS::ENGINE::PythonNode::executeRemote(), and YACS::ENGINE::PyFuncNode::executeRemote().
|
protected |
Definition at line 106 of file PythonNode.cxx.
References _imposedContainer, _imposedResource, DEBTRACE, YACS::ENGINE::InlineNode::getContainer(), YACS::ENGINE::Node::getName(), hasImposedResource(), YACS::ENGINE::Container::isAlreadyStarted(), YACS::ENGINE::Node::setErrorDetails(), YACS::ENGINE::Container::start(), and YACS::Exception::what().
Referenced by commonRemoteLoad().
|
protected |
Definition at line 195 of file PythonNode.cxx.
References _context, _pyClsBigObject, _pyfuncSer, _pyfuncSimpleSer, _pyfuncUnser, data_mutex, DEBTRACE, testCppPluginInvokation::ex, YACS::ENGINE::InlineNode::getContainer(), YACS::ENGINE::Container::getProperty(), getRemoteInterpreterHandle(), getSerializationScript(), YACS::ENGINE::HomogeneousPoolContainer::INITIALIZE_SCRIPT_KEY, YACS::ENGINE::newPyStdOut(), SCRIPT_FOR_BIGOBJECT, SCRIPT_FOR_SIMPLE_SERIALIZATION, and YACS::ENGINE::Node::setErrorDetails().
Referenced by commonRemoteLoad().
|
protectedpure virtual |
returns (if any) an object, you have to deal with (UnRegister)
Implemented in YACS::ENGINE::PyFuncNode, and YACS::ENGINE::PythonNode.
Referenced by loadPythonAdapter().
|
static |
Definition at line 413 of file PythonNode.cxx.
References IfProxyDoSomething().
Referenced by YACS::ENGINE::convertToYacsObjref< PYTHONImpl, PyObject *, void *, IMPLOUT, TOUT >::convert(), YACS::ENGINE::convertToYacsSequence< PYTHONImpl, PyObject *, void *, IMPLOUT, TOUT >::convert(), YACS::ENGINE::convertFromYacsObjref< PYTHONImpl, PyObject * >::convert(), and YACS::ENGINE::PythonNode::executeRemote().
|
protected |
Definition at line 64 of file PythonNode.hxx.
Referenced by YACS::ENGINE::PythonNode::applyDPLScope(), YACS::ENGINE::PythonNode::executeLocal(), YACS::ENGINE::PythonNode::executeLocalInternal(), YACS::ENGINE::PyFuncNode::loadLocal(), loadRemoteContext(), YACS::ENGINE::PyFuncNode::PyFuncNode(), YACS::ENGINE::PythonNode::PythonNode(), YACS::ENGINE::PythonNode::squeezeMemory(), and ~PythonEntry().
|
protected |
Definition at line 70 of file PythonNode.hxx.
Referenced by hasImposedResource(), YACS::ENGINE::PythonNode::imposeResource(), YACS::ENGINE::PyFuncNode::imposeResource(), and loadRemoteContainer().
|
protected |
Definition at line 69 of file PythonNode.hxx.
Referenced by hasImposedResource(), YACS::ENGINE::PythonNode::imposeResource(), YACS::ENGINE::PyFuncNode::imposeResource(), and loadRemoteContainer().
|
staticprotected |
Definition at line 68 of file PythonNode.hxx.
Referenced by GetDestroyStatus(), IfProxyDoSomething(), IsProxy(), and loadRemoteContext().
|
protected |
Definition at line 65 of file PythonNode.hxx.
Referenced by YACS::ENGINE::PythonNode::executeRemote(), YACS::ENGINE::PyFuncNode::executeRemote(), and loadRemoteContext().
|
protected |
Definition at line 67 of file PythonNode.hxx.
Referenced by YACS::ENGINE::PythonNode::applyDPLScope(), and loadRemoteContext().
|
protected |
Definition at line 66 of file PythonNode.hxx.
Referenced by YACS::ENGINE::PythonNode::executeRemote(), YACS::ENGINE::PyFuncNode::executeRemote(), and loadRemoteContext().
|
static |
Definition at line 72 of file PythonNode.hxx.
Referenced by loadRemoteContext().