Salome HOME
mergefrom branch BR_V511_PR tag mergeto_trunk_03feb09
[modules/yacs.git] / src / wrappergen / bin / HXX2SALOME_GENERIC_CLASS_NAME_SRC / src / HXX2SALOME_GENERIC_CLASS_NAME / HXX2SALOME_GENERIC_CLASS_NAME_i.cxx
1 //  Copyright (C) 2006-2008  CEA/DEN, EDF R&D
2 //
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.
7 //
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.
12 //
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
16 //
17 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 #include "HXX2SALOME_GENERIC_CLASS_NAME_i.hxx"
20 //  HXX2SALOME_CPP_INCLUDE
21 using namespace std;
22 #include "FIELDClient.hxx"
23 #include "MESHClient.hxx"
24 #include <string>
25 #include "MEDMEM_Support_i.hxx"
26 #include "MEDMEM_Mesh_i.hxx"
27 #include "MEDMEM_FieldTemplate_i.hxx"
28 #include "SenderFactory.hxx"
29 #include "MultiCommException.hxx"
30 #include "ReceiverFactory.hxx"
31 #include "SALOME_Matrix_i.hxx"
32 #include "MatrixClient.hxx"
33
34 //=============================================================================
35 /*!
36  *  standard constructor
37  */
38 //=============================================================================
39 HXX2SALOME_GENERIC_CLASS_NAME_i::HXX2SALOME_GENERIC_CLASS_NAME_i(CORBA::ORB_ptr orb,
40         PortableServer::POA_ptr poa,
41         PortableServer::ObjectId * contId, 
42         const char *instanceName, 
43         const char *interfaceName) :
44   Engines_Component_i(orb, poa, contId, instanceName, interfaceName),cppCompo_(new HXX2SALOME_GENERIC_CLASS_NAME)
45 {
46   MESSAGE("activate object");
47   _thisObj = this ;
48   _id = _poa->activate_object(_thisObj);
49 }
50
51 HXX2SALOME_GENERIC_CLASS_NAME_i::~HXX2SALOME_GENERIC_CLASS_NAME_i()
52 {
53 }
54
55 //  HXX2SALOME_CXX_CODE
56
57
58 extern "C"
59 {
60   PortableServer::ObjectId * HXX2SALOME_GENERIC_CLASS_NAMEEngine_factory(
61                                CORBA::ORB_ptr orb,
62                                PortableServer::POA_ptr poa, 
63                                PortableServer::ObjectId * contId,
64                                const char *instanceName, 
65                                const char *interfaceName)
66   {
67     MESSAGE("PortableServer::ObjectId * HXX2SALOME_GENERIC_CLASS_NAMEEngine_factory()");
68     SCRUTE(interfaceName);
69     HXX2SALOME_GENERIC_CLASS_NAME_i * myHXX2SALOME_GENERIC_CLASS_NAME 
70       = new HXX2SALOME_GENERIC_CLASS_NAME_i(orb, poa, contId, instanceName, interfaceName);
71     return myHXX2SALOME_GENERIC_CLASS_NAME->getId() ;
72   }
73 }