From: Anthony Geay Date: Fri, 25 Sep 2015 06:51:39 +0000 (+0200) Subject: Modification of API. X-Git-Tag: V7_7_0rc1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=89e1677c622aa46799f51828dfe7dace75924e77;p=modules%2Fkernel.git Modification of API. --- diff --git a/idl/SALOME_Component.idl b/idl/SALOME_Component.idl index 9ba53cd97..0edd03005 100644 --- a/idl/SALOME_Component.idl +++ b/idl/SALOME_Component.idl @@ -233,7 +233,7 @@ module Engines PyNode createPyNode(in string nodeName, in string code) raises(SALOME::SALOME_Exception); //! Retrieves the last created PyNode instance with createPyNode. - PyNode getDefaultPyNode(); + PyNode getDefaultPyNode(in string nodeName); //! Create a PyScriptNode in the container /*! @@ -243,7 +243,7 @@ module Engines PyScriptNode createPyScriptNode(in string nodeName, in string code) raises(SALOME::SALOME_Exception); //! Retrieves the last created PyScriptNode instance with createPyScriptNode. - PyScriptNode getDefaultPyScriptNode(); + PyScriptNode getDefaultPyScriptNode(in string nodeName); }; /*! \brief Interface of the %component. diff --git a/src/Container/Container_i.cxx b/src/Container/Container_i.cxx index 18e51ac20..0b8b19116 100644 --- a/src/Container/Container_i.cxx +++ b/src/Container/Container_i.cxx @@ -1706,7 +1706,7 @@ Engines::PyNode_ptr Engines_Container_i::createPyNode(const char* nodeName, cons * */ //============================================================================= -Engines::PyNode_ptr Engines_Container_i::getDefaultPyNode() +Engines::PyNode_ptr Engines_Container_i::getDefaultPyNode(const char *nodeName) { if(!CORBA::is_nil(_dftPyNode)) return Engines::PyNode::_duplicate(_dftPyNode); @@ -1772,7 +1772,7 @@ Engines::PyScriptNode_ptr Engines_Container_i::createPyScriptNode(const char* no * */ //============================================================================= -Engines::PyScriptNode_ptr Engines_Container_i::getDefaultPyScriptNode() +Engines::PyScriptNode_ptr Engines_Container_i::getDefaultPyScriptNode(const char *nodeName) { if(!CORBA::is_nil(_dftPyScriptNode)) return Engines::PyScriptNode::_duplicate(_dftPyScriptNode); diff --git a/src/Container/SALOME_Container_i.hxx b/src/Container/SALOME_Container_i.hxx index 1e437c1c1..83d8f4fe9 100644 --- a/src/Container/SALOME_Container_i.hxx +++ b/src/Container/SALOME_Container_i.hxx @@ -111,9 +111,9 @@ public: virtual Engines::Salome_file_ptr createSalome_file(const char* origFileName); void copyFile(Engines::Container_ptr container, const char* remoteFile, const char* localFile); Engines::PyNode_ptr createPyNode(const char* nodeName, const char* code); - Engines::PyNode_ptr getDefaultPyNode(); + Engines::PyNode_ptr getDefaultPyNode(const char *nodeName); Engines::PyScriptNode_ptr createPyScriptNode(const char* nodeName, const char* code); - Engines::PyScriptNode_ptr getDefaultPyScriptNode(); + Engines::PyScriptNode_ptr getDefaultPyScriptNode(const char *nodeName); // --- local C++ methods Engines::EngineComponent_ptr diff --git a/src/ParallelContainer/SALOME_ParallelContainer_i.cxx b/src/ParallelContainer/SALOME_ParallelContainer_i.cxx index bf2827b98..3b2a492f1 100644 --- a/src/ParallelContainer/SALOME_ParallelContainer_i.cxx +++ b/src/ParallelContainer/SALOME_ParallelContainer_i.cxx @@ -1135,7 +1135,7 @@ Engines_Parallel_Container_i::createPyNode(const char* nodeName, const char* cod return node._retn(); } -Engines::PyNode_ptr Engines_Parallel_Container_i::getDefaultPyNode() +Engines::PyNode_ptr Engines_Parallel_Container_i::getDefaultPyNode(const char *nodeName) { INFOS("Python component not yet implemented"); return Engines::PyNode::_nil(); @@ -1149,7 +1149,7 @@ Engines_Parallel_Container_i::createPyScriptNode(const char* nodeName, const cha return node._retn(); } -Engines::PyScriptNode_ptr Engines_Parallel_Container_i::getDefaultPyScriptNode() +Engines::PyScriptNode_ptr Engines_Parallel_Container_i::getDefaultPyScriptNode(const char *nodeName) { INFOS("Python script node not yet implemented"); return Engines::PyScriptNode::_nil(); diff --git a/src/ParallelContainer/SALOME_ParallelContainer_i.hxx b/src/ParallelContainer/SALOME_ParallelContainer_i.hxx index 2e445b9bc..3087e25cd 100644 --- a/src/ParallelContainer/SALOME_ParallelContainer_i.hxx +++ b/src/ParallelContainer/SALOME_ParallelContainer_i.hxx @@ -142,9 +142,9 @@ public: virtual Engines::Salome_file_ptr createSalome_file(const char* origFileName); void copyFile(Engines::Container_ptr container, const char* remoteFile, const char* localFile); Engines::PyNode_ptr createPyNode(const char* nodeName, const char* code); - Engines::PyNode_ptr getDefaultPyNode(); + Engines::PyNode_ptr getDefaultPyNode(const char *nodeName); Engines::PyScriptNode_ptr createPyScriptNode(const char* nodeName, const char* code); - Engines::PyScriptNode_ptr getDefaultPyScriptNode(); + Engines::PyScriptNode_ptr getDefaultPyScriptNode(const char *nodeName); protected: SALOME_NamingService *_NS;