]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
ENV: Windows porting.
authorenv <env@opencascade.com>
Fri, 9 Sep 2005 05:09:15 +0000 (05:09 +0000)
committerenv <env@opencascade.com>
Fri, 9 Sep 2005 05:09:15 +0000 (05:09 +0000)
src/Communication/MultiCommException.hxx
src/Communication/SALOMEMultiComm.hxx
src/Communication/SenderFactory.hxx
src/Container/SALOME_Container.cxx

index fe029fc4a17832dd4f56ef280c4d7dee8a448362..6313ab5e43e23c3cb3742a43e96f71d516f7884a 100644 (file)
@@ -3,8 +3,13 @@
 
 #include <string>
 
+#if defined WNT && defined COMMUNICATION_EXPORTS
+#define COMMUNICATION_EXPORT __declspec( dllexport )
+#else
+#define COMMUNICATION_EXPORT
+#endif
 
-class MultiCommException {
+class COMMUNICATION_EXPORT MultiCommException {
 private:
   std::string _message;
 public:
index 2537dc042b3b3487a62faac8e399d8cd790e4fc8..8c46251af175d281086b2f61a15b52349bbe47bb 100644 (file)
@@ -4,11 +4,17 @@
 #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 is designed to ease the use of multi communication.\n
   Simply inherite from it your servant class you want to emit data with senders.
  */
-class SALOMEMultiComm : public virtual POA_SALOME::MultiCommClass {
+class COMMUNICATION_EXPORT SALOMEMultiComm : public virtual POA_SALOME::MultiCommClass {
 protected:
   SALOME::TypeOfCommunication _type;
 public:
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);
index 451523f2902e1dea52a051489a5e76240ae591b1..02a870587f48b4af845e72a527eb1b32c44b44ff 100644 (file)
@@ -105,9 +105,11 @@ int main(int argc, char* argv[])
       PortableServer::POAManager_var pman = root_poa->the_POAManager();
 
       // add new container to the kill list
+#ifndef WNT
       char aCommand[40];
       sprintf(aCommand, "addToKillList.py %d SALOME_Container", getpid());
       system(aCommand);
+#endif
       
       Engines_Container_i * myContainer 
        = new Engines_Container_i(orb, root_poa, containerName , argc , argv );