X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSupervision%2FGNode_Impl.hxx;h=8f4a1b0050f43ac128721e248cb9479f40062053;hb=refs%2Ftags%2FV4_1_0_maintainance_20090313;hp=d645622b5f8d0ee593441e705b0e91a10e0d9caf;hpb=628503854743434655e81a0b11c9b9955315608e;p=modules%2Fsuperv.git diff --git a/src/Supervision/GNode_Impl.hxx b/src/Supervision/GNode_Impl.hxx index d645622..8f4a1b0 100644 --- a/src/Supervision/GNode_Impl.hxx +++ b/src/Supervision/GNode_Impl.hxx @@ -1,16 +1,33 @@ -//============================================================================= -// File : GNode_Impl.hxx -// Created : 2003 -// Author : Jean Rahuel -// Project : SALOME -// Copyright : CEA 2003 -// $Header: -//============================================================================= - +// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE +// +// Copyright (C) 2003-2007 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.salome-platform.org/ or email : webmaster.salome@opencascade.com +// +// SUPERV Supervision : contains the implementation of interfaces of SuperVision described in SUPERV.idl +// File : GNode_Impl.hxx +// Author : Jean Rahuel +// Module : SUPERV +// #ifndef _GNODE_IMPL_HXX_ #define _GNODE_IMPL_HXX_ -#include +//#include #include "CORBA.h" @@ -34,6 +51,13 @@ class GNode_Impl : public INode_Impl , public: GNode_Impl(); + GNode_Impl( CORBA::ORB_ptr orb , + PortableServer::POA_ptr poa , + PortableServer::ObjectId * contId , + const char *instanceName , + const char *interfaceName , + const char *aDataFlowName , + const SUPERV::KindOfNode aKindOfNode ) ; GNode_Impl( CORBA::ORB_ptr orb , PortableServer::POA_ptr poa , PortableServer::ObjectId * contId , @@ -63,37 +87,8 @@ class GNode_Impl : public INode_Impl , virtual void destroy() ; virtual bool Delete() ; - virtual bool SetCoupled( const char * anInLineNode ) { - GraphBase::InLineNode * CoupledINode = (GraphBase::InLineNode * ) DataFlowEditor()->GetGraphNode( anInLineNode ) ; - cout << Name() << ".SetCoupled " << anInLineNode << endl ; - if ( CoupledINode && ( IsGOTO() && - ( CoupledINode->IsInLineNode() || CoupledINode->IsLoopNode() || - CoupledINode->IsSwitchNode() ) ) || - ( !IsGOTO() && ( IsLoop() || IsSwitch() || - IsEndLoop() || IsEndSwitch() ) ) ) { - DataFlowNode()->CoupledNode( CoupledINode ) ; - if ( IsSwitch() ) { - DataFlowEditor()->AddLink( Name() , "Default" , - CoupledINode->Name() , "Default" ) ; - } - else if ( IsLoop() || IsEndLoop() ) { - DataFlowEditor()->AddLink( Name() , "DoLoop" , - CoupledINode->Name() , "DoLoop" ) ; - } - else if ( IsGOTO() ) { - DataFlowEditor()->AddLink( Name() , "OutGate" , - CoupledINode->Name() , "InGate" ) ; - } - cout << "SetCoupled " << CoupledINode->Name() << endl ; - return true ; - } - cout << Name() << ".SetCoupled ERROR " << anInLineNode << " " << CoupledINode - << " of " << Kind() ; - if ( CoupledINode ) { - cout << " kinfOkCoupled " << CoupledINode->Kind() ; - } - cout << endl ; - return false ; } ; + virtual bool SetCoupled( const char * anInLineNode ); + virtual SUPERV::INode_ptr Coupled() ; virtual GraphBase::GOTONode * BaseNode() {