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