1 // SUPERV GraphBase : contains fondamental classes for Services, Input Ports, Output Ports Links and Nodes.
3 // Copyright (C) 2003 CEA/DEN, EDF R&D
7 // File : DataFlowBase_StreamGraph.hxx
8 // Author : Jean Rahuel
12 #ifndef _DATAFLOWBASE_STREAMGRAPH_HXX
13 #define _DATAFLOWBASE_STREAMGRAPH_HXX
15 #include "DataFlowBase_Graph.hxx"
19 class StreamGraph : public Graph {
24 // The name is the name of the graph
26 SUPERV::KindOfDataStreamTrace _DataStreamTrace ;
29 // Total number of SubStreamGraphs
30 int _SubStreamGraphsNumber ;
38 StreamGraph( CORBA::ORB_ptr ORB ,
39 SALOME_NamingService* ptrNamingService ,
40 const char * DataFlowName ,
41 const SUPERV::KindOfNode DataFlowkind ,
42 int * Graph_prof_debug ,
43 ofstream * Graph_fdebug ) ;
45 StreamGraph( CORBA::ORB_ptr ORB ,
46 SALOME_NamingService * ptrNamingService ,
47 const SALOME_ModuleCatalog::Service & DataFlowService ,
48 const char * DataFlowComponentName ,
49 const char * DataFlowInterfaceName ,
50 const char * DataFlowName ,
51 const SUPERV::KindOfNode DataFlowkind ,
52 const SUPERV::SDate DataFlowFirstCreation ,
53 const SUPERV::SDate DataFlowLastModification ,
54 const char * DataFlowEditorRelease ,
55 const char * DataFlowAuthor ,
56 const char * DataFlowComputer ,
57 const char * DataFlowComment ,
58 int * Graph_prof_debug ,
59 ofstream * Graph_fdebug ) ;
63 bool SetStreamParams( const long Timeout ,
64 const SUPERV::KindOfDataStreamTrace DataStreamTrace ,
65 const double DeltaTime ) ;
66 void StreamParams( long & Timeout ,
67 SUPERV::KindOfDataStreamTrace & DataStreamTrace ,
68 double & DeltaTime ) const ;
70 bool CreateStreamTopology( const char * aDirectory ) ;
72 void SubStreamGraphsNumber( int SubStreamGraphsNumber ) {
73 _SubStreamGraphsNumber = SubStreamGraphsNumber ; } ;
74 long SubStreamGraphsNumber() const {
75 return _SubStreamGraphsNumber ; } ;
81 ostream & operator<< (ostream &,const SUPERV::KindOfDataStreamTrace &);