1 // Copyright (C) 2009 CEA/DEN, EDF R&D, OPEN CASCADE
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 // File : param_double_port_uses.hxx
20 // Author : André RIBES (EDF)
23 #ifndef _PARAM_DOUBLE_PORT_USES_HXX_
24 #define _PARAM_DOUBLE_PORT_USES_HXX_
26 #include "SALOME_ParamPortsPaCO_Ports_Param_Double_Port_client.hxx"
28 #include "ParallelDSC_i.hxx"
29 #include "PortProperties_i.hxx"
31 #include <paco_direct_comScheduling.h>
35 class Param_Double_Port_uses_i
38 Param_Double_Port_uses_i(Engines_ParallelDSC_i * par_compo,
39 std::string port_name,
41 virtual ~Param_Double_Port_uses_i();
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);
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);
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;