*/
PyScriptNode createPyScriptNode(in string nodeName, in string code) raises(SALOME::SALOME_Exception);
+ void removePyScriptNode(in string nodeName) raises(SALOME::SALOME_Exception);
+
//! Retrieves the last created PyScriptNode instance with createPyScriptNode.
PyScriptNode getDefaultPyScriptNode(in string nodeName);
}
}
+void Engines_Container_i::removePyScriptNode(const char *nodeName)
+{
+ std::map<std::string,Engines::PyScriptNode_var>::iterator it(_dftPyScriptNode.find(nodeName));
+ if(it==_dftPyScriptNode.end())
+ {
+ std::ostringstream oss; oss << "Engines_Container_i::removePyScriptNode : node \"" << nodeName << "\" is not map !";
+ SALOME::ExceptionStruct es;
+ es.type = SALOME::INTERNAL_ERROR;
+ es.text = oss.str().c_str();
+ throw SALOME::SALOME_Exception(es);
+ }
+ (*it).second->UnRegister();
+ _dftPyScriptNode.erase(it);
+}
+
void Engines_Container_i::cleanAllPyScripts()
{
for(std::map<std::string,Engines::PyNode_var>::iterator it=_dftPyNode.begin();it!=_dftPyNode.end();it++)
Engines::PyNode_ptr createPyNode(const char* nodeName, const char* code);
Engines::PyNode_ptr getDefaultPyNode(const char *nodeName);
Engines::PyScriptNode_ptr createPyScriptNode(const char* nodeName, const char* code);
- void cleanAllPyScripts();
+ void removePyScriptNode(const char *nodeName) override;
+ void cleanAllPyScripts() override;
Engines::PyScriptNode_ptr getDefaultPyScriptNode(const char *nodeName);
// --- local C++ methods