Salome HOME
DCQ : Merge with Ecole_Ete_a6.
[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 Graph_Impl ,
43                          public POA_SUPERV::StreamGraph {
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
59       virtual ~StreamGraph_Impl() ;
60       virtual void destroy() ;
61
62       virtual SUPERV::StreamGraph_ptr StreamCopy() ;
63
64       virtual SUPERV::StreamLink_ptr StreamLink(  SUPERV::StreamPort_ptr OutStreamPort ,
65                                                   SUPERV::StreamPort_ptr InStreamPort ) ;
66
67       virtual SUPERV::ListOfStreamLinks * GStreamLinks() ;
68
69       virtual SUPERV::ListOfStreamLinks * StreamLinks( GraphBase::ComputingNode * aNode ,
70                                                        const char * anInputParam ) ;
71
72       virtual bool SetStreamParams( const long Timeout ,
73                                     const SUPERV::KindOfDataStreamTrace DataStreamTrace ,
74                                     const double  DeltaTime ) ;
75       virtual void StreamParams( long & Timeout ,
76                                  SUPERV::KindOfDataStreamTrace & DataStreamTrace ,
77                                  double & DeltaTime ) ;
78
79       virtual long SubStreamGraphsNumber() ;
80       virtual SUPERV::ListOfNodes * SubStreamGraphsNodes( const long aSubStreamGraphNumber ) ;
81
82       virtual SUPERV::Graph_ptr ToFlowGraph() ;
83
84       bool StreamMerge( const SUPERV::StreamGraph_ptr aStreamGraph ) ;
85
86 };
87
88
89 #endif