1 // SUPERV Supervision : contains the implementation of interfaces of SuperVision described in SUPERV.idl
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : StreamGraph_Impl.hxx
25 // Author : Jean Rahuel
29 #ifndef _STREAMGRAPH_IMPL_HXX_
30 #define _STREAMGRAPH_IMPL_HXX_
32 //#include <iostream.h>
36 #include <SALOMEconfig.h>
37 #include "SALOME_Component_i.hxx"
38 #include "SALOME_LifeCycleCORBA.hxx"
40 #include "Graph_Impl.hxx"
42 class StreamGraph_Impl : public POA_SUPERV::StreamGraph ,
47 PortableServer::POA_ptr _Poa ;
48 PortableServer::ObjectId * _ContId ;
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 ) ;
67 virtual ~StreamGraph_Impl() ;
68 virtual void destroy() ;
70 virtual SUPERV::StreamGraph_ptr StreamCopy() ;
72 virtual SUPERV::StreamGraph_ptr StreamMNode( const char * aXmlFileName ) ;
73 virtual SUPERV::StreamGraph_ptr StreamGraphMNode( SUPERV::StreamGraph_ptr aStreamGraph ) ;
75 virtual SUPERV::StreamLink_ptr StreamLink( SUPERV::StreamPort_ptr OutStreamPort ,
76 SUPERV::StreamPort_ptr InStreamPort ) ;
78 virtual SUPERV::ListOfStreamLinks * GStreamLinks() ;
80 virtual SUPERV::ListOfStreamLinks * StreamLinks( GraphBase::ComputingNode * aNode ,
81 const char * anInputParam ) ;
83 virtual bool SetStreamParams( const long Timeout ,
84 const SUPERV::KindOfDataStreamTrace DataStreamTrace ,
85 const double DeltaTime ) ;
86 virtual void StreamParams( long & Timeout ,
87 SUPERV::KindOfDataStreamTrace & DataStreamTrace ,
88 double & DeltaTime ) ;
90 virtual long SubStreamGraphsNumber() ;
91 virtual SUPERV::ListOfNodes * SubStreamGraphsNodes( const long aSubStreamGraphNumber ) ;
93 virtual SUPERV::Graph_ptr ToFlowGraph() ;
95 bool StreamMerge( const SUPERV::StreamGraph_ptr aStreamGraph ) ;