From 85c1fbcc9f52fc41cab4cb81f4a9f10fd410a368 Mon Sep 17 00:00:00 2001 From: mnt Date: Wed, 22 Jul 2015 16:26:44 +0300 Subject: [PATCH] Add dummy implementation of create_python_service_instance() function, to avoid compilation errors when building parallel extensions --- src/Container/SALOME_ContainerPy.py | 8 +++++++- src/ParallelContainer/SALOME_ParallelContainer_i.cxx | 8 ++++++++ src/ParallelContainer/SALOME_ParallelContainer_i.hxx | 4 ++++ 3 files changed, 19 insertions(+), 1 deletion(-) 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 -- 2.39.2