]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Improvement PAL8343.
authorageay <ageay>
Wed, 13 Apr 2005 12:54:42 +0000 (12:54 +0000)
committerageay <ageay>
Wed, 13 Apr 2005 12:54:42 +0000 (12:54 +0000)
Receiver is henceforth a template class.

src/Communication/Receiver.cxx [deleted file]

diff --git a/src/Communication/Receiver.cxx b/src/Communication/Receiver.cxx
deleted file mode 100644 (file)
index 559f815..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#include "Receiver.hxx"
-#include <string.h>
-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);
-}
-