Salome HOME
14a365f12c3559ffd2c8f9a91ee12452fb22f7be
[modules/superv.git] / src / Supervision / LNode_Impl.hxx
1 //  SUPERV Supervision : contains the implementation of interfaces of SuperVision described in SUPERV.idl
2 //
3 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
5 // 
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. 
10 // 
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. 
15 // 
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 
19 // 
20 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 //  File   : LNode_Impl.hxx
23 //  Author : Jean Rahuel
24 //  Module : SUPERV
25
26 #ifndef _LNODE_IMPL_HXX_
27 #define _LNODE_IMPL_HXX_
28
29 //#include <iostream.h>
30
31 #include "CORBA.h"
32
33 #include <SALOMEconfig.h>
34 #include "SALOME_Component_i.hxx"
35 #include "SALOME_LifeCycleCORBA.hxx"
36
37 #include "GNode_Impl.hxx"
38
39 #include "Port_Impl.hxx"
40
41 #include "DataFlowEditor_DataFlow.hxx"
42 #include "DataFlowExecutor_DataFlow.hxx"
43
44 class LNode_Impl : public GNode_Impl ,
45                    public POA_SUPERV::LNode {
46   private:
47
48     CORBA::ORB_ptr _Orb ;
49     PortableServer::POA_ptr _Poa ;
50     PortableServer::ObjectId * _ContId ;
51
52   public:
53     LNode_Impl();
54     LNode_Impl( CORBA::ORB_ptr orb ,
55                PortableServer::POA_ptr poa ,
56                PortableServer::ObjectId * contId , 
57                const char *instanceName ,
58                const char *interfaceName ,
59                GraphEditor::DataFlow * DataFlowEditor ,
60                GraphBase::ListOfFuncName FuncName ,
61                GraphBase::ListOfPythonFunctions PythonFunction ,
62 //               const char * InitName , 
63 //               const SUPERV::ListOfStrings & InitFunction ,
64 //               const char * MoreName , 
65 //               const SUPERV::ListOfStrings & MoreFunction ,
66 //               const char * NextName , 
67 //               const SUPERV::ListOfStrings & NextFunction ,
68                const SUPERV::KindOfNode NodeKindOfNode = SUPERV::LoopNode ) ;
69     LNode_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                GraphEditor::InNode * DataFlowNode ) ;
76     virtual ~LNode_Impl() ;
77     virtual void destroy() ;
78     virtual bool Delete() ;
79
80     virtual void SetPyInit( const char * InitName ,
81                             const SUPERV::ListOfStrings & aPyMoreFunction ) ;
82     virtual SUPERV::ListOfStrings * PyInit() ;
83     virtual char * PyInitName() ;
84
85     virtual void SetPyMore( const char * MoreName ,
86                             const SUPERV::ListOfStrings & aPyMoreFunction ) ;
87     virtual SUPERV::ListOfStrings * PyMore() ;
88     virtual char * PyMoreName() ;
89
90     virtual void SetPyNext( const char * NextName ,
91                             const SUPERV::ListOfStrings & aPyNextFunction ) ;
92     virtual SUPERV::ListOfStrings * PyNext() ;
93     virtual char * PyNextName() ;
94
95     virtual GraphBase::LoopNode * BaseNode() {
96             return DataFlowNode()->LoopNode() ; } ;
97
98 } ;
99
100 #endif