void PythonNode::assignRemotePyInterpretor(Engines::PyNodeBase_var remoteInterp)
{
+ if(!CORBA::is_nil(_pynode))
+ {
+ Engines::PyScriptNode_var tmpp(Engines::PyScriptNode::_narrow(remoteInterp));
+ if(_pynode->_is_equivalent(tmpp))
+ return ;
+ }
+ if(!CORBA::is_nil(_pynode))
+ _pynode->UnRegister();
_pynode=Engines::PyScriptNode::_narrow(remoteInterp);
}
void PyFuncNode::assignRemotePyInterpretor(Engines::PyNodeBase_var remoteInterp)
{
+ if(!CORBA::is_nil(_pynode))
+ {
+ Engines::PyNode_var tmpp(Engines::PyNode::_narrow(remoteInterp));
+ if(_pynode->_is_equivalent(tmpp))
+ return ;
+ }
+ if(!CORBA::is_nil(_pynode))
+ _pynode->UnRegister();
_pynode=Engines::PyNode::_narrow(remoteInterp);
}
PythonEntry();
~PythonEntry();
virtual void assignRemotePyInterpretor(Engines::PyNodeBase_var remoteInterp) = 0;
+ //! returns (if any) an object, you have to deal with (UnRegister)
virtual Engines::PyNodeBase_var retrieveDftRemotePyInterpretorIfAny(Engines::Container_ptr objContainer) const = 0;
+ //! returns an object, you have to deal with (UnRegister)
virtual void createRemoteAdaptedPyInterpretor(Engines::Container_ptr objContainer) = 0;
virtual Engines::PyNodeBase_var getRemoteInterpreterHandle() = 0;
virtual const char *getSerializationScript() const = 0;