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