-//=============================================================================
-// File : Port_Impl.hxx
-// Created : Nov 2001
-// Author : Jean Rahuel
-// Project : SALOME
-// Copyright : CEA 2001
-// $Header:
-//=============================================================================
+// SUPERV Supervision : contains the implementation of interfaces of SuperVision described in SUPERV.idl
+//
+// 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 : Port_Impl.hxx
+// Author : Jean Rahuel
+// Module : SUPERV
+// $Header:
#ifndef _PORT_IMPL_HXX_
#define _PORT_IMPL_HXX_
-#include <iostream.h>
+#include <sstream>
+#include <iostream>
#include "CORBA.h"
virtual ~Port_Impl() ;
virtual void destroy() ;
+ GraphEditor::DataFlow * DataFlowEditor() {
+ return _DataFlowEditor ; } ;
+ GraphEditor::InNode * DataFlowNode() {
+ return _DataFlowNode ; } ;
+ GraphBase::Port * DataFlowPort() {
+ return _DataFlowPort ; } ;
+
virtual bool Input( const SUPERV::Value_ptr aValue ) ;
virtual bool Input( const CORBA::Any * anAny ) ;
- virtual char * Name() ;
- virtual char * Type() ;
+ virtual char * Name() ;
+ virtual char * Type() ;
+
+ virtual SUPERV::CNode_ptr Node() ;
- virtual SUPERV::CNode_ptr Node() ;
+ virtual SUPERV::Link_ptr Link() ;
+ virtual SUPERV::ListOfLinks * Links() ;
- virtual SUPERV::Link_ptr Link() ;
- virtual SUPERV::ListOfLinks * Links() ;
+ virtual bool IsInput() ;
+ virtual bool IsLinked() ;
+ virtual bool HasInput() ;
- virtual bool IsInput() ;
- virtual bool IsLinked() ;
- virtual bool HasInput() ;
+ virtual SUPERV::KindOfPort Kind() ;
+ virtual void SetKind( SUPERV::KindOfPort ) ;
- virtual SUPERV::KindOfPort Kind() ;
- virtual bool IsParam() ;
- virtual bool IsGate() ;
- virtual bool IsInLine() ;
- virtual bool IsLoop() ;
- virtual bool IsSwitch() ;
- virtual bool IsEndSwitch() ;
+ virtual bool IsParam() ;
+ virtual bool IsGate() ;
+ virtual bool IsInLine() ;
+ virtual bool IsLoop() ;
+ virtual bool IsSwitch() ;
+ virtual bool IsEndSwitch() ;
+ virtual bool IsDataStream() ;
- virtual SUPERV::GraphState State() ;
- virtual bool IsDone() ;
+ virtual SUPERV::GraphState State() ;
+ virtual bool IsDone() ;
} ;