src/GraphBase/DataFlowBase_InDataStreamPort.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_InDataStreamPort.hxx
00023 //  Author : Jean Rahuel
00024 //  Module : SUPERV
00025 
00026 #ifndef _DATAFLOWBASE_INDATASTREAMPORT_HXX
00027 #define _DATAFLOWBASE_INDATASTREAMPORT_HXX
00028 
00029 #include "DataFlowBase_OutPort.hxx"
00030 
00031 namespace GraphBase {
00032 
00033   class InDataStreamPort : public InPort {
00034 
00035     private:
00036 
00037 // if TimeDependency :
00038       SUPERV::KindOfSchema        _KindOfSchema ;
00039       SUPERV::KindOfInterpolation _KindOfInterpolation ;
00040       SUPERV::KindOfExtrapolation _KindOfExtrapolation ;
00041 
00042     protected:
00043 
00044     public:
00045 
00046       InDataStreamPort() ;
00047 
00048       InDataStreamPort( const char *const * NodeName  ,
00049                         const SALOME_ModuleCatalog::ServicesParameter aserviceParameter ,
00050                         const SALOME_ModuleCatalog::DataStreamDependency aDependency = SALOME_ModuleCatalog::DATASTREAM_UNDEFINED ,
00051                         const SUPERV::KindOfSchema aKindOfSchema = SUPERV::SCHENULL ,
00052                         const SUPERV::KindOfInterpolation aKindOfInterpolation = SUPERV::INTERNULL ,
00053                         const SUPERV::KindOfExtrapolation aKindOfExtrapolation = SUPERV::EXTRANULL ) ;
00054 
00055       virtual ~InDataStreamPort() ;
00056 
00057       bool SetParams( const SUPERV::KindOfSchema aKindOfSchema ,
00058                       const SUPERV::KindOfInterpolation aKindOfInterpolation ,
00059                       const SUPERV::KindOfExtrapolation aKindOfExtrapolation ) ;
00060 
00061       void Params( SUPERV::KindOfSchema & aKindOfSchema ,
00062                    SUPERV::KindOfInterpolation & aKindOfInterpolation ,
00063                    SUPERV::KindOfExtrapolation & aKindOfExtrapolation ) const ;
00064 
00065   };
00066   
00067 };
00068 
00069 ostream & operator<< (ostream &,const SUPERV::KindOfSchema &);
00070 
00071 ostream & operator<< (ostream &,const SUPERV::KindOfInterpolation &);
00072 
00073 ostream & operator<< (ostream &,const SUPERV::KindOfExtrapolation &);
00074 
00075 #endif
00076 
00077 
00078 
00079