From: asl Date: Fri, 20 Nov 2009 07:50:45 +0000 (+0000) Subject: default implementation of FindObjectByInternalEntry X-Git-Tag: PHASE_17_Part1_V1~45 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=39b104f80e89f760246494a8fe4f9aca255932c4;p=modules%2Fkernel.git default implementation of FindObjectByInternalEntry --- 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