1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 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.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // SUPERV Supervision : contains the implementation of interfaces of SuperVision described in SUPERV.idl
23 // File : StreamGraph_Impl.hxx
24 // Author : Jean Rahuel
28 #ifndef _STREAMGRAPH_IMPL_HXX_
29 #define _STREAMGRAPH_IMPL_HXX_
31 //#include <iostream.h>
35 #include <SALOMEconfig.h>
36 #include "SALOME_Component_i.hxx"
37 #include "SALOME_LifeCycleCORBA.hxx"
39 #include "Graph_Impl.hxx"
41 class StreamGraph_Impl : public POA_SUPERV::StreamGraph ,
46 PortableServer::POA_ptr _Poa ;
47 PortableServer::ObjectId * _ContId ;
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 ) ;
66 virtual ~StreamGraph_Impl() ;
67 virtual void destroy() ;
69 virtual SUPERV::StreamGraph_ptr StreamCopy() ;
71 virtual SUPERV::StreamGraph_ptr StreamMNode( const char * aXmlFileName ) ;
72 virtual SUPERV::StreamGraph_ptr StreamGraphMNode( SUPERV::StreamGraph_ptr aStreamGraph ) ;
74 virtual SUPERV::StreamLink_ptr StreamLink( SUPERV::StreamPort_ptr OutStreamPort ,
75 SUPERV::StreamPort_ptr InStreamPort ) ;
77 virtual SUPERV::ListOfStreamLinks * GStreamLinks() ;
79 virtual SUPERV::ListOfStreamLinks * StreamLinks( GraphBase::ComputingNode * aNode ,
80 const char * anInputParam ) ;
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 ) ;
89 virtual CORBA::Long SubStreamGraphsNumber() ;
90 virtual SUPERV::ListOfNodes * SubStreamGraphsNodes( CORBA::Long aSubStreamGraphNumber ) ;
92 virtual SUPERV::Graph_ptr ToFlowGraph() ;
94 bool StreamMerge( const SUPERV::StreamGraph_ptr aStreamGraph ) ;