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