1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 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 // SUPERV Supervision : contains the implementation of interfaces of SuperVision described in SUPERV.idl
23 // File : INode_Impl.hxx
24 // Author : Jean Rahuel
27 #ifndef _INODE_IMPL_HXX_
28 #define _INODE_IMPL_HXX_
30 //#include <iostream.h>
34 #include <SALOMEconfig.h>
35 #include "SALOME_Component_i.hxx"
36 #include "SALOME_LifeCycleCORBA.hxx"
38 #include "CNode_Impl.hxx"
40 #include "StreamPort_Impl.hxx"
42 #include "DataFlowEditor_DataFlow.hxx"
43 #include "DataFlowExecutor_DataFlow.hxx"
45 class INode_Impl : public CNode_Impl ,
46 public POA_SUPERV::INode {
50 PortableServer::POA_ptr _Poa ;
51 PortableServer::ObjectId * _ContId ;
55 INode_Impl( CORBA::ORB_ptr orb ,
56 PortableServer::POA_ptr poa ,
57 PortableServer::ObjectId * contId ,
58 const char *instanceName ,
59 const char *interfaceName ,
60 const char *aDataFlowName ,
61 const SUPERV::KindOfNode aKindOfNode ) ;
62 INode_Impl( CORBA::ORB_ptr orb ,
63 PortableServer::POA_ptr poa ,
64 PortableServer::ObjectId * contId ,
65 const char *instanceName ,
66 const char *interfaceName ,
67 GraphEditor::DataFlow * DataFlowEditor ,
68 const char * FuncName ,
69 const SUPERV::ListOfStrings & PythonFunction ,
70 const SUPERV::KindOfNode NodeKindOfNode = SUPERV::InLineNode ) ;
71 INode_Impl( CORBA::ORB_ptr orb ,
72 PortableServer::POA_ptr poa ,
73 PortableServer::ObjectId * contId ,
74 const char *instanceName ,
75 const char *interfaceName ,
76 GraphEditor::DataFlow * DataFlowEditor ,
77 const GraphBase::ListOfFuncName FuncName ,
78 const GraphBase::ListOfPythonFunctions PythonFunction ,
79 const SUPERV::KindOfNode NodeKindOfNode = SUPERV::InLineNode ) ;
80 INode_Impl( CORBA::ORB_ptr orb ,
81 PortableServer::POA_ptr poa ,
82 PortableServer::ObjectId * contId ,
83 const char *instanceName ,
84 const char *interfaceName ,
85 GraphEditor::DataFlow * DataFlowEditor ,
86 GraphEditor::InNode * DataFlowNode ) ;
87 virtual ~INode_Impl() ;
88 virtual void destroy() ;
89 virtual bool Delete() ;
91 virtual void SetPyFunction( const char * FuncName ,
92 const SUPERV::ListOfStrings & aPyFunction ) ;
93 virtual SUPERV::ListOfStrings * PyFunction() ;
94 virtual char * PyFuncName() ;
96 virtual GraphBase::InLineNode * BaseNode() {
97 return DataFlowNode()->InLineNode() ; } ;
99 virtual SUPERV::Port_ptr InPort( const char * aParameterName ,
100 const char * aParameterType ) ;
101 virtual SUPERV::Port_ptr OutPort( const char * aParameterName ,
102 const char * aParameterType ) ;
104 virtual SUPERV::StreamPort_ptr InStreamPort( const char * aParameterName ,
105 const char * aParameterType ,
106 const SALOME_ModuleCatalog::DataStreamDependency aDependency ) ;
107 virtual SUPERV::StreamPort_ptr OutStreamPort( const char * aParameterName ,
108 const char * aParameterType ,
109 const SALOME_ModuleCatalog::DataStreamDependency aDependency ) ;