Salome HOME
Update copyright information
[modules/superv.git] / src / Supervision / ELNode_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   : ELNode_Impl.hxx
24 //  Author : Jean Rahuel
25 //  Module : SUPERV
26 //  $Header: 
27 //
28 #ifndef _ELNODE_IMPL_HXX_
29 #define _ELNODE_IMPL_HXX_
30
31 //#include <iostream.h>
32
33 #include "CORBA.h"
34
35 #include <SALOMEconfig.h>
36 #include "SALOME_Component_i.hxx"
37 #include "SALOME_LifeCycleCORBA.hxx"
38
39 #include "GNode_Impl.hxx"
40
41 #include "Port_Impl.hxx"
42
43 #include "DataFlowEditor_DataFlow.hxx"
44 #include "DataFlowExecutor_DataFlow.hxx"
45
46 class ELNode_Impl : public GNode_Impl ,
47                     public POA_SUPERV::ELNode {
48   private:
49
50     CORBA::ORB_ptr _Orb ;
51     PortableServer::POA_ptr _Poa ;
52     PortableServer::ObjectId * _ContId ;
53
54   public:
55     ELNode_Impl();
56     ELNode_Impl( CORBA::ORB_ptr orb ,
57                PortableServer::POA_ptr poa ,
58                PortableServer::ObjectId * contId , 
59                const char *instanceName ,
60                const char *interfaceName ,
61                GraphEditor::DataFlow * DataFlowEditor ,
62                const char * EndName , 
63                const SUPERV::KindOfNode NodeKindOfNode = SUPERV::EndLoopNode ) ;
64     ELNode_Impl( CORBA::ORB_ptr orb ,
65                PortableServer::POA_ptr poa ,
66                PortableServer::ObjectId * contId , 
67                const char *instanceName ,
68                const char *interfaceName ,
69                GraphEditor::DataFlow * DataFlowEditor ,
70                GraphEditor::InNode * DataFlowNode ) ;
71     virtual ~ELNode_Impl() ;
72     virtual void destroy() ;
73     virtual bool Delete() ;
74
75     virtual GraphBase::EndOfLoopNode * BaseNode() {
76             return DataFlowNode()->EndOfLoopNode() ; } ;
77
78 } ;
79
80 #endif