Salome HOME
Update copyrights 2014.
[modules/yacs.git] / src / wrappergen / src / HXX2SALOME_GENERIC_CLASS_NAME_SRC / src / HXX2SALOME_GENERIC_CLASS_NAME_I / HXX2SALOME_GENERIC_CLASS_NAME_i.cxx
1 // Copyright (C) 2006-2014  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, or (at your option) any later version.
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
20 #include "HXX2SALOME_GENERIC_CLASS_NAME_i.hxx"
21 //  HXX2SALOME_CPP_INCLUDE
22 using namespace std;
23 #include <string>
24
25 #ifdef USE_MED
26 #include "FIELDClient.hxx"
27 #include "MESHClient.hxx"
28 #include "MEDMEM_Support_i.hxx"
29 #include "MEDMEM_Mesh_i.hxx"
30 #include "MEDMEM_FieldTemplate_i.hxx"
31 #endif
32
33 #include "SenderFactory.hxx"
34 #include "MultiCommException.hxx"
35 #include "ReceiverFactory.hxx"
36 #include "SALOME_Matrix_i.hxx"
37 #include "MatrixClient.hxx"
38
39 //=============================================================================
40 /*!
41  *  standard constructor
42  */
43 //=============================================================================
44 HXX2SALOME_GENERIC_CLASS_NAME_i::HXX2SALOME_GENERIC_CLASS_NAME_i(CORBA::ORB_ptr orb,
45         PortableServer::POA_ptr poa,
46         PortableServer::ObjectId * contId, 
47         const char *instanceName, 
48         const char *interfaceName) :
49   Engines_Component_i(orb, poa, contId, instanceName, interfaceName),cppCompo_(new HXX2SALOME_GENERIC_CLASS_NAME)
50 {
51   MESSAGE("activate object");
52   _thisObj = this ;
53   _id = _poa->activate_object(_thisObj);
54 }
55
56 HXX2SALOME_GENERIC_CLASS_NAME_i::~HXX2SALOME_GENERIC_CLASS_NAME_i()
57 {
58 }
59
60 //  HXX2SALOME_CXX_CODE
61
62
63 extern "C"
64 {
65   PortableServer::ObjectId * HXX2SALOME_GENERIC_CLASS_NAMEEngine_factory(
66                                CORBA::ORB_ptr orb,
67                                PortableServer::POA_ptr poa, 
68                                PortableServer::ObjectId * contId,
69                                const char *instanceName, 
70                                const char *interfaceName)
71   {
72     MESSAGE("PortableServer::ObjectId * HXX2SALOME_GENERIC_CLASS_NAMEEngine_factory()");
73     SCRUTE(interfaceName);
74     HXX2SALOME_GENERIC_CLASS_NAME_i * myHXX2SALOME_GENERIC_CLASS_NAME 
75       = new HXX2SALOME_GENERIC_CLASS_NAME_i(orb, poa, contId, instanceName, interfaceName);
76     return myHXX2SALOME_GENERIC_CLASS_NAME->getId() ;
77   }
78 }