Salome HOME
Porting to Mandrake 10.1 and new products:
[modules/kernel.git] / src / Communication / ReceiverFactory.hxx
1 #ifndef _RECEIVERFACTORY_HXX_
2 #define _RECEIVERFACTORY_HXX_
3
4 #include <SALOMEconfig.h>
5 #include CORBA_SERVER_HEADER(SALOME_Comm)
6 #include "MultiCommException.hxx"
7
8 /*!
9   This class internally builds a receiver associated with the sender given. It also performs transfert completely and clean up the objects.
10   This is the only class used client side of an array.
11  */
12 class ReceiverFactory
13 {
14 public:
15   static double *getValue(SALOME::SenderDouble_ptr sender,long &size)throw(MultiCommException);
16   static int *getValue(SALOME::SenderInt_ptr sender,long &size)throw(MultiCommException);
17 private:
18   static double *getValueOneShot(SALOME::SenderDouble_ptr sender,long &size)throw(MultiCommException);
19   static int *getValueOneShot(SALOME::SenderInt_ptr sender,long &size)throw(MultiCommException);
20 };
21
22 #endif
23