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.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // File : GNode_Impl.hxx
23 // Author : Jean Rahuel
26 #ifndef _GNODE_IMPL_HXX_
27 #define _GNODE_IMPL_HXX_
29 //#include <iostream.h>
33 #include <SALOMEconfig.h>
34 #include "SALOME_Component_i.hxx"
35 #include "SALOME_LifeCycleCORBA.hxx"
37 #include "INode_Impl.hxx"
38 #include "Port_Impl.hxx"
40 #include "DataFlowEditor_DataFlow.hxx"
41 #include "DataFlowExecutor_DataFlow.hxx"
43 class GNode_Impl : public INode_Impl ,
44 public POA_SUPERV::GNode {
48 PortableServer::POA_ptr _Poa ;
49 PortableServer::ObjectId * _ContId ;
53 GNode_Impl( CORBA::ORB_ptr orb ,
54 PortableServer::POA_ptr poa ,
55 PortableServer::ObjectId * contId ,
56 const char *instanceName ,
57 const char *interfaceName ,
58 const char *aDataFlowName ,
59 const SUPERV::KindOfNode aKindOfNode ) ;
60 GNode_Impl( CORBA::ORB_ptr orb ,
61 PortableServer::POA_ptr poa ,
62 PortableServer::ObjectId * contId ,
63 const char *instanceName ,
64 const char *interfaceName ,
65 GraphEditor::DataFlow * DataFlowEditor ,
66 const char * FuncName ,
67 const SUPERV::ListOfStrings & PythonFunction ,
68 const SUPERV::KindOfNode NodeKindOfNode = SUPERV::GOTONode ) ;
69 GNode_Impl( CORBA::ORB_ptr orb ,
70 PortableServer::POA_ptr poa ,
71 PortableServer::ObjectId * contId ,
72 const char *instanceName ,
73 const char *interfaceName ,
74 GraphEditor::DataFlow * DataFlowEditor ,
75 GraphBase::ListOfFuncName FuncNameList ,
76 GraphBase::ListOfPythonFunctions PythonFunctionList ,
77 const SUPERV::KindOfNode NodeKindOfNode = SUPERV::GOTONode ) ;
78 GNode_Impl( CORBA::ORB_ptr orb ,
79 PortableServer::POA_ptr poa ,
80 PortableServer::ObjectId * contId ,
81 const char *instanceName ,
82 const char *interfaceName ,
83 GraphEditor::DataFlow * DataFlowEditor ,
84 GraphEditor::InNode * DataFlowNode ) ;
85 virtual ~GNode_Impl() ;
86 virtual void destroy() ;
87 virtual bool Delete() ;
89 virtual bool SetCoupled( const char * anInLineNode );
91 virtual SUPERV::INode_ptr Coupled() ;
93 virtual GraphBase::GOTONode * BaseNode() {
94 return DataFlowNode()->GOTONode() ; } ;