Salome HOME
copy tag mergefrom_BR_V0_1_CC_Salome_04oct07
[modules/yacs.git] / src / wrappergen / bin / HXX2SALOME_GENERIC_CLASS_NAME_SRC / src / HXX2SALOME_GENERIC_CLASS_NAME / HXX2SALOME_GENERIC_CLASS_NAME_i.cxx
1 #include "HXX2SALOME_GENERIC_CLASS_NAME_i.hxx"
2 //  HXX2SALOME_CPP_INCLUDE
3 using namespace std;
4 #include "FIELDClient.hxx"
5 #include "MESHClient.hxx"
6 #include <string>
7 #include "MEDMEM_Support_i.hxx"
8 #include "MEDMEM_Mesh_i.hxx"
9 #include "MEDMEM_FieldTemplate_i.hxx"
10 #include "SenderFactory.hxx"
11 #include "MultiCommException.hxx"
12 #include "ReceiverFactory.hxx"
13 #include "SALOME_Matrix_i.hxx"
14 #include "MatrixClient.hxx"
15
16 //=============================================================================
17 /*!
18  *  standard constructor
19  */
20 //=============================================================================
21 HXX2SALOME_GENERIC_CLASS_NAME_i::HXX2SALOME_GENERIC_CLASS_NAME_i(CORBA::ORB_ptr orb,
22         PortableServer::POA_ptr poa,
23         PortableServer::ObjectId * contId, 
24         const char *instanceName, 
25         const char *interfaceName) :
26   Engines_Component_i(orb, poa, contId, instanceName, interfaceName),cppCompo_(new HXX2SALOME_GENERIC_CLASS_NAME)
27 {
28   MESSAGE("activate object");
29   _thisObj = this ;
30   _id = _poa->activate_object(_thisObj);
31 }
32
33 HXX2SALOME_GENERIC_CLASS_NAME_i::~HXX2SALOME_GENERIC_CLASS_NAME_i()
34 {
35 }
36
37 //  HXX2SALOME_CXX_CODE
38
39
40 extern "C"
41 {
42   PortableServer::ObjectId * HXX2SALOME_GENERIC_CLASS_NAMEEngine_factory(
43                                CORBA::ORB_ptr orb,
44                                PortableServer::POA_ptr poa, 
45                                PortableServer::ObjectId * contId,
46                                const char *instanceName, 
47                                const char *interfaceName)
48   {
49     MESSAGE("PortableServer::ObjectId * HXX2SALOME_GENERIC_CLASS_NAMEEngine_factory()");
50     SCRUTE(interfaceName);
51     HXX2SALOME_GENERIC_CLASS_NAME_i * myHXX2SALOME_GENERIC_CLASS_NAME 
52       = new HXX2SALOME_GENERIC_CLASS_NAME_i(orb, poa, contId, instanceName, interfaceName);
53     return myHXX2SALOME_GENERIC_CLASS_NAME->getId() ;
54   }
55 }