From: mnt Date: Wed, 22 Jul 2015 13:26:44 +0000 (+0300) Subject: Add dummy implementation of create_python_service_instance() function, to avoid compi... X-Git-Tag: V7_7_0a1~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=85c1fbcc9f52fc41cab4cb81f4a9f10fd410a368;p=modules%2Fkernel.git Add dummy implementation of create_python_service_instance() function, to avoid compilation errors when building parallel extensions --- diff --git a/src/Container/SALOME_ContainerPy.py b/src/Container/SALOME_ContainerPy.py index 4fff36b6d..a6fdfffd0 100755 --- a/src/Container/SALOME_ContainerPy.py +++ b/src/Container/SALOME_ContainerPy.py @@ -245,7 +245,13 @@ class SALOME_ContainerPy_i (Engines__POA.Container): i = i + 1 return anEngine._this() - + + #------------------------------------------------------------------------- + + def create_python_service_instance(self, CompName) + # not implemented + return "", "" + #------------------------------------------------------------------------- def remove_impl(self, component): diff --git a/src/ParallelContainer/SALOME_ParallelContainer_i.cxx b/src/ParallelContainer/SALOME_ParallelContainer_i.cxx index 4812df464..bf2827b98 100644 --- a/src/ParallelContainer/SALOME_ParallelContainer_i.cxx +++ b/src/ParallelContainer/SALOME_ParallelContainer_i.cxx @@ -490,6 +490,14 @@ Engines::EngineComponent_ptr Engines_Parallel_Container_i::find_component_instan return anEngine._retn(); } +char* Engines_Parallel_Container_i::create_python_service_instance(const char* CompName, + CORBA::String_out reason) +{ + // not implemented + reason=CORBA::string_dup(""); + return CORBA::string_dup(""); +} + //============================================================================= //! Find or create a new component instance /*! diff --git a/src/ParallelContainer/SALOME_ParallelContainer_i.hxx b/src/ParallelContainer/SALOME_ParallelContainer_i.hxx index 1aa027034..2e445b9bc 100644 --- a/src/ParallelContainer/SALOME_ParallelContainer_i.hxx +++ b/src/ParallelContainer/SALOME_ParallelContainer_i.hxx @@ -82,6 +82,10 @@ public: const Engines::FieldsDict& env, CORBA::String_out reason); + virtual char* + create_python_service_instance(const char* CompName, + CORBA::String_out reason); + Engines::EngineComponent_ptr find_component_instance( const char* registeredName, CORBA::Long studyId); // 0 for multiStudy