Salome HOME
Updated copyright comment
[modules/homard.git] / src / HOMARD_I / HOMARD_Gen_i_No_Session.cxx
index 3cff48e65634b0c4b450fb3217f58cdb86bb25d1..10e7407ce9642437619fd38d60ed9c519ee86140 100644 (file)
@@ -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
 
 #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;
 }