From: ageay Date: Wed, 13 Apr 2005 12:54:42 +0000 (+0000) Subject: Improvement PAL8343. X-Git-Tag: V2_2_3~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=32bbb9ed7e673783dc8908f6bc1848f9f3fef908;p=modules%2Fkernel.git Improvement PAL8343. Receiver is henceforth a template class. --- diff --git a/src/Communication/Receiver.cxx b/src/Communication/Receiver.cxx deleted file mode 100644 index 559f8158e..000000000 --- a/src/Communication/Receiver.cxx +++ /dev/null @@ -1,26 +0,0 @@ -#include "Receiver.hxx" -#include -using namespace std; - -/*! - return a deep copy of the array contained in the servant. - */ -void *Receiver::getLocalValue(long &size,SALOME_Sender_i* servant) -{ - const void *src=servant->getData(size); - long lgr=size*servant->getSizeOf(); - void *ret=new char[lgr]; - memcpy(ret,src,lgr); - return ret; - //return (void *)servant->getData(size); -} - -void *Receiver::getValue(long &size,SALOME::Sender_ptr sender) -{ - SALOME_Sender_i* data=SALOME_Sender_i::find(sender); - if(data) - return getLocalValue(size,data); - else - return getDistValue(size); -} -