Salome HOME
#29456 [EDF] (2022-T1) Finalization of SSL implementation
authorrnv <rnv@opencascade.com>
Thu, 14 Apr 2022 15:51:08 +0000 (18:51 +0300)
committerrnv <rnv@opencascade.com>
Tue, 19 Apr 2022 08:58:37 +0000 (11:58 +0300)
src/CMakeLists.txt
src/GEOMGUI/GeometryGUI.cxx
src/GEOM_I/CMakeLists.txt
src/GEOM_I/GEOM_Component_Generator.cxx [deleted file]
src/GEOM_I/GEOM_Component_Generator.hxx [deleted file]
src/GEOM_SWIG/CMakeLists.txt
src/GEOM_SWIG/GeomHelper.cxx [deleted file]
src/GEOM_SWIG/GeomHelper.h [deleted file]
src/GEOM_SWIG/GeomHelper.i [deleted file]
src/SalomeSessionless/CMakeLists.txt [deleted file]
src/SalomeSessionless/GEOM_SalomeSessionless.py [deleted file]

index aa3df20c3e15e0bd0a2686e25c0b99ce795de920..5b1b41d7b6da8f1c0ed8996cdca19d4e597aa554 100644 (file)
@@ -25,7 +25,6 @@ SET(SUBDIRS_COMMON
   GEOMImpl GEOM_I GEOMClient GEOM_I_Superv GEOM_SWIG GEOM_PY
   AdvancedEngine
   STLPlugin BREPPlugin STEPPlugin IGESPlugin XAOPlugin Tools
-  SalomeSessionless
   )
 
 ##
index 9f02f82eeb23c4264311979029fe8013afc4e0cc..31bbe17166d21eeee8215a804cab764eef1702c6 100644 (file)
@@ -41,7 +41,6 @@
 #include "GEOMUtils_XmlHandler.hxx"
 #include "GEOMGUI_AnnotationMgr.h"
 #include "GEOMGUI_TextTreeSelector.h"
-#include "GEOM_Component_Generator.hxx"
 
 #include "GEOM_Actor.h"
 
index 35c1e58c2922067f4d558dc036405cb98c6a3348..176e8666255ab646d49a6d85a631c3efe21b97ab 100644 (file)
@@ -82,7 +82,6 @@ SET(GEOMEngine_HEADERS
   GEOM_Gen_No_Session_i.hh
   GEOM_GEOM_I.hxx
   GEOM_wrap.hxx
-  GEOM_Component_Generator.hxx
   )
 # --- sources ---
 
@@ -108,7 +107,6 @@ SET(GEOMEngine_SOURCES
   GEOM_Gen_Session_i.cc
   GEOM_Gen_No_Session_i.cc
   GEOM_DumpPython.cc
-  GEOM_Component_Generator.cxx
   )
 
 # --- rules ---
diff --git a/src/GEOM_I/GEOM_Component_Generator.cxx b/src/GEOM_I/GEOM_Component_Generator.cxx
deleted file mode 100644 (file)
index 3cc5234..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright (C) 2021  CEA/DEN, EDF R&D, OPEN CASCADE
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License, or (at your option) any later version.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-//
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-//
-
-#include "GEOM_Component_Generator.hxx"
-
-#include "GEOM_Gen_No_Session_i.hh"
-#include "SALOME_Container_i.hxx"
-#include "SALOME_KernelServices.hxx"
-
-#include <cstring>
-
-static Engines::EngineComponent_var _unique_compo;
-
-Engines::EngineComponent_var RetrieveGEOMInstance()
-{
-  constexpr char COMPO_NAME[]="GEOM";
-  if (CORBA::is_nil(_unique_compo))
-  {
-    CORBA::ORB_var orb;
-    {
-      int argc(0);
-      orb = CORBA::ORB_init(argc, nullptr);
-    }
-    CORBA::Object_var obj = orb->resolve_initial_references("RootPOA");
-    PortableServer::POA_var poa = PortableServer::POA::_narrow(obj);
-    PortableServer::POAManager_var pman = poa->the_POAManager();
-    CORBA::PolicyList policies;
-    policies.length(0);
-    auto *cont(KERNEL::getContainerSA());
-    PortableServer::ObjectId *conId(cont->getCORBAId());
-    //
-    pman->activate();
-    //
-    GEOM_Gen_No_Session_i *servant = new GEOM_Gen_No_Session_i(orb, poa, conId, "GEOM_inst_2", COMPO_NAME);
-    PortableServer::ObjectId *zeId = servant->getId();
-    CORBA::Object_var zeRef = poa->id_to_reference(*zeId);
-    KERNEL::RegisterCompo(COMPO_NAME,zeRef);
-    _unique_compo = Engines::EngineComponent::_narrow(zeRef);
-  }
-  return _unique_compo;
-}
diff --git a/src/GEOM_I/GEOM_Component_Generator.hxx b/src/GEOM_I/GEOM_Component_Generator.hxx
deleted file mode 100644 (file)
index dc8ecaf..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright (C) 2021  CEA/DEN, EDF R&D, OPEN CASCADE
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License, or (at your option) any later version.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-//
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-//
-
-#pragma once
-
-#include "GEOM_GEOM_I.hxx"
-
-#include "SALOMEconfig.h"
-
-#include CORBA_SERVER_HEADER(GEOM_Gen)
-
-GEOM_I_EXPORT Engines::EngineComponent_var RetrieveGEOMInstance();
index 1cb8aeec3beb7d9db32c9632151b0dcfffa34115..a1a8c96b67b79cbd00683801e26461028f26d840 100644 (file)
@@ -17,8 +17,6 @@
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-include(${SWIG_USE_FILE})
-
 include_directories(
   ${PROJECT_BINARY_DIR}/idl
   ${PROJECT_SOURCE_DIR}/src/GEOMUtils
@@ -132,26 +130,6 @@ SET(_shared_SCRIPTS
 
 # additional preprocessor / compiler flags
 ADD_DEFINITIONS(${OMNIORB_DEFINITIONS}  )
-SET(GeomHelper_HEADERS GeomHelper.h GeomHelper.i)
-SET(GeomHelper_SOURCES GeomHelper.cxx ${GeomHelper_HEADERS})
-SET_SOURCE_FILES_PROPERTIES(GeomHelper.i PROPERTIES CPLUSPLUS ON)
-SET_SOURCE_FILES_PROPERTIES(GeomHelper.i PROPERTIES SWIG_FLAGS "-py3")
-SET_SOURCE_FILES_PROPERTIES(GeomHelper_wrap.cpp PROPERTIES COMPILE_FLAGS "-DHAVE_CONFIG_H")
-SET(_swig_SCRIPTS ${CMAKE_CURRENT_BINARY_DIR}/GeomHelper.py )
-IF(${CMAKE_VERSION} VERSION_LESS "3.8.0") 
-  SWIG_ADD_MODULE(GeomHelper python ${GeomHelper_SOURCES})
-ELSE()
-  SWIG_ADD_LIBRARY(GeomHelper LANGUAGE python SOURCES ${GeomHelper_SOURCES})
-ENDIF()
-SWIG_LINK_LIBRARIES(GeomHelper ${PYTHON_LIBRARIES} ${PLATFORM_LIBS} GEOMEngine ${KERNEL_SalomeKernelHelpers} ${KERNEL_SalomeDS} )
-SWIG_CHECK_GENERATION(GeomHelper)
-IF(WIN32)
-  SET_TARGET_PROPERTIES(_GeomHelper PROPERTIES DEBUG_OUTPUT_NAME _GeomHelper_d)
-ENDIF(WIN32)
-install(TARGETS _GeomHelper DESTINATION ${SALOME_INSTALL_LIBS})
-install(FILES ${GeomHelper_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
-SALOME_INSTALL_SCRIPTS("${_swig_SCRIPTS}"  ${SALOME_INSTALL_BINS} EXTRA_DPYS "${SWIG_MODULE_GeomHelper_REAL_NAME}")
-
 # --- rules ---
 
 SALOME_INSTALL_SCRIPTS("${_other_SCRIPTS}" ${SALOME_INSTALL_SCRIPT_DATA} DEF_PERMS)
diff --git a/src/GEOM_SWIG/GeomHelper.cxx b/src/GEOM_SWIG/GeomHelper.cxx
deleted file mode 100644 (file)
index 9633a00..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (C) 2021  CEA/DEN, EDF R&D, OPEN CASCADE
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License, or (at your option) any later version.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-//
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-//
-
-#include "GeomHelper.h"
-
-#include "SALOME_KernelServices.hxx"
-
-#include "GEOM_Component_Generator.hxx"
-
-std::string BuildGEOMInstance()
-{
-  Engines::EngineComponent_var zeRef = RetrieveGEOMInstance();
-  CORBA::String_var ior = KERNEL::getORB()->object_to_string(zeRef);
-  return std::string(ior.in());
-}
diff --git a/src/GEOM_SWIG/GeomHelper.h b/src/GEOM_SWIG/GeomHelper.h
deleted file mode 100644 (file)
index 09bb194..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-// Copyright (C) 2021  CEA/DEN, EDF R&D, OPEN CASCADE
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License, or (at your option) any later version.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-//
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-//
-
-#include <string>
-
-std::string BuildGEOMInstance();
diff --git a/src/GEOM_SWIG/GeomHelper.i b/src/GEOM_SWIG/GeomHelper.i
deleted file mode 100644 (file)
index 64d70ca..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (C) 2021  CEA/DEN, EDF R&D, OPEN CASCADE
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License, or (at your option) any later version.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-//
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-//
-
-%module GeomHelper
-
-%include "std_string.i"
-
-%inline
-{
-  std::string BuildGEOMInstance();
-}
diff --git a/src/SalomeSessionless/CMakeLists.txt b/src/SalomeSessionless/CMakeLists.txt
deleted file mode 100644 (file)
index d833ddb..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright (C) 2021  CEA/DEN, EDF R&D, OPEN CASCADE
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-#
-# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-#
-
-SET(_bin_SCRIPTS
-  GEOM_SalomeSessionless.py
-)
-
-SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_PYTHON} DEF_PERMS)
diff --git a/src/SalomeSessionless/GEOM_SalomeSessionless.py b/src/SalomeSessionless/GEOM_SalomeSessionless.py
deleted file mode 100644 (file)
index b6f5396..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-#  -*- coding: iso-8859-1 -*-
-# Copyright (C) 2021  CEA/DEN, EDF R&D, OPEN CASCADE
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License, or (at your option) any later version.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
-#
-# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-#
-
-def buildInstance(orb):
-    import GeomHelper
-    geom_ior = GeomHelper.BuildGEOMInstance()
-    import GEOM
-    import CORBA
-    orb=CORBA.ORB_init([''])
-    geom = orb.string_to_object(geom_ior)
-    return geom, orb