1 // Copyright (C) 2007-2013 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
20 // File : param_double_port_uses.hxx
21 // Author : André RIBES (EDF)
24 #ifndef _PARAM_DOUBLE_PORT_USES_HXX_
25 #define _PARAM_DOUBLE_PORT_USES_HXX_
27 #include "SALOME_ParamPortsPaCO_Ports_Param_Double_Port_client.hxx"
29 #include "ParallelDSC_i.hxx"
30 #include "PortProperties_i.hxx"
32 #include <paco_direct_comScheduling.h>
36 class Param_Double_Port_uses_i
39 Param_Double_Port_uses_i(Engines_ParallelDSC_i * par_compo,
40 std::string port_name,
42 virtual ~Param_Double_Port_uses_i();
44 // Port local init methods
45 virtual void add_port_to_component();
46 virtual void start_port();
47 void configure_port_method_put(int totalNbElt);
50 void put(const Ports::Param_Double_Port::seq_double & param_data);
51 void get_results(Ports::Param_Double_Port::seq_double_out param_results);
55 std::string _port_name;
56 Engines_ParallelDSC_i * _par_compo;
57 Ports::Param_Double_Port_var _proxy_port;
58 PortProperties_i * _fake_properties;
59 Ports::PortProperties_var _fake_prop_ref;
60 Ports::PaCO_Param_Double_Port * _provides_port;