src/GraphBase/DataFlowBase_StreamGraph.hxx

Go to the documentation of this file.
00001 //  SUPERV GraphBase : contains fondamental classes for Services, Input Ports, Output Ports Links and Nodes.
00002 //
00003 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
00005 // 
00006 //  This library is free software; you can redistribute it and/or 
00007 //  modify it under the terms of the GNU Lesser General Public 
00008 //  License as published by the Free Software Foundation; either 
00009 //  version 2.1 of the License. 
00010 // 
00011 //  This library is distributed in the hope that it will be useful, 
00012 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
00013 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
00014 //  Lesser General Public License for more details. 
00015 // 
00016 //  You should have received a copy of the GNU Lesser General Public 
00017 //  License along with this library; if not, write to the Free Software 
00018 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
00019 // 
00020 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 //  File   : DataFlowBase_StreamGraph.hxx
00023 //  Author : Jean Rahuel
00024 //  Module : SUPERV
00025 
00026 #ifndef _DATAFLOWBASE_STREAMGRAPH_HXX
00027 #define _DATAFLOWBASE_STREAMGRAPH_HXX
00028 
00029 #include "DataFlowBase_Graph.hxx"
00030 
00031 namespace GraphBase {
00032 
00033   class StreamGraph : public Graph {
00034 
00035     private:
00036     
00037 // Configuration :
00038 // The name is the name of the graph
00039       long                          _Timeout ;
00040       SUPERV::KindOfDataStreamTrace _DataStreamTrace ;
00041       double                        _DeltaTime ;
00042 
00043 // Total number of SubStreamGraphs
00044       int                           _SubStreamGraphsNumber ;
00045 
00046     protected:
00047 
00048     public:
00049 
00050       StreamGraph() ;
00051 
00052       StreamGraph( CORBA::ORB_ptr ORB ,
00053                    SALOME_NamingService* ptrNamingService ,
00054                    const char * DataFlowName ,
00055                    const SUPERV::KindOfNode DataFlowkind ,
00056                    int * Graph_prof_debug ,
00057                    ofstream * Graph_fdebug ) ;
00058 
00059       StreamGraph( CORBA::ORB_ptr ORB ,
00060                    SALOME_NamingService * ptrNamingService ,
00061                    const SALOME_ModuleCatalog::Service & DataFlowService ,
00062                    const char * DataFlowComponentName ,
00063                    const char * DataFlowInterfaceName ,
00064                    const char * DataFlowName ,
00065                    const SUPERV::KindOfNode DataFlowkind ,
00066                    const SUPERV::SDate DataFlowFirstCreation ,
00067                    const SUPERV::SDate DataFlowLastModification ,
00068                    const char * DataFlowEditorRelease ,
00069                    const char * DataFlowAuthor ,
00070                    const char * DataFlowComputer ,
00071                    const char * DataFlowComment ,
00072                    int * Graph_prof_debug ,
00073                    ofstream * Graph_fdebug ) ;
00074 
00075       ~StreamGraph() ;
00076 
00077       bool SetStreamParams( CORBA::Long Timeout ,
00078                             const SUPERV::KindOfDataStreamTrace DataStreamTrace ,
00079                             CORBA::Double  DeltaTime ) ;
00080       void StreamParams( CORBA::Long & Timeout ,
00081                          SUPERV::KindOfDataStreamTrace & DataStreamTrace ,
00082                          CORBA::Double & DeltaTime ) const ;
00083 
00084       bool CreateStreamTopology( const char * aDirectory ) ;
00085 
00086       void SubStreamGraphsNumber( int SubStreamGraphsNumber ) {
00087            _SubStreamGraphsNumber = SubStreamGraphsNumber ; } ;
00088       long SubStreamGraphsNumber() const {
00089            return _SubStreamGraphsNumber ; } ;
00090 
00091   };
00092 
00093 };
00094 
00095 ostream & operator<< (ostream &,const SUPERV::KindOfDataStreamTrace &);
00096 
00097 #endif