Salome HOME
Join modifications from branch OCC_debug_for_3_2_0b1
[modules/superv.git] / src / Supervision / StreamGraph_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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
21 //
22 //
23 //
24 //  File   : StreamGraph_Impl.hxx
25 //  Author : Jean Rahuel
26 //  Module : SUPERV
27 //  $Header: 
28
29 #ifndef _STREAMGRAPH_IMPL_HXX_
30 #define _STREAMGRAPH_IMPL_HXX_
31
32 //#include <iostream.h>
33
34 #include "CORBA.h"
35
36 #include <SALOMEconfig.h>
37 #include "SALOME_Component_i.hxx"
38 #include "SALOME_LifeCycleCORBA.hxx"
39
40 #include "Graph_Impl.hxx"
41
42 class StreamGraph_Impl : public POA_SUPERV::StreamGraph ,
43                          public Graph_Impl {
44   private:
45
46     CORBA::ORB_ptr _Orb ;
47     PortableServer::POA_ptr _Poa ;
48     PortableServer::ObjectId * _ContId ;
49
50   public:
51     StreamGraph_Impl();
52     StreamGraph_Impl( CORBA::ORB_ptr orb ,
53                       PortableServer::POA_ptr poa ,
54                       PortableServer::ObjectId * contId , 
55                       const char *instanceName ,
56                       const char *interfaceName ,
57                       const char *aDataFlowName ,
58                       const SUPERV::KindOfNode aKindOfGraphNode = SUPERV::DataStreamGraph ) ;
59     StreamGraph_Impl( CORBA::ORB_ptr orb ,
60                       PortableServer::POA_ptr poa ,
61                       PortableServer::ObjectId * contId , 
62                       const char *instanceName ,
63                       const char *interfaceName ,
64                       GraphEditor::DataFlow * DataFlowEditor ,
65                       GraphEditor::InNode * DataFlowNode ) ;
66
67     virtual ~StreamGraph_Impl() ;
68     virtual void destroy() ;
69
70     virtual SUPERV::StreamGraph_ptr StreamCopy() ;
71
72     virtual SUPERV::StreamGraph_ptr StreamMNode( const char * aXmlFileName ) ;
73     virtual SUPERV::StreamGraph_ptr StreamGraphMNode( SUPERV::StreamGraph_ptr aStreamGraph ) ;
74
75     virtual SUPERV::StreamLink_ptr StreamLink(  SUPERV::StreamPort_ptr OutStreamPort ,
76                                                 SUPERV::StreamPort_ptr InStreamPort ) ;
77
78     virtual SUPERV::ListOfStreamLinks * GStreamLinks() ;
79
80     virtual SUPERV::ListOfStreamLinks * StreamLinks( GraphBase::ComputingNode * aNode ,
81                                                      const char * anInputParam ) ;
82
83     virtual bool SetStreamParams( CORBA::Long Timeout ,
84                                   const SUPERV::KindOfDataStreamTrace DataStreamTrace ,
85                                   CORBA::Double  DeltaTime ) ;
86     virtual void StreamParams( CORBA::Long & Timeout ,
87                                SUPERV::KindOfDataStreamTrace & DataStreamTrace ,
88                                CORBA::Double & DeltaTime ) ;
89
90     virtual CORBA::Long SubStreamGraphsNumber() ;
91     virtual SUPERV::ListOfNodes * SubStreamGraphsNodes( CORBA::Long aSubStreamGraphNumber ) ;
92
93     virtual SUPERV::Graph_ptr ToFlowGraph() ;
94
95     bool StreamMerge( const SUPERV::StreamGraph_ptr aStreamGraph ) ;
96
97 };
98
99
100 #endif