1 #ifndef _SENDERFACTORY_HXX_
2 #define _SENDERFACTORY_HXX_
4 #include "MultiCommException.hxx"
5 #include <SALOMEconfig.h>
6 #include CORBA_SERVER_HEADER(SALOME_Comm)
10 class SALOME_SenderDouble_i;
11 class SALOME_SenderInt_i;
14 This class implements the factory pattern of GoF by making a sender by giving an array and a communicator.It completely hides the type of sender from the user.
19 static SALOME::SenderDouble_ptr buildSender(SALOMEMultiComm &multiCommunicator,const double *tab,long lgr,bool ownTab=false) throw(MultiCommException);
20 static SALOME::SenderInt_ptr buildSender(SALOMEMultiComm &multiCommunicator,const int *tab,long lgr,bool ownTab=false) throw(MultiCommException);
21 static SALOME::SenderDouble_ptr buildSender(SALOME::TypeOfCommunication NewType,SALOME_SenderDouble_i *src);
22 static SALOME::SenderInt_ptr buildSender(SALOME::TypeOfCommunication NewType,SALOME_SenderInt_i *src);
27 typedef T SenderVarType;
31 struct mapCppSender<int>
33 typedef SALOME::SenderInt_var SenderVarType;
37 struct mapCppSender<double>
39 typedef SALOME::SenderDouble_var SenderVarType;