X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHOMARD_I%2FHOMARD_Gen_i_No_Session.cxx;h=10e7407ce9642437619fd38d60ed9c519ee86140;hb=HEAD;hp=3cff48e65634b0c4b450fb3217f58cdb86bb25d1;hpb=8bf54d9549206989eb05e51092da5938f364f960;p=modules%2Fhomard.git diff --git a/src/HOMARD_I/HOMARD_Gen_i_No_Session.cxx b/src/HOMARD_I/HOMARD_Gen_i_No_Session.cxx index 3cff48e6..10e7407c 100644 --- a/src/HOMARD_I/HOMARD_Gen_i_No_Session.cxx +++ b/src/HOMARD_I/HOMARD_Gen_i_No_Session.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2021 CEA/DEN, EDF R&D +// Copyright (C) 2021-2024 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -19,9 +19,26 @@ #include "HOMARD_Gen_i_No_Session.hxx" #include "SALOMEDS_Study_i.hxx" +#include "SALOME_ModuleCatalog_impl.hxx" +#include "SMESH_Gen_No_Session_i.hxx" HOMARD_Gen_i_No_Session::HOMARD_Gen_i_No_Session( CORBA::ORB_ptr orb, PortableServer::POA_ptr poa, PortableServer::ObjectId* contId, const char* instanceName, const char* interfaceName ): HOMARD_Gen_i(orb,poa,contId,instanceName,interfaceName,false) { myStudy = KERNEL::getStudyServantSA(); + SMESH_Gen_No_Session_i *servant = new SMESH_Gen_No_Session_i(orb,poa,contId,"SMESH_inst_3","SMESH"); + PortableServer::ObjectId *zeId = servant->getId(); + CORBA::Object_var zeRef = poa->id_to_reference(*zeId); + _smesh = SMESH::SMESH_Gen::_narrow(zeRef); +} + +SALOME_ModuleCatalog::ModuleCatalog_var HOMARD_Gen_i_No_Session::getModuleCatalog() const +{ + SALOME_ModuleCatalog::ModuleCatalog_var aCat = KERNEL::getModuleComponentServantSA(); + return aCat; +} + +SMESH::SMESH_Gen_var HOMARD_Gen_i_No_Session::retrieveSMESHInst() const +{ + return _smesh; }