Salome HOME
Update copyright information
[modules/superv.git] / src / Supervision / SNode_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   : SNode_Impl.hxx
24 //  Author : Jean Rahuel
25 //  Module : SUPERV
26 //
27 #ifndef _SNODE_IMPL_HXX_
28 #define _SNODE_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 #include "Port_Impl.hxx"
40
41 #include "DataFlowEditor_DataFlow.hxx"
42 #include "DataFlowExecutor_DataFlow.hxx"
43
44 class SNode_Impl : public GNode_Impl ,
45                    public POA_SUPERV::SNode {
46   private:
47
48     CORBA::ORB_ptr             _Orb ;
49     PortableServer::POA_ptr    _Poa ;
50     PortableServer::ObjectId * _ContId ;
51
52   public:
53     SNode_Impl();
54     SNode_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                 const char * FuncName , 
61                 const SUPERV::ListOfStrings & PythonFunction ,
62                 const SUPERV::KindOfNode NodeKindOfNode = SUPERV::SwitchNode ) ;
63     SNode_Impl( CORBA::ORB_ptr orb ,
64                 PortableServer::POA_ptr poa ,
65                 PortableServer::ObjectId * contId , 
66                 const char *instanceName ,
67                 const char *interfaceName ,
68                 GraphEditor::DataFlow * DataFlowEditor ,
69                 GraphEditor::InNode * DataFlowNode ) ;
70     virtual ~SNode_Impl() ;
71     virtual void destroy() ;
72     virtual bool Delete() ;
73
74     virtual GraphBase::SwitchNode * BaseNode() {
75             return DataFlowNode()->SwitchNode() ; } ;
76
77 } ;
78
79 #endif