1 // SUPERV Supervision : contains the implementation of interfaces of SuperVision described in SUPERV.idl
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : Link_Impl.hxx
25 // Author : Jean Rahuel
29 #ifndef _LINK_IMPL_HXX_
30 #define _LINK_IMPL_HXX_
36 #include <SALOMEconfig.h>
37 #include "SALOME_Component_i.hxx"
38 #include "SALOME_LifeCycleCORBA.hxx"
40 #include "Value_Impl.hxx"
41 #include "Port_Impl.hxx"
43 #include "DataFlowEditor_DataFlow.hxx"
45 class Link_Impl : public POA_SUPERV::Link ,
46 public Engines_Component_i {
50 PortableServer::POA_ptr _Poa ;
51 PortableServer::ObjectId * _ContId ;
53 GraphEditor::DataFlow * _DataFlowEditor ;
54 GraphEditor::InNode * _DataFlowNode ;
55 char * _DataFlowNodeName ;
56 char * _InputParameterName ;
57 GraphEditor::InNode * _DataFlowOutNode ;
58 char * _DataFlowOutNodeName ;
59 char * _OutputParameterName ;
63 Link_Impl( CORBA::ORB_ptr orb ,
64 PortableServer::POA_ptr poa ,
65 PortableServer::ObjectId * contId ,
66 const char *instanceName ,
67 const char *interfaceName ,
68 GraphEditor::DataFlow * DataFlowEditor ,
69 GraphEditor::InNode * DataFlowNode ,
70 const char *InputParameterName ,
71 GraphEditor::InNode * DataFlowOutNode ,
72 const char *OutputParameterName ,
75 virtual ~Link_Impl() ;
76 virtual void destroy() ;
77 virtual bool Delete() ;
79 SUPERV::Port_ptr OutPort() ;
80 SUPERV::Port_ptr InPort() ;
82 virtual GraphBase::SLink * Info() ;
84 virtual long CoordsSize() ;
85 virtual bool AddCoord( const long index ,
88 virtual bool ChangeCoord( const long index ,
91 virtual bool RemoveCoord( const long index ) ;
92 virtual bool Coords( const long index , long & X , long & Y ) ;