From 39b104f80e89f760246494a8fe4f9aca255932c4 Mon Sep 17 00:00:00 2001 From: asl Date: Fri, 20 Nov 2009 07:50:45 +0000 Subject: [PATCH] default implementation of FindObjectByInternalEntry --- src/Container/Component_i.cxx | 5 +++-- src/Container/SALOME_ComponentPy.py | 5 +++++ src/Container/SALOME_Component_i.hxx | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/Container/Component_i.cxx b/src/Container/Component_i.cxx index e6c194b59..f335e371c 100644 --- a/src/Container/Component_i.cxx +++ b/src/Container/Component_i.cxx @@ -561,9 +561,10 @@ CORBA::Long Engines_Component_i::CpuUsed_impl() * CORBA method: */ //============================================================================= -SALOME::GenericObj_ptr Engines_Component_i::FindObjectByInternalEntry( const char* theEntry ) +SALOME::GenericObj_ptr Engines_Component_i::FindObjectByInternalEntry( CORBA::Long studyId, const char* theEntry ) { - return SALOME::GenericObj_ptr(); + SALOME::GenericObj_var aRes; + return aRes._retn(); } //============================================================================= diff --git a/src/Container/SALOME_ComponentPy.py b/src/Container/SALOME_ComponentPy.py index ca42cc60b..a0aaf62b0 100755 --- a/src/Container/SALOME_ComponentPy.py +++ b/src/Container/SALOME_ComponentPy.py @@ -312,3 +312,8 @@ class SALOME_ComponentPy_i (Engines__POA.Component): def getObjectInfo(self, studyId, entry): return "" + #------------------------------------------------------------------------- + + def FindObjectByInternalEntry( self, studyId, entry ): + return None + diff --git a/src/Container/SALOME_Component_i.hxx b/src/Container/SALOME_Component_i.hxx index 470c607ae..88ce703d8 100644 --- a/src/Container/SALOME_Component_i.hxx +++ b/src/Container/SALOME_Component_i.hxx @@ -115,7 +115,7 @@ public: virtual bool hasObjectInfo() { return false; } virtual char* getObjectInfo(CORBA::Long studyId, const char* entry) { return CORBA::string_dup(""); } - SALOME::GenericObj_ptr FindObjectByInternalEntry( const char* theEntry ); + virtual SALOME::GenericObj_ptr FindObjectByInternalEntry( CORBA::Long studyId, const char* theEntry ); // --- local C++ methods -- 2.39.2