Salome HOME
ENV: Windows porting.
[modules/kernel.git] / src / Communication / SenderFactory.hxx
index ce3a0ad9130ab7a0133cc445b22f3047d5f05e90..39edaa3a11f70d6d8322b008f6f5768e1d97216e 100644 (file)
@@ -5,6 +5,12 @@
 #include <SALOMEconfig.h>
 #include CORBA_SERVER_HEADER(SALOME_Comm)
 
+#if defined WNT && defined COMMUNICATION_EXPORTS
+#define COMMUNICATION_EXPORT __declspec( dllexport )
+#else
+#define COMMUNICATION_EXPORT
+#endif
+
 class SALOMEMultiComm;
 
 class SALOME_SenderDouble_i;
@@ -13,7 +19,7 @@ class SALOME_SenderInt_i;
 /*!
   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.
  */
-class SenderFactory
+class COMMUNICATION_EXPORT SenderFactory
 {
 public:
   static SALOME::SenderDouble_ptr buildSender(SALOMEMultiComm &multiCommunicator,const double *tab,long lgr,bool ownTab=false) throw(MultiCommException);