]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Porting on CCRT.
authorageay <ageay>
Fri, 26 Nov 2004 12:52:56 +0000 (12:52 +0000)
committerageay <ageay>
Fri, 26 Nov 2004 12:52:56 +0000 (12:52 +0000)
src/Communication/SALOME_Comm_i.cxx
src/Communication/SALOME_Comm_i.hxx
src/HDFPersist/HDFconvert.cc
src/Loader/Makefile.in
src/MPIContainer/Makefile.in
src/ModuleCatalog/Makefile.in
src/SALOMEDS/SALOMEDS_AttributeGraphic_i.cxx
src/SALOMEDS/SALOMEDS_SObject_i.cxx
src/SALOMEDS/SALOMEDS_SObject_i.hxx
src/SALOMEDS/SALOMEDS_StudyManager_i.cxx

index 49dd14a17ab99595f22fe2126764196417e31221..c9b677a84e3799283bda51ebd517c15c32d85b7d 100644 (file)
@@ -256,6 +256,10 @@ void SALOME_MPISender_i::close(const SALOME::MPISender::param& p)
 
 #ifdef HAVE_SOCKET
 
+//CCRT porting
+#define _POSIX_PII_SOCKET
+#define _LIBC_POLLUTION_H_
+
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
@@ -481,4 +485,8 @@ void SALOME_SocketSender_i::endOfCom()
   delete [] _argsForThr;
 }
 
+//CCRT porting
+#undef _LIBC_POLLUTION_H_
+#undef _POSIX_PII_SOCKET
+
 #endif
index 3fac77789e636a97bcef40e58331b090f4b21afa..7b6e8df4376315ae862cfe1980f361ea10df7150 100644 (file)
@@ -1,7 +1,6 @@
 #ifndef _SALOME_COMM_I_HXX_
 #define _SALOME_COMM_I_HXX_
 
-#include <set.h>
 #include <string>
 #include <SALOMEconfig.h>
 #include CORBA_SERVER_HEADER(SALOME_Comm)
@@ -59,7 +58,7 @@ class SALOME_CorbaDoubleCSender_i : public POA_SALOME::CorbaDoubleCSender,
                                    public SALOME_Sender_i
 {
 public:
-  SALOME_CorbaDoubleCSender_i(const double *tabToSend,const long lgrTabToSend);
+  SALOME_CorbaDoubleCSender_i(const double *tabToSend,long lgrTabToSend);
   ~SALOME_CorbaDoubleCSender_i();
   CORBA::ULong getSize();
   SALOME::vectorOfDouble* sendPart(CORBA::ULong offset, CORBA::ULong length);
@@ -71,7 +70,7 @@ class SALOME_CorbaLongNCSender_i : public POA_SALOME::CorbaLongNCSender,
                                   public SALOME_Sender_i
 {
 public:
-  SALOME_CorbaLongNCSender_i(const int *tabToSend,const long lgrTabToSend);
+  SALOME_CorbaLongNCSender_i(const int *tabToSend,long lgrTabToSend);
   ~SALOME_CorbaLongNCSender_i();
   CORBA::ULong getSize();
   SALOME::vectorOfLong* sendPart(CORBA::ULong offset, CORBA::ULong length);
index 434c666dae6eb03e459030873d0e07aa46c2d383..0249c933ae5a763c30b2bdcf2be8095746a40d7f 100644 (file)
@@ -68,7 +68,7 @@ int HDFConvert::FromAscii(const string& file, const HDFcontainerObject & hdf_con
 #endif
   
   // Creation du Dataset utilisateur 
-  hdf_dataset = new HDFdataset::HDFdataset( (char *) nomdataset.c_str(),            /*discard const */
+  hdf_dataset = new HDFdataset( (char *) nomdataset.c_str(),            /*discard const */
                                             (HDFcontainerObject*) &hdf_container,   /*discard const, pas de constructeur par référence */
                                             HDF_STRING,
                                             &length_long,1);
index 6caf10e2c80688243d23a00bb47eb7974dab3400..972c503b66a45b9d9762329874e57a4c26277bf2 100644 (file)
@@ -27,7 +27,7 @@ BIN_CLIENT_IDL = SALOME_Session.idl \
                 SALOME_Component.idl \
                 SALOME_ModuleCatalog.idl \
                 SALOME_Registry.idl \
-                 SALOME_Exception.idl
+                 SALOME_Exception.idl Logger.idl
 
 CPPFLAGS+=$(QT_MT_INCLUDES)
 CXXFLAGS+=$(OCC_CXXFLAGS)
index ae1ab27576ec7b96f4762f798d63a8fc210c321e..d01e24df8a59ed576221496df095023136301356 100644 (file)
@@ -44,6 +44,7 @@ EXPORT_HEADERS = \
 
 LIB = libSalomeMPIContainer.la 
 LIB_SRC = MPIObject_i.cxx  MPIContainer_i.cxx
+LIB_CLIENT_IDL = SALOME_Component.idl
 LIB_SERVER_IDL = SALOME_MPIObject.idl SALOME_MPIContainer.idl
 
 # Executables targets
index e6b0cc72d2418666e640a4da818b51a5177628fb..3d9a203c89d273b94246c2667f4e94149d7e7cf6 100644 (file)
@@ -51,13 +51,14 @@ LIB_SRC = \
                  SALOME_ModuleCatalog_impl.cxx \
                  SALOME_ModuleCatalog_Acomponent_impl.cxx
 
-CXXFLAGS+=-ftemplate-depth-32
+CXXFLAGS+=@CXXTMPDPTHFLAGS@
 
 # Executables targets
 # trouble we have client and serveur and build don't known about this with rule
 # in fact client is a test ! So it may go away BIN !
 BIN = SALOME_ModuleCatalog_Server SALOME_ModuleCatalog_Client
 BIN_SRC = 
+LIB_CLIENT_IDL = SALOME_ModuleCatalog.idl
 BIN_SERVER_IDL = SALOME_ModuleCatalog.idl
 
 CPPFLAGS+= $(QT_MT_INCLUDES) 
index f7610ae9aa44c0ee92f422778cd01e858ec8576c..3ac440514862fbf9b4d83908dfec2c7ccf2afbf3 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
 #include "SALOMEDS_AttributeGraphic_i.hxx"
 #include "SALOMEDS_SObject_i.hxx"
 
+using namespace std;
 
 /*
   Class       : SALOMEDS_AttributeGraphic_i
index 04478d1deb0a47f7357450e349b5f91760f9b14f..00e37cfad17527ac8821206c5fe8a5e2b2ecc0af 100644 (file)
@@ -192,7 +192,7 @@ CORBA::Boolean SALOMEDS_SObject_i::ReferencedObject(SALOMEDS::SObject_out obj)
  *  Purpose  : 
  */
 //============================================================================
-CORBA::Boolean SALOMEDS_SObject_i::FindSubObject(long atag, SALOMEDS::SObject_out obj)
+CORBA::Boolean SALOMEDS_SObject_i::FindSubObject(CORBA::Long atag, SALOMEDS::SObject_out obj)
 {
   TDF_Label L = _lab.FindChild(atag,false);
   if (L.IsNull()) return false;
index 67ab9d9ba006b6ccff516fc3bf90de5486a25e94..1b6a29060bd7568815cd7c78997fa537494ac2c9 100644 (file)
@@ -73,7 +73,7 @@ public:
   virtual SALOMEDS::SObject_ptr    GetFather() ;
   virtual CORBA::Boolean FindAttribute(SALOMEDS::GenericAttribute_out anAttribute, const char* aTypeOfAttribute);
   virtual CORBA::Boolean ReferencedObject(SALOMEDS::SObject_out obj) ;
-  virtual CORBA::Boolean FindSubObject(long atag, SALOMEDS::SObject_out obj );
+  virtual CORBA::Boolean FindSubObject(CORBA::Long atag, SALOMEDS::SObject_out obj );
 
   virtual SALOMEDS::Study_ptr    GetStudy() ;
   virtual char* Name();
index 71033bb231804b2a6c4455836c63f34c0c313449..4e2e56a67b185a9ed760dbb49b33958cbe670496 100644 (file)
@@ -327,7 +327,8 @@ SALOMEDS::Study_ptr  SALOMEDS_StudyManager_i::Open(const char* aUrl)
 //        MESSAGE( "HDFexception ! " );
 //        cerr << "HDFexception ! " << endl;
       delete aHDFUrl;
-      char eStr[strlen(aUrl)+17];
+//       char eStr[strlen(aUrl)+17];
+      char *eStr = new char[strlen(aUrl)+17+1];
       sprintf(eStr,"Can't open file %s",aUrl);
       THROW_SALOME_CORBA_EXCEPTION(CORBA::string_dup(eStr),SALOME::BAD_PARAM);
       
@@ -375,7 +376,7 @@ SALOMEDS::Study_ptr  SALOMEDS_StudyManager_i::Open(const char* aUrl)
 //        MESSAGE( "HDFexception ! " );
 //        cerr << "HDFexception ! " << endl;
       delete aHDFUrl;
-      char eStr[strlen(aUrl)+17];
+      char *eStr=new char[strlen(aUrl)+17];
       sprintf(eStr,"Can't open file %s",aUrl);
       THROW_SALOME_CORBA_EXCEPTION(CORBA::string_dup(eStr),SALOME::BAD_PARAM);
     }