src/GraphBase/DataFlowBase_OutDataStreamPort.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_OutDataStreamPort.hxx
00023 //  Author : Jean Rahuel
00024 //  Module : SUPERV
00025 
00026 #ifndef _DATAFLOWBASE_OUTDATASTREAMPORT_HXX
00027 #define _DATAFLOWBASE_OUTDATASTREAMPORT_HXX
00028 
00029 #include "DataFlowBase_OutPort.hxx"
00030 
00031 namespace GraphBase {
00032 
00033   class OutDataStreamPort : public OutPort {
00034 
00035     private:
00036     
00037       long                     _NumberOfValues ; // Values Keeped in links ("Niveau")
00038 
00039     protected:
00040 
00041     public:
00042 
00043       OutDataStreamPort() ;
00044       OutDataStreamPort( const char *const * NodeName  ,
00045                          const SALOME_ModuleCatalog::ServicesParameter aserviceParameter ,
00046                          const SALOME_ModuleCatalog::DataStreamDependency aDependency = SALOME_ModuleCatalog::DATASTREAM_UNDEFINED ,
00047                          const long aNumberOfValues = 0 ) ;
00048 
00049       virtual ~OutDataStreamPort() ;
00050 
00051       void NumberOfValues( const long aNumberOfValues ) {
00052            _NumberOfValues = aNumberOfValues ; } ;
00053       long NumberOfValues() const {
00054            return _NumberOfValues ; } ;
00055 
00056   };
00057   
00058 };
00059 
00060 #endif
00061 
00062 
00063 
00064