Salome HOME
mergefrom branch BR_V511_PR tag mergeto_trunk_03feb09
[modules/yacs.git] / src / wrappergen / src / HXX2SALOME_GENERIC_CLASS_NAME_SRC / src / HXX2SALOME_GENERIC_CLASS_NAME_I / HXX2SALOME_GENERIC_CLASS_NAME_i.hxx
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 #ifndef __HXX2SALOME_GENERIC_CLASS_NAME_HXX_hxx2salome__
20 #define __HXX2SALOME_GENERIC_CLASS_NAME_HXX_hxx2salome__
21
22 #include <SALOMEconfig.h>
23 #include CORBA_SERVER_HEADER(HXX2SALOME_GENERIC_CLASS_NAME_Gen)
24
25 #ifdef USE_MED
26 #include CORBA_CLIENT_HEADER(MED)
27 #endif
28
29 #include "SALOME_Component_i.hxx"
30 #include "SALOMEMultiComm.hxx"
31 class HXX2SALOME_GENERIC_CLASS_NAME;  // forward declaration
32
33 class HXX2SALOME_GENERIC_CLASS_NAME_i:
34   public POA_HXX2SALOME_GENERIC_CLASS_NAME_ORB::HXX2SALOME_GENERIC_CLASS_NAME_Gen,
35   public Engines_Component_i,
36   public SALOMEMultiComm
37 {
38
39 public:
40     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     virtual ~HXX2SALOME_GENERIC_CLASS_NAME_i();
46
47 //  HXX2SALOME_HXX_CODE
48
49 private:
50     std::auto_ptr<HXX2SALOME_GENERIC_CLASS_NAME> cppCompo_;
51
52 };
53
54
55 extern "C"
56     PortableServer::ObjectId * HXX2SALOME_GENERIC_CLASS_NAMEEngine_factory(
57             CORBA::ORB_ptr orb,
58             PortableServer::POA_ptr poa,
59             PortableServer::ObjectId * contId,
60             const char *instanceName,
61             const char *interfaceName);
62
63
64 #endif