X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSalomeSessionless%2FHOMARDHelper.cxx;fp=src%2FSalomeSessionless%2FHOMARDHelper.cxx;h=0000000000000000000000000000000000000000;hb=9926b5b155c4267df7d3f40aa85d1689eefd0bf8;hp=187bae24b428e53eacba02472198cec4a8cb492b;hpb=502159940d1fb13e2eefc79ebe7f214c442f2d3c;p=modules%2Fhomard.git diff --git a/src/SalomeSessionless/HOMARDHelper.cxx b/src/SalomeSessionless/HOMARDHelper.cxx deleted file mode 100644 index 187bae24..00000000 --- a/src/SalomeSessionless/HOMARDHelper.cxx +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (C) 2021 CEA/DEN, EDF R&D -// -// 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 "HOMARDHelper.h" - -#include "HOMARD_Gen_i_No_Session.hxx" -#include "SALOME_Container_i.hxx" -#include "SALOME_KernelServices.hxx" - -#include - -std::string BuildHOMARDInstanceInternal() -{ - 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(); - auto *cont(KERNEL::getContainerSA()); - PortableServer::ObjectId *conId(cont->getCORBAId()); - // - pman->activate(); - // - HOMARD_Gen_i_No_Session *servant = new HOMARD_Gen_i_No_Session(orb,poa,conId,"HOMARD_inst_2","HOMARD"); - PortableServer::ObjectId *zeId = servant->getId(); - CORBA::Object_var zeRef = poa->id_to_reference(*zeId); - CORBA::String_var ior = orb->object_to_string(zeRef); - return std::string(ior.in()); -}