Salome HOME
A special "Loading" state was implemented. It is returned to GUI if the correspondin...
[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  CEA/DEN, EDF R&D
4 //
5 //
6 //
7 //  File   : SNode_Impl.hxx
8 //  Author : Jean Rahuel
9 //  Module : SUPERV
10 //  $Header: 
11
12 #ifndef _SNODE_IMPL_HXX_
13 #define _SNODE_IMPL_HXX_
14
15 //#include <iostream.h>
16
17 #include "CORBA.h"
18
19 #include <SALOMEconfig.h>
20 #include "SALOME_Component_i.hxx"
21 #include "SALOME_LifeCycleCORBA.hxx"
22
23 #include "GNode_Impl.hxx"
24 #include "Port_Impl.hxx"
25
26 #include "DataFlowEditor_DataFlow.hxx"
27 #include "DataFlowExecutor_DataFlow.hxx"
28
29 class SNode_Impl : public GNode_Impl ,
30                    public POA_SUPERV::SNode {
31   private:
32
33     CORBA::ORB_ptr             _Orb ;
34     PortableServer::POA_ptr    _Poa ;
35     PortableServer::ObjectId * _ContId ;
36
37   public:
38     SNode_Impl();
39     SNode_Impl( CORBA::ORB_ptr orb ,
40                 PortableServer::POA_ptr poa ,
41                 PortableServer::ObjectId * contId , 
42                 const char *instanceName ,
43                 const char *interfaceName ,
44                 GraphEditor::DataFlow * DataFlowEditor ,
45                 const char * FuncName , 
46                 const SUPERV::ListOfStrings & PythonFunction ,
47                 const SUPERV::KindOfNode NodeKindOfNode = SUPERV::SwitchNode ) ;
48     SNode_Impl( CORBA::ORB_ptr orb ,
49                 PortableServer::POA_ptr poa ,
50                 PortableServer::ObjectId * contId , 
51                 const char *instanceName ,
52                 const char *interfaceName ,
53                 GraphEditor::DataFlow * DataFlowEditor ,
54                 GraphEditor::InNode * DataFlowNode ) ;
55     virtual ~SNode_Impl() ;
56     virtual void destroy() ;
57     virtual bool Delete() ;
58
59     virtual GraphBase::SwitchNode * BaseNode() {
60             return DataFlowNode()->SwitchNode() ; } ;
61
62 } ;
63
64 #endif