Salome HOME
PR: mergefrom_BR_GEAY_05Nov04
[modules/kernel.git] / src / Communication / Receiver.hxx
1 #ifndef _RECEIVER_HXX_
2 #define _RECEIVER_HXX_
3
4 #include "SALOME_Comm_i.hxx"
5
6 /*! Abstract class factorizing common methods of all the receivers. All of the receivers have to inheritate from it.
7  */
8 class Receiver
9 {
10 public:
11   virtual void *getValue(long &size)=0;
12   virtual ~Receiver() {}
13 protected:
14   virtual void *getValue(long &size,SALOME::Sender_ptr sender);
15   static inline void *getLocalValue(long &size,SALOME_Sender_i* servant);
16   virtual void *getDistValue(long &size)=0;
17 };
18
19 #endif
20