SALOME documentation central

src/DSC/ParallelDSC/Param_Double_Port_uses_i.hxx

00001 //  Copyright (C) 2009  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 //  File   : param_double_port_uses.hxx
00020 //  Author : André RIBES (EDF)
00021 //  Module : KERNEL
00022 
00023 #ifndef _PARAM_DOUBLE_PORT_USES_HXX_
00024 #define _PARAM_DOUBLE_PORT_USES_HXX_
00025 
00026 #include "SALOME_ParamPortsPaCO_Ports_Param_Double_Port_client.hxx"
00027 
00028 #include "ParallelDSC_i.hxx"
00029 #include "PortProperties_i.hxx"
00030 
00031 #include <paco_direct_comScheduling.h>
00032 #include <GaBro.h>
00033 #include <BasicBC.h>
00034 
00035 class Param_Double_Port_uses_i
00036 {
00037   public :
00038     Param_Double_Port_uses_i(Engines_ParallelDSC_i * par_compo, 
00039                     std::string port_name,
00040                     CORBA::ORB_ptr orb);
00041     virtual ~Param_Double_Port_uses_i();
00042 
00043     // Port local init methods
00044     virtual void add_port_to_component();
00045     virtual void start_port();
00046     void configure_port_method_put(int totalNbElt); 
00047 
00048     // Port methods
00049     void put(const Ports::Param_Double_Port::seq_double & param_data);
00050     void get_results(Ports::Param_Double_Port::seq_double_out param_results);
00051 
00052   private :
00053     CORBA::ORB_var _orb;
00054     std::string _port_name;
00055     Engines_ParallelDSC_i * _par_compo;
00056     Ports::Param_Double_Port_var _proxy_port;
00057     PortProperties_i *  _fake_properties;
00058     Ports::PortProperties_var _fake_prop_ref;
00059     Ports::PaCO_Param_Double_Port * _provides_port;
00060 };
00061 #endif
00062