Salome HOME
DCQ : Merge with Ecole_Ete_a6.
[modules/superv.git] / src / Supervision / Port_Impl.hxx
index 8814a77d369e019505026e7f89bb1ac53985a07d..eddd4267c7fcf166b5770a5934e4d0f0c163cf4d 100644 (file)
@@ -1,16 +1,36 @@
-//=============================================================================
-// 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"
 
@@ -63,31 +83,41 @@ class Port_Impl : public Value_Impl ,
     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()  ;
 
 } ;