Back to index

salome-kernel  6.5.0
Param_Double_Port_uses_i.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // This library is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU Lesser General Public
00005 // License as published by the Free Software Foundation; either
00006 // version 2.1 of the License.
00007 //
00008 // This library is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 // Lesser General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU Lesser General Public
00014 // License along with this library; if not, write to the Free Software
00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00016 //
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 
00020 //  File   : param_double_port_uses.hxx
00021 //  Author : André RIBES (EDF)
00022 //  Module : KERNEL
00023 //
00024 #ifndef _PARAM_DOUBLE_PORT_USES_HXX_
00025 #define _PARAM_DOUBLE_PORT_USES_HXX_
00026 
00027 #include "SALOME_ParamPortsPaCO_Ports_Param_Double_Port_client.hxx"
00028 
00029 #include "ParallelDSC_i.hxx"
00030 #include "PortProperties_i.hxx"
00031 
00032 #include <paco_direct_comScheduling.h>
00033 #include <GaBro.h>
00034 #include <BasicBC.h>
00035 
00036 class Param_Double_Port_uses_i
00037 {
00038   public :
00039     Param_Double_Port_uses_i(Engines_ParallelDSC_i * par_compo, 
00040                              std::string port_name,
00041                              CORBA::ORB_ptr orb);
00042     virtual ~Param_Double_Port_uses_i();
00043 
00044     // Port local init methods
00045     virtual void add_port_to_component();
00046     virtual void start_port();
00047     void configure_port_method_put(int totalNbElt); 
00048 
00049     // Port methods
00050     void put(const Ports::Param_Double_Port::seq_double & param_data);
00051     void get_results(Ports::Param_Double_Port::seq_double_out param_results);
00052 
00053   private :
00054     CORBA::ORB_var _orb;
00055     std::string _port_name;
00056     Engines_ParallelDSC_i * _par_compo;
00057     Ports::Param_Double_Port_var _proxy_port;
00058     PortProperties_i *  _fake_properties;
00059     Ports::PortProperties_var _fake_prop_ref;
00060     Ports::PaCO_Param_Double_Port * _provides_port;
00061 };
00062 #endif
00063