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 : INode_Impl.hxx
23 // Author : Jean Rahuel
26 #ifndef _INODE_IMPL_HXX_
27 #define _INODE_IMPL_HXX_
29 //#include <iostream.h>
33 #include <SALOMEconfig.h>
34 #include "SALOME_Component_i.hxx"
35 #include "SALOME_LifeCycleCORBA.hxx"
37 #include "CNode_Impl.hxx"
39 #include "StreamPort_Impl.hxx"
41 #include "DataFlowEditor_DataFlow.hxx"
42 #include "DataFlowExecutor_DataFlow.hxx"
44 class INode_Impl : public CNode_Impl ,
45 public POA_SUPERV::INode {
49 PortableServer::POA_ptr _Poa ;
50 PortableServer::ObjectId * _ContId ;
54 INode_Impl( CORBA::ORB_ptr orb ,
55 PortableServer::POA_ptr poa ,
56 PortableServer::ObjectId * contId ,
57 const char *instanceName ,
58 const char *interfaceName ,
59 const char *aDataFlowName ,
60 const SUPERV::KindOfNode aKindOfNode ) ;
61 INode_Impl( CORBA::ORB_ptr orb ,
62 PortableServer::POA_ptr poa ,
63 PortableServer::ObjectId * contId ,
64 const char *instanceName ,
65 const char *interfaceName ,
66 GraphEditor::DataFlow * DataFlowEditor ,
67 const char * FuncName ,
68 const SUPERV::ListOfStrings & PythonFunction ,
69 const SUPERV::KindOfNode NodeKindOfNode = SUPERV::InLineNode ) ;
70 INode_Impl( CORBA::ORB_ptr orb ,
71 PortableServer::POA_ptr poa ,
72 PortableServer::ObjectId * contId ,
73 const char *instanceName ,
74 const char *interfaceName ,
75 GraphEditor::DataFlow * DataFlowEditor ,
76 const GraphBase::ListOfFuncName FuncName ,
77 const GraphBase::ListOfPythonFunctions PythonFunction ,
78 const SUPERV::KindOfNode NodeKindOfNode = SUPERV::InLineNode ) ;
79 INode_Impl( CORBA::ORB_ptr orb ,
80 PortableServer::POA_ptr poa ,
81 PortableServer::ObjectId * contId ,
82 const char *instanceName ,
83 const char *interfaceName ,
84 GraphEditor::DataFlow * DataFlowEditor ,
85 GraphEditor::InNode * DataFlowNode ) ;
86 virtual ~INode_Impl() ;
87 virtual void destroy() ;
88 virtual bool Delete() ;
90 virtual void SetPyFunction( const char * FuncName ,
91 const SUPERV::ListOfStrings & aPyFunction ) ;
92 virtual SUPERV::ListOfStrings * PyFunction() ;
93 virtual char * PyFuncName() ;
95 virtual GraphBase::InLineNode * BaseNode() {
96 return DataFlowNode()->InLineNode() ; } ;
98 virtual SUPERV::Port_ptr InPort( const char * aParameterName ,
99 const char * aParameterType ) ;
100 virtual SUPERV::Port_ptr OutPort( const char * aParameterName ,
101 const char * aParameterType ) ;
103 virtual SUPERV::StreamPort_ptr InStreamPort( const char * aParameterName ,
104 const SALOME_ModuleCatalog::DataStreamType aParameterType ,
105 const SALOME_ModuleCatalog::DataStreamDependency aDependency ) ;
106 virtual SUPERV::StreamPort_ptr OutStreamPort( const char * aParameterName ,
107 const SALOME_ModuleCatalog::DataStreamType aParameterType ,
108 const SALOME_ModuleCatalog::DataStreamDependency aDependency ) ;