Version: 8.3.0
Param_Double_Port_uses_i.hxx
Go to the documentation of this file.
1 // Copyright (C) 2007-2016 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, or (at your option) any later version.
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 
20 // File : param_double_port_uses.hxx
21 // Author : AndrĂ© RIBES (EDF)
22 // Module : KERNEL
23 //
24 #ifndef _PARAM_DOUBLE_PORT_USES_HXX_
25 #define _PARAM_DOUBLE_PORT_USES_HXX_
26 
27 #include "SALOME_ParamPortsPaCO_Ports_Param_Double_Port_client.hxx"
28 
29 #include "ParallelDSC_i.hxx"
30 #include "PortProperties_i.hxx"
31 
32 #include <paco_direct_comScheduling.h>
33 #include <GaBro.h>
34 #include <BasicBC.h>
35 
37 {
38  public :
40  std::string port_name,
41  CORBA::ORB_ptr orb);
42  virtual ~Param_Double_Port_uses_i();
43 
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);
48 
49  // Port methods
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);
52 
53  private :
54  CORBA::ORB_var _orb;
55  std::string _port_name;
57  Ports::Param_Double_Port_var _proxy_port;
59  Ports::PortProperties_var _fake_prop_ref;
60  Ports::PaCO_Param_Double_Port * _provides_port;
61 };
62 #endif
63