+++ /dev/null
-// SUPERV GraphBase : contains fondamental classes for Services, Input Ports, Output Ports Links and Nodes.
-//
-// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
-//
-//
-//
-// File : DataFlowBase_InPort.cxx
-// Author : Jean Rahuel, CEA
-// Module : SUPERV
-// $Header:
-
-using namespace std;
-#include "DataFlowBase_InPort.hxx"
-#include "DataFlowBase_OutPort.hxx"
-
-char ** _PortStateName ;
-
-GraphBase::InPort::InPort() :
- Port() {
- _State = SUPERV::UndefinedState ;
- _OutPort = NULL ;
- _InitialOutPort = NULL ;
-}
-
-GraphBase::InPort::InPort(
- const char *const * Name ,
- const SALOME_ModuleCatalog::ServicesParameter aserviceParameter ,
- const SUPERV::KindOfPort aKind ,
- const SALOME_ModuleCatalog::DataStreamDependency aDependency ) :
- Port( Name , aserviceParameter , aKind , aDependency ) {
- _State = SUPERV::UndefinedState ;
- _OutPort = NULL ;
- _InitialOutPort = NULL ;
-}
-
-//GraphBase::InPort::~InPort() {
-// cout << "InPort::~InPort()" << endl ;
-//}
-
-bool GraphBase::InPort::IsConnected() const {
- return ( _OutPort != NULL && !_OutPort->IsDataConnected() ) ;
-}
-
-bool GraphBase::InPort::IsDataConnected() const {
- return ( _OutPort != NULL && _OutPort->IsDataConnected() ) ;
-}
-
-void GraphBase::InPort::StringValue(ostream & f ) const {
- if ( _OutPort )
- _OutPort->StringValue( f ) ;
- else
- f << "(undefined)" ;
-}
-
-ostream & operator<< (ostream &f ,const GraphBase::InPort &P) {
- f << P.PortName() << ", "
- << "type : " << P.PortType() << ", " ;
- f << "from "
- << P.NodeName() << ", ";
- f << "kind "
- << P.Kind() << ", ";
-
- return f;
-}
-