Salome HOME
Issue 0020194: EDF 977 ALL: Get rid of warnings PACKAGE_VERSION already defined
[modules/kernel.git] / src / DSC / ParallelDSC / Param_Double_Port_uses_i.hxx
1 //  Copyright (C) 2009  CEA/DEN, EDF R&D, OPEN CASCADE
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 //  File   : param_double_port_uses.hxx
20 //  Author : AndrĂ© RIBES (EDF)
21 //  Module : KERNEL
22
23 #ifndef _PARAM_DOUBLE_PORT_USES_HXX_
24 #define _PARAM_DOUBLE_PORT_USES_HXX_
25
26 #include "SALOME_ParamPortsPaCO_Ports_Param_Double_Port_client.hxx"
27
28 #include "ParallelDSC_i.hxx"
29 #include "PortProperties_i.hxx"
30
31 #include <paco_direct_comScheduling.h>
32 #include <GaBro.h>
33 #include <BasicBC.h>
34
35 class Param_Double_Port_uses_i
36 {
37   public :
38     Param_Double_Port_uses_i(Engines_ParallelDSC_i * par_compo, 
39                              std::string port_name,
40                              CORBA::ORB_ptr orb);
41     virtual ~Param_Double_Port_uses_i();
42
43     // Port local init methods
44     virtual void add_port_to_component();
45     virtual void start_port();
46     void configure_port_method_put(int totalNbElt); 
47
48     // Port methods
49     void put(const Ports::Param_Double_Port::seq_double & param_data);
50     void get_results(Ports::Param_Double_Port::seq_double_out param_results);
51
52   private :
53     CORBA::ORB_var _orb;
54     std::string _port_name;
55     Engines_ParallelDSC_i * _par_compo;
56     Ports::Param_Double_Port_var _proxy_port;
57     PortProperties_i *  _fake_properties;
58     Ports::PortProperties_var _fake_prop_ref;
59     Ports::PaCO_Param_Double_Port * _provides_port;
60 };
61 #endif
62