1 // Copyright (C) 2006-2023 CEA, EDF
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #include "HXX2SALOME_GENERIC_CLASS_NAME_i.hxx"
21 // HXX2SALOME_CPP_INCLUDE
23 #include "FIELDClient.hxx"
24 #include "MESHClient.hxx"
26 #include "MEDMEM_Support_i.hxx"
27 #include "MEDMEM_Mesh_i.hxx"
28 #include "MEDMEM_FieldTemplate_i.hxx"
29 #include "SenderFactory.hxx"
30 #include "MultiCommException.hxx"
31 #include "ReceiverFactory.hxx"
32 #include "SALOME_Matrix_i.hxx"
33 #include "MatrixClient.hxx"
35 //=============================================================================
37 * standard constructor
39 //=============================================================================
40 HXX2SALOME_GENERIC_CLASS_NAME_i::HXX2SALOME_GENERIC_CLASS_NAME_i(CORBA::ORB_ptr orb,
41 PortableServer::POA_ptr poa,
42 PortableServer::ObjectId * contId,
43 const char *instanceName,
44 const char *interfaceName) :
45 Engines_Component_i(orb, poa, contId, instanceName, interfaceName),cppCompo_(new HXX2SALOME_GENERIC_CLASS_NAME)
47 MESSAGE("activate object");
49 _id = _poa->activate_object(_thisObj);
52 HXX2SALOME_GENERIC_CLASS_NAME_i::~HXX2SALOME_GENERIC_CLASS_NAME_i()
56 // HXX2SALOME_CXX_CODE
61 PortableServer::ObjectId * HXX2SALOME_GENERIC_CLASS_NAMEEngine_factory(
63 PortableServer::POA_ptr poa,
64 PortableServer::ObjectId * contId,
65 const char *instanceName,
66 const char *interfaceName)
68 MESSAGE("PortableServer::ObjectId * HXX2SALOME_GENERIC_CLASS_NAMEEngine_factory()");
69 SCRUTE(interfaceName);
70 HXX2SALOME_GENERIC_CLASS_NAME_i * myHXX2SALOME_GENERIC_CLASS_NAME
71 = new HXX2SALOME_GENERIC_CLASS_NAME_i(orb, poa, contId, instanceName, interfaceName);
72 return myHXX2SALOME_GENERIC_CLASS_NAME->getId() ;