]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
WIP
authorAnthony Geay <anthony.geay@edf.fr>
Thu, 21 Jan 2021 16:19:35 +0000 (17:19 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Thu, 21 Jan 2021 16:19:35 +0000 (17:19 +0100)
src/SMESH_I/CMakeLists.txt
src/SMESH_I/SMESH_Gen_i.cxx
src/SMESH_I/SMESH_Gen_i.hxx
src/SMESH_SWIG/SMeshHelper.cxx
src/SMESH_SWIG/SMeshHelper.h
src/SMESH_SWIG/SMeshHelper.i

index 762f2d134f044e576678635aa5a3e1ea6fb5898a..cd73e1f09c84a9e76584884edcc32a45db545995 100644 (file)
@@ -90,6 +90,8 @@ SET(_link_LIBRARIES
 # header files / no moc processing
 SET(SMESHEngine_HEADERS
   SMESH_Gen_i.hxx
+  SMESH_Gen_No_Session_i.hxx
+  SMESH_Gen_Session_i.hxx
   SMESH_Algo_i.hxx
   SMESH_0D_Algo_i.hxx
   SMESH_1D_Algo_i.hxx
@@ -117,6 +119,8 @@ SET(SMESHEngine_HEADERS
 SET(SMESHEngine_SOURCES
   SMESH_Gen_i.cxx
   SMESH_Gen_i_1.cxx
+  SMESH_Gen_No_Session_i.cxx
+  SMESH_Gen_Session_i.cxx
   SMESH_PythonDump.cxx
   SMESH_Mesh_i.cxx
   SMESH_subMesh_i.cxx
index 41f5da7ddfd83ed934a18e3767260cf62fd9cde4..6bc1fbddb07dd4b4eea61a4362f3ea406fefa2d7 100644 (file)
@@ -6583,26 +6583,3 @@ std::vector<long> SMESH_Gen_i::_GetInside( SMESH::SMESH_IDSource_ptr meshPart,
   }
   return res;
 }
-
-//=============================================================================
-/*!
- *  SMESHEngine_factory
- *
- *  C factory, accessible with dlsym, after dlopen
- */
-//=============================================================================
-
-extern "C"
-{ SMESH_I_EXPORT
-  PortableServer::ObjectId* SMESHEngine_factory( CORBA::ORB_ptr            orb,
-                                                 PortableServer::POA_ptr   poa,
-                                                 PortableServer::ObjectId* contId,
-                                                 const char*               instanceName,
-                                                 const char*               interfaceName )
-  {
-    if(MYDEBUG) MESSAGE( "PortableServer::ObjectId* SMESHEngine_factory()" );
-    if(MYDEBUG) SCRUTE(interfaceName);
-    SMESH_Gen_i* aSMESHGen = new SMESH_Gen_i(orb, poa, contId, instanceName, interfaceName);
-    return aSMESHGen->getId() ;
-  }
-}
index 8e90074150ddc60e5febca1f9699da7ac5bf766d..866b8c36209fd4f1d3ff992cc305a06c99269177 100644 (file)
@@ -93,9 +93,7 @@ private:
 // ===========================================================
 // SMESH module's engine
 // ==========================================================
-class SMESH_I_EXPORT SMESH_Gen_i:
-  public virtual POA_SMESH::SMESH_Gen,
-  public virtual Engines_Component_i
+class SMESH_I_EXPORT SMESH_Gen_i : public POA_SMESH::SMESH_Gen, public Engines_Component_i
 {
 public:
   // Get last created instance of the class
index 78f24d2d1ea36edf691506da52c39746697024d7..48b910fe3655145f603785fc060ee3512040e09f 100644 (file)
 
 #include "SMeshHelper.h"
 
-#include "SMESH_Gen_i.hxx"
+#include "SMESH_Gen_No_Session_i.hxx"
 #include "SALOME_Container_i.hxx"
 #include "SALOME_KernelServices.hxx"
 
 #include <cstring>
 
-std::string BuildSMESHInstanceInternal(bool checkNS)
+std::string BuildSMESHInstanceInternal()
 {
     CORBA::ORB_var orb;
     { int argc(0); orb = CORBA::ORB_init(argc,nullptr); }
@@ -36,13 +36,13 @@ std::string BuildSMESHInstanceInternal(bool checkNS)
     //
     {
         char *argv[4] = {"Container","FactoryServer","toto",nullptr};
-        Engines_Container_i *cont = new Engines_Container_i(orb,poa,"FactoryServer",2,argv,false,checkNS);
+        Engines_Container_i *cont = new Engines_Container_i(orb,poa,"FactoryServer",2,argv,false,false);
         conId = poa->activate_object(cont);
     }
     //
     pman->activate();
     //
-    SMESH_Gen_i *servant = new SMESH_Gen_i(orb,poa,const_cast<PortableServer::ObjectId*>(&conId.in()),"SMESH_inst_2","SMESH",checkNS);
+    SMESH_Gen_No_Session_i *servant = new SMESH_Gen_No_Session_i(orb,poa,const_cast<PortableServer::ObjectId*>(&conId.in()),"SMESH_inst_2","SMESH");
     PortableServer::ObjectId *zeId = servant->getId();
     CORBA::Object_var zeRef = poa->id_to_reference(*zeId);
     CORBA::String_var ior = orb->object_to_string(zeRef);
index bef5532ca3682633db1713fe908e25c2524937e9..58b2c5321ffc1b024a4b3e064c49c77c3eb1788b 100644 (file)
@@ -21,4 +21,4 @@
 
 #include <string>
 
-std::string BuildSMESHInstanceInternal(bool checkNS);
+std::string BuildSMESHInstanceInternal();
index 8745d96e0e949670205eacdb35b39a1235da7ebc..b73a87db93d123246656a1709710d10c44bd6299 100644 (file)
@@ -27,8 +27,8 @@
 
 %inline
 {
-  std::string BuildSMESHInstance(bool checkNS)
+  std::string BuildSMESHInstance()
   {
-    return BuildSMESHInstanceInternal(checkNS);
+    return BuildSMESHInstanceInternal();
   }
 }