X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSupervision%2FPort_Impl.hxx;h=eddd4267c7fcf166b5770a5934e4d0f0c163cf4d;hb=bae06cd3bdae2ac2acb878e96689b2ea283aad23;hp=8814a77d369e019505026e7f89bb1ac53985a07d;hpb=d2ea75950816c9bb41f70a80a8c4339d3d0ff9a5;p=modules%2Fsuperv.git diff --git a/src/Supervision/Port_Impl.hxx b/src/Supervision/Port_Impl.hxx index 8814a77..eddd426 100644 --- a/src/Supervision/Port_Impl.hxx +++ b/src/Supervision/Port_Impl.hxx @@ -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 +#include +#include #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() ; } ;