From 32bbb9ed7e673783dc8908f6bc1848f9f3fef908 Mon Sep 17 00:00:00 2001 From: ageay Date: Wed, 13 Apr 2005 12:54:42 +0000 Subject: [PATCH] Improvement PAL8343. Receiver is henceforth a template class. --- src/Communication/Receiver.cxx | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 src/Communication/Receiver.cxx 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); -} - -- 2.39.2